You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jux <ju...@hot.ee> on 2007/06/05 16:34:58 UTC

M2: Surfire report directory

Hi

When I build my project (mvn install) the tests fail. The target folder will
be created with the compiled classes and test classes, but the
target/surefire-reports folder will not be created. 

The error log is something like this:
-----------------------------------------------
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\Projects\myproject\util\target\surefire-reports
The system cannot find the path specified.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Jun 05 17:20:13 EEST 2007
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------


I am very suprised about the line "The system cannot find the path
specified." As I assume the directory should be created by surefire plugin,
but before it is done, something wants to already access it and it fails. I
don't know what to do.

Juhan.
-- 
View this message in context: http://www.nabble.com/M2%3A-Surfire-report-directory-tf3872167s177.html#a10970826
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2: Surfire report directory

Posted by Jux <ju...@hot.ee>.
Daah ... never mind the "java\bin\bin\java.exe" invalid path bug. When I
corrected it, maven still gave the same error with the old IBM's java. So
the newer Java version was still required.

Juhan.




Jux wrote:
> 
> Ok I found the cause of the problem. It was my settings.xml file. There I
> have specified the java version:
> C:\Progra~1\IBM\WebSphere\AppServer\java\bin\bin\java.exe
> 
> It is IBM's implementation of Java and even though it is version 1.5, it
> did not work with it, so I used newer version of Sun's Java and it worked
> well.
> 
> Juhan.
> 

-- 
View this message in context: http://www.nabble.com/M2%3A-Surfire-report-directory-tf3872167s177.html#a10983932
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2: Surfire report directory

Posted by Jux <ju...@hot.ee>.
Ok I found the cause of the problem. It was my settings.xml file. There I
have specified the java version:
C:\Progra~1\IBM\WebSphere\AppServer\java\bin\bin\java.exe

It is IBM's implementation of Java and even though it is version 1.5, it did
not work with it, so I used newer version of Sun's Java and it worked well.

Juhan.


Jux wrote:
> 
> Firstly, no, I have not configured anything in my pom.xml for the
> surefire-plugin.
> 
> Secondly tried already with the -X, but I couldn't read anything useful
> out of it, but I paste some of the output here:
> -----------------------------------------------------
> ...
> [INFO] Surefire report directory:
> D:\Projects\myproject\util\target\surefire-reports
> Forking command line:
> C:\Progra~1\IBM\WebSphere\AppServer\java\bin\bin\java.exe
> -enableassertions -classpath "C:\Documents and
> Settings\voolajuh\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;C:\Documents
> and
> Settings\voolajuh\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents
> and
> Settings\voolajuh\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar"
> org.apache.maven.surefire.booter.SurefireBooter
> C:\DOCUME~1\voolajuh\LOCALS~1\Temp\surefire59668tmp
> C:\DOCUME~1\voolajuh\LOCALS~1\Temp\surefire59669tmp
> The system cannot find the path specified.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> 
> I also have not told, that for other developers in my team, that error
> does not occur.
> 
> 
> Juhan.
> 
> 
> 
> Maria Odea Ching-2 wrote:
>> 
>> Could you try building your project with -X?
>> And do you have any configuration set in you pom for the surefire-plugin?
>> 
>> -Deng
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/M2%3A-Surfire-report-directory-tf3872167s177.html#a10983930
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2: Surfire report directory

Posted by Jux <ju...@hot.ee>.
Yep, eventually I did that also. Now everything works great.


Jo Vandermeeren wrote:
> 
> On 6/6/07, Jux <ju...@hot.ee> wrote:
>>
>> I also have not told, that for other developers in my team, that error
>> does
>> not occur.
> 
> 
> Hmm..
> You might want to remove the surefire plugin from your local repository
> and
> clean your project.
> Then try it again..
> 
> Cheers
> Jo
> 
> 

-- 
View this message in context: http://www.nabble.com/M2%3A-Surfire-report-directory-tf3872167s177.html#a10990603
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2: Surfire report directory

Posted by Jo Vandermeeren <jo...@gmail.com>.
On 6/6/07, Jux <ju...@hot.ee> wrote:
>
> I also have not told, that for other developers in my team, that error
> does
> not occur.


Hmm..
You might want to remove the surefire plugin from your local repository and
clean your project.
Then try it again..

Cheers
Jo

Re: M2: Surfire report directory

Posted by Jux <ju...@hot.ee>.
Firstly, no, I have not configured anything in my pom.xml for the
surefire-plugin.

