You are viewing a plain text version of this content. The canonical link for it is here.
Posted to announce@maven.apache.org by Dan Fabulich <df...@apache.org> on 2008/02/06 08:58:29 UTC

[ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

The Maven team is pleased to announce the release of the Maven Surefire 
Plugin, version 2.4.1

http://maven.apache.org/plugins/maven-surefire-plugin/

You can run mvn -up to get the latest version of the plugin, or specify
the version in your project's plugin configuration:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.4.1</version>
</plugin>


Release Notes - Maven Surefire - Version 2.4.1


** Bug
     * [SUREFIRE-121] - System properties set on the command line get 
clobbered
     * [SUREFIRE-432] - Surefire swallows redirected test output if 
uncaught exceptions occur in forked SurefireBooter
     * [SUREFIRE-433] - All tests run in a single execution are reported as 
coming from just one class
     * [SUREFIRE-439] - Test listeners / reporters don't work with TestNG 
5.7
     * [SUREFIRE-444] - NPE in PojoStackTraceWriter.writeTraceToString

** Improvement
     * [SUREFIRE-425] - Add dedicated resource bundle for locale "en".


** Task
     * [SUREFIRE-428] - Add integration test to check class path order
     * [SUREFIRE-436] - Add documentation section on debugging  tests


Enjoy,

-The Maven team


surefire 2.4.2 fixes manifest issue (was Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released)

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Feb 7 at 6:01pm, DF=>Dan Fabulich <da...@fabulich.com> wrote:

DF> [..snip..]
DF> 
DF> Ah, hearing that makes me strongly suspect that this is SUREFIRE-445 and
DF> SUREFIRE-451.
DF> 
DF> http://jira.codehaus.org/browse/SUREFIRE-445
DF> http://jira.codehaus.org/browse/SUREFIRE-451
DF> 
DF> Thanks for doing this research; I've moved these bugs into the upcoming
DF> 2.4.2 release.
DF> 
DF> -Dan
DF> 

Hi Dan,

I can report that my earlier reported problems with jdk 1.6 and surefire 
2.4.1 and errors with the manifest have now been fixed with surefire 
2.4.2. Running under cruisecontrol with surefire 2.4.2 and the jdk 1.6, I 
no longer get the manifest related errors.

Regards,
--
Haroon Rafique
<ha...@utoronto.ca>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Erez Nahir <er...@gmail.com>.
Hi,

Will: http://jira.codehaus.org/browse/SUREFIRE-452 be fixed for 2.4.2.
Any time estimation for this release?

Thanks,
Erez.

On Fri, Feb 8, 2008 at 4:01 AM, Dan Fabulich <da...@fabulich.com> wrote:

> Haroon Rafique wrote:
>
> > For me when the error about "Failed to load Main-Class manifest
> attribute
> > from /tmp/surefirebooter???.jar" appeared, I re-ran the tests with mvn
> -X
> > and then opened up the /tmp/surefirebooter???.jar file. It is a .jar
> file
> > with only one entry META-INF/MANIFEST.MF. Inside the MANIFEST.MF there
> are
> > 2 entries. Class-Path and Main-Class. Sure enough, the file was in tact,
> > yet surefirebooter would say it can't find the Main-Class. You can even
> > try the actual "java -jar /tmp/surebooter???.jar ....." command and it
> > still failed.
> >
> > Looking a little bit more, I was able to extract the MANIFEST.MF file
> and
> > change its format from "dos" to "unix" in vim and repackaged it back
> into
> > a jar and sure enough the "java -jar /tmp/surefirebooter???.jar ....."
> > command was able to run.
>
> Ah, hearing that makes me strongly suspect that this is SUREFIRE-445 and
> SUREFIRE-451.
>
> http://jira.codehaus.org/browse/SUREFIRE-445
> http://jira.codehaus.org/browse/SUREFIRE-451
>
> Thanks for doing this research; I've moved these bugs into the upcoming
> 2.4.2 release.
>
> -Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Dan Fabulich <da...@fabulich.com>.
Haroon Rafique wrote:

> For me when the error about "Failed to load Main-Class manifest attribute
> from /tmp/surefirebooter???.jar" appeared, I re-ran the tests with mvn -X
> and then opened up the /tmp/surefirebooter???.jar file. It is a .jar file
> with only one entry META-INF/MANIFEST.MF. Inside the MANIFEST.MF there are
> 2 entries. Class-Path and Main-Class. Sure enough, the file was in tact,
> yet surefirebooter would say it can't find the Main-Class. You can even
> try the actual "java -jar /tmp/surebooter???.jar ....." command and it
> still failed.
>
> Looking a little bit more, I was able to extract the MANIFEST.MF file and
> change its format from "dos" to "unix" in vim and repackaged it back into
> a jar and sure enough the "java -jar /tmp/surefirebooter???.jar ....."
> command was able to run.

Ah, hearing that makes me strongly suspect that this is SUREFIRE-445 and 
SUREFIRE-451.

http://jira.codehaus.org/browse/SUREFIRE-445
http://jira.codehaus.org/browse/SUREFIRE-451

Thanks for doing this research; I've moved these bugs into the upcoming 
2.4.2 release.

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Donnchadh Ó Donnabháin <do...@gmail.com>.
Good work Haroon, Thanks for the information.
In my case I'm getting the error on the command line.
My project has numerous subprojects and the error only occurs several
projects into the build so it will take some time to create a minimal
test case.

  Donnchadh

On 07/02/2008, Haroon Rafique <ha...@utoronto.ca> wrote:
> On Today at 3:30pm, DD=>Donnchadh Ó Donnabháin <do...@gmail.com> wrote:
>
> DD>   Hi Dan,
> DD>
> DD> When I switch from surefire 2.4 to 2.4.1 I get the error below.
> DD> /tmp/surefirebooter22682.jar doesn't seem to even exist. Any idea what
> DD> might be causing this?
> DD>
>
> Not knowing much about surefirebooter, I can at least tell you
> (paraphrasing here) that the /tmp/surefirebooter*.jar files are created at
> runtime and then deleted when the test is over. If you run with mvn -X,
> the /tmp/surefirebooter*.jar will be left in tact to aid in the debugging
> process.
>
> For me when the error about "Failed to load Main-Class manifest attribute
> from /tmp/surefirebooter???.jar" appeared, I re-ran the tests with mvn -X
> and then opened up the /tmp/surefirebooter???.jar file. It is a .jar file
> with only one entry META-INF/MANIFEST.MF. Inside the MANIFEST.MF there are
> 2 entries. Class-Path and Main-Class. Sure enough, the file was in tact,
> yet surefirebooter would say it can't find the Main-Class. You can even
> try the actual "java -jar /tmp/surebooter???.jar ....." command and it
> still failed.
>
> Looking a little bit more, I was able to extract the MANIFEST.MF file and
> change its format from "dos" to "unix" in vim and repackaged it back into
> a jar and sure enough the "java -jar /tmp/surefirebooter???.jar ....."
> command was able to run.
>
> This is as far as I've gotten so far.
>
> Two other data points:
>
> 1) Problems are fixed when dropping jdk to 1.5.0_14
> 2) Problem only appears running inside cruisecontrol (not on the command
>    line)
>
> I would be tempted to file a jira but my project is pretty big and I'm
> finding it absolutely difficult to localize the issue so that I can
> present a minimal test case.
>
> So, with the information that I have provided to you so far, hopefully you
> can provide a minimal test case :-) (or at least, I can wish).
>
> Regards,
> --
> Haroon Rafique
> <ha...@utoronto.ca>
>

>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Today at 3:30pm, DD=>Donnchadh � Donnabh�in <do...@gmail.com> wrote:

DD>   Hi Dan,
DD> 
DD> When I switch from surefire 2.4 to 2.4.1 I get the error below. 
DD> /tmp/surefirebooter22682.jar doesn't seem to even exist. Any idea what 
DD> might be causing this?
DD> 

Not knowing much about surefirebooter, I can at least tell you 
(paraphrasing here) that the /tmp/surefirebooter*.jar files are created at 
runtime and then deleted when the test is over. If you run with mvn -X, 
the /tmp/surefirebooter*.jar will be left in tact to aid in the debugging 
process.

For me when the error about "Failed to load Main-Class manifest attribute 
from /tmp/surefirebooter???.jar" appeared, I re-ran the tests with mvn -X 
and then opened up the /tmp/surefirebooter???.jar file. It is a .jar file 
with only one entry META-INF/MANIFEST.MF. Inside the MANIFEST.MF there are 
2 entries. Class-Path and Main-Class. Sure enough, the file was in tact, 
yet surefirebooter would say it can't find the Main-Class. You can even 
try the actual "java -jar /tmp/surebooter???.jar ....." command and it 
still failed.

Looking a little bit more, I was able to extract the MANIFEST.MF file and 
change its format from "dos" to "unix" in vim and repackaged it back into 
a jar and sure enough the "java -jar /tmp/surefirebooter???.jar ....." 
command was able to run.

This is as far as I've gotten so far.

Two other data points:

1) Problems are fixed when dropping jdk to 1.5.0_14
2) Problem only appears running inside cruisecontrol (not on the command 
   line)

I would be tempted to file a jira but my project is pretty big and I'm 
finding it absolutely difficult to localize the issue so that I can 
present a minimal test case.

So, with the information that I have provided to you so far, hopefully you 
can provide a minimal test case :-) (or at least, I can wish).

Regards,
--
Haroon Rafique
<ha...@utoronto.ca>

Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Today at 3:30pm, DD=>Donnchadh � Donnabh�in <do...@gmail.com> wrote:

DD>   Hi Dan,
DD> 
DD> When I switch from surefire 2.4 to 2.4.1 I get the error below.
DD> /tmp/surefirebooter22682.jar doesn't seem to even exist. Any idea what
DD> might be causing this?
DD> 
DD>   Thanks
DD> 
DD>     Donnchadh
DD> 

Funny that you mention that. It happens for me too on jdk 1.6.0_04 but 
only when running under cruisecontrol. I'm on maven 2.0.8, surefire 2.4.

Later,
--
Haroon Rafique
<ha...@utoronto.ca>


Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

Posted by Donnchadh Ó Donnabháin <do...@gmail.com>.
  Hi Dan,

When I switch from surefire 2.4 to 2.4.1 I get the error below.
/tmp/surefirebooter22682.jar doesn't seem to even exist. Any idea what
might be causing this?

  Thanks

    Donnchadh


[INFO] Surefire report directory: /home/donnchadh/projects/ ...
/target/surefire-reports
Failed to load Main-Class manifest attribute from
/tmp/surefirebooter22682.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/donnchadh/projects/ ... /target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to /home/donnchadh/projects/ ... /target/surefire-reports
for the individual test results.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are
test failures.

Please refer to /home/donnchadh/projects/ ... /target/surefire-reports
for the individual test results.
        at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:530)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more

[donnchadh@donnchadh myproject]$ mvn -version
Maven version: 2.0.8
Java version: 1.6.0_04
OS name: "linux" version: "2.6.23.14-107.fc8" arch: "i386" Family: "unix"


On 06/02/2008, Dan Fabulich <df...@apache.org> wrote:
>
> The Maven team is pleased to announce the release of the Maven Surefire
> Plugin, version 2.4.1
>
> http://maven.apache.org/plugins/maven-surefire-plugin/
>
> You can run mvn -up to get the latest version of the plugin, or specify
> the version in your project's plugin configuration:
>
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-surefire-plugin</artifactId>
>   <version>2.4.1</version>
> </plugin>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org