commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Herbert <alex.d.herb...@gmail.com>
Subject Re: [numbers-fraction] Maven surefire plugin error
Date Mon, 04 Mar 2019 23:05:22 GMT
I just did a fresh clone of commons-numbers and it runs ‘mvn test’ ok.

Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T20:39:06+01:00)
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.3", arch: "x86_64", family: “mac"


The output listed maven-surefire-plugin:2.22.0

Your 2.20.1 version may indicate something is out of sync somewhere.

The effective pom view in eclipse has both versions in properties:

<surefire.version>2.20.1</surefire.version>
<commons.surefire.version>2.22.0</commons.surefire.version>

PluginManagement has:

<plugin>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.22.0</version>
</plugin>

This seems to be coming from commons-parent 47.

Try a fresh clone and build. Or are you on a branch other than master?


> On 4 Mar 2019, at 22:21, Eric Barnhill <ericbarnhill@gmail.com> wrote:
> 
> I am getting a maven error for the surefire plugin, but don't see it listed
> as a dependency in numbers-fraction or numbers-core. I see it listed in
> numbers-parent, but with no version number. Any ideas what I need to do to
> get the tests running again?
> 
> I also get this error with other numbers modules so I suspect it is down to
> my setup, but just can't quite see what to modify. "It was all working last
> week..."
> 
> Error msg:
> ---
> Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test)
> on project commons-numbers-fraction: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.
> NullPointerException -> [Help 1]


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message