Secondly tried already with the -X, but I couldn't read anything useful out
of it, but I paste some of the output here:
-----------------------------------------------------
...
[DEBUG] Adding managed depedendencies for myproject
[DEBUG]   junit:junit:jar:4.3.1:test
[DEBUG]   net.java.dev.mocquer:mocquer:jar:0.9.3:test
[DEBUG]   log4j:log4j:jar:1.2.13:compile
[DEBUG]   commons-collections:commons-collections:jar:3.2:compile
[DEBUG]   commons-lang:commons-lang:jar:2.2:compile
[DEBUG]   commons-logging:commons-logging:jar:1.1:compile
[DEBUG]   commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]   javax.j2ee:j2ee:jar:1.4:provided
[DEBUG]   javax.servlet:servlet-api:jar:2.4:provided
[DEBUG]   javax.servlet:jstl:jar:1.0:provided
[DEBUG]   org.hibernate:hibernate:jar:3.2.4.ga:compile
[DEBUG]   org.hibernate:hibernate-annotations:jar:3.2.1.ga:compile
[DEBUG]   org.springframework:spring:jar:2.0.5:compile
[DEBUG]   org.springframework:spring-mock:jar:2.0.5:test
[DEBUG]   commons-dbcp:commons-dbcp:jar:1.2.1:test
[DEBUG]   dbunit:dbunit:jar:2.1:test
[DEBUG]   hsqldb:hsqldb:jar:1.8.0.7:test
[DEBUG]   oracle:ojdbc14:jar:10.2.0.2:test
[DEBUG]   com.ibm.sibc:sibc.jms:jar:o0647.15:runtime
[DEBUG]   com.ibm.sibc:sibc.jndi:jar:o0647.15:runtime
[DEBUG]   com.ibm.ext:iwsorbutil:jar:6.1:test
[DEBUG]   com.ibm.mq:com.ibm.mq.pcf:jar:6.0:runtime
[DEBUG]   com.ibm.mq:com.ibm.mqjms:jar:6.0:runtime
[DEBUG]   com.ibm.mq:mqcontext:jar:2.2:runtime
[DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:compile
...
[DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for
project: null:maven-surefire-plugin:maven-plugin:2.2 from the repository.
...
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2:runtime
(selected for runtime)
...

[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0 for
project: null:surefire-booter:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
org.apache.maven.surefire:surefire:pom:2.0 from the repository.
...
[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.0:runtime,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:runtime}
...
[INFO] Surefire report directory:
D:\Projects\myproject\util\target\surefire-reports
Forking command line:
C:\Progra~1\IBM\WebSphere\AppServer\java\bin\bin\java.exe -enableassertions
-classpath "C:\Documents and
Settings\voolajuh\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;C:\Documents
and
Settings\voolajuh\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents
and
Settings\voolajuh\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar"
org.apache.maven.surefire.booter.SurefireBooter
C:\DOCUME~1\voolajuh\LOCALS~1\Temp\surefire59668tmp
C:\DOCUME~1\voolajuh\LOCALS~1\Temp\surefire59669tmp
The system cannot find the path specified.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: There are test failures.
	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:272)
	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.
	at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
	... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jun 06 09:55:57 EEST 2007
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------


I also have not told, that for other developers in my team, that error does
not occur.


Juhan.



Maria Odea Ching-2 wrote:
> 
> Could you try building your project with -X?
> And do you have any configuration set in you pom for the surefire-plugin?
> 
> -Deng
> 

-- 
View this message in context: http://www.nabble.com/M2%3A-Surfire-report-directory-tf3872167s177.html#a10983601
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2: Surfire report directory

Posted by Maria Odea Ching <oc...@exist.com>.
Could you try building your project with -X?
And do you have any configuration set in you pom for the surefire-plugin?

-Deng

Jux wrote:
> Hi
>
> When I build my project (mvn install) the tests fail. The target folder will
> be created with the compiled classes and test classes, but the
> target/surefire-reports folder will not be created. 
>
> The error log is something like this:
> -----------------------------------------------
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> D:\Projects\myproject\util\target\surefire-reports
> The system cannot find the path specified.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jun 05 17:20:13 EEST 2007
> [INFO] Final Memory: 5M/10M
> [INFO]
> ------------------------------------------------------------------------
>
>
> I am very suprised about the line "The system cannot find the path
> specified." As I assume the directory should be created by surefire plugin,
> but before it is done, something wants to already access it and it fails. I
> don't know what to do.
>
> Juhan.
>   


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