You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brian E. Fox" <br...@reply.infinity.nu> on 2007/07/03 03:27:53 UTC
invoker test failure
I'm getting an error building the 2.0.7-snapshot invoker:
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
sec <<< FAILURE!
testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
Time elapsed: 3.782 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<1> but was:<0>
InvocationResult result = invoker.execute( request );
assertEquals( 1, result.getExitCode() );
I'm using m2.0.7 to run this on XP. I know there were some issues around
2.0.7 at one point not returning the correct exit code. Is anyone else
seeing this issue with Invoker?
BTW..I'm really just trying to dig into the invoker to test why it fails
to find the maven executable when running through cygwin on windows:
Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
sec <<< FAILURE!
testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest) Time
elapsed: 0.126 sec <<< ERROR!
java.lang.NullPointerException
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
ble(MavenCommandLineBuilder.java:367)
at
org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
ndLineBuilder.java:33)
at
org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
va:88)
at
org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
a:89)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: invoker test failure
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Actually this problem turned out to be a bug in the m2.0.7 bat file. Once I fixed it, the invoker started working (better....still have trouble with the mvn shell script in cygwin).
-----Original Message-----
From: Kenney Westerhof [mailto:kenney@apache.org]
Sent: Wednesday, July 04, 2007 9:09 AM
To: Maven Developers List
Subject: Re: invoker test failure
Try again, I just committed a fix.
-- Kenney
Brian E. Fox wrote:
> I'm getting an error building the 2.0.7-snapshot invoker:
>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
> sec <<< FAILURE!
> testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
> Time elapsed: 3.782 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
>
>
> InvocationResult result = invoker.execute( request );
>
> assertEquals( 1, result.getExitCode() );
>
>
>
> I'm using m2.0.7 to run this on XP. I know there were some issues around
> 2.0.7 at one point not returning the correct exit code. Is anyone else
> seeing this issue with Invoker?
>
> BTW..I'm really just trying to dig into the invoker to test why it fails
> to find the maven executable when running through cygwin on windows:
>
> Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
> sec <<< FAILURE!
> testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest) Time
> elapsed: 0.126 sec <<< ERROR!
> java.lang.NullPointerException
> at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
> ble(MavenCommandLineBuilder.java:367)
> at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
> ndLineBuilder.java:33)
> at
> org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
> va:88)
> at
> org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
> a:89)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: invoker test failure
Posted by Kenney Westerhof <ke...@apache.org>.
Try again, I just committed a fix.
-- Kenney
Brian E. Fox wrote:
> I'm getting an error building the 2.0.7-snapshot invoker:
>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.861
> sec <<< FAILURE!
> testBuildShouldFail(org.apache.maven.shared.invoker.DefaultInvokerTest)
> Time elapsed: 3.782 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
>
>
> InvocationResult result = invoker.execute( request );
>
> assertEquals( 1, result.getExitCode() );
>
>
>
> I'm using m2.0.7 to run this on XP. I know there were some issues around
> 2.0.7 at one point not returning the correct exit code. Is anyone else
> seeing this issue with Invoker?
>
> BTW..I'm really just trying to dig into the invoker to test why it fails
> to find the maven executable when running through cygwin on windows:
>
> Tests run: 29, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 4.689
> sec <<< FAILURE!
> testProject01(org.apache.maven.plugin.eclipse.EclipsePluginTest) Time
> elapsed: 0.126 sec <<< ERROR!
> java.lang.NullPointerException
> at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.findMavenExecuta
> ble(MavenCommandLineBuilder.java:367)
> at
> org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenComma
> ndLineBuilder.java:33)
> at
> org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.ja
> va:88)
> at
> org.apache.maven.shared.test.plugin.BuildTool.executeMaven(BuildTool.jav
> a:89)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org