Ah, the surefire reports only post when you call "mvn test", not just
"mvn install".  I didn't know that before.

Here is the contents of
pluto-util/target/surefire-reports/org.apache.pluto.util.assemble.ear.EarAssemblerTest.txt

-------------------------------------------------------------------------------
Test set: org.apache.pluto.util.assemble.ear.EarAssemblerTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.954
sec <<< FAILURE!
testEarAssemblyInPlace(org.apache.pluto.util.assemble.ear.EarAssemblerTest)
Time elapsed: 0.187 sec  <<< FAILURE!
junit.framework.AssertionFailedError: WAR archive did not contain any servlets
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at 
org.apache.pluto.util.assemble.ear.EarAssemblerTest.validateEarAssembly(EarAssemblerTest.java:125)
        at 
org.apache.pluto.util.assemble.ear.EarAssemblerTest.testEarAssemblyInPlace(EarAssemblerTest.java:81)
        at 
org.apache.pluto.util.assemble.ear.EarAssemblerTest.testEarAssemblyInPlace(EarAssemblerTest.java:81)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)





On 7/5/07, Elliot Metsger <[EMAIL PROTECTED]> wrote:
Ok thanks for the feedback.

But I need the test output in order to trouble shoot this.

If you want just zip up the content of
pluto-util/target/surefire-reports/ after you run 'mvn test'.  If you
don't have anything under pluto-util/target/surefire-reports/ then
something is not right... that is where maven puts test results.

In the mean time I'll try to scrounge around and find a windows box to
test on but please send the test output.

Thanks,
Elliot

[EMAIL PROTECTED] wrote:
> Elliot,
>
> I also had failures on the same test: with Maven 2.0.6 and Java 1.5.0_11
> on Windows XP.
> /Craig
>
>
>
>
> Elliot Metsger <[EMAIL PROTECTED]>
> 07/05/2007 11:36 AM
> Please respond to
> [email protected]
>
>
> To
> [email protected]
> cc
>
> Subject
> Re: Trunk build failing
>
>
>
>
>
>
> Daniel,
>
> Please post the content of:
> 
pluto-util/target/surefire-reports/org.apache.pluto.util.assemble.ear.EarAssemblerTest.txt
>
> And the JVM you are using (java -version)
>
> And the version of Maven (mvn -v)
>
> To skip tests: mvn -Dmaven.test.skip=true
>
> Thanks!
> Elliot
>
> Daniel Larsen wrote:
>> Hey, I just downloaded trunk and am getting an error when I tried to
> build.
>> Any advice on how to fix this?  It passes a bunch of stages first,
>> then fails on one.  I don't know much about the "EarAssemblerTest".
>>
>> Also, how does one build and skip the tests?
>>
>>
>>
>>
>> mvn clean install
>>
>> .....
>> .....
>>
>> [INFO] [war:war]
>> [INFO] Exploding webapp...
>> [INFO] Assembling webapp pluto-portal in
>> C:\pluto\pluto-portal\target\pluto-portal
>> [INFO] Copy webapp webResources to
>> C:\pluto\pluto-portal\target\pluto-portal
>> [INFO] Copy webapp webResources to
>> C:\pluto\pluto-portal\target\pluto-portal
>> [INFO] Generating war C:\pluto\pluto-portal\target\pluto-portal.war
>> [INFO] Building war: C:\pluto\pluto-portal\target\pluto-portal.war
>> [INFO] [install:install]
>> [INFO] Installing C:\pluto\pluto-portal\target\pluto-portal.war to
>>
> 
C:\.m2\org\apache\pluto\pluto-portal\1.2.0-SNAPSHOT\pluto-portal-1.2.0-SNAPSHOT.war
>
>>
>> [INFO]
>>
> ----------------------------------------------------------------------------
>
>> [INFO] Building Pluto Utilities
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>>
> ----------------------------------------------------------------------------
>
>> [INFO] [clean:clean]
>> [INFO] Deleting directory C:\pluto\pluto-util\target
>> [INFO] Deleting directory C:\pluto\pluto-util\target\classes
>> [INFO] Deleting directory C:\pluto\pluto-util\target\test-classes
>> [INFO] Deleting directory C:\pluto\pluto-util\target\site
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Compiling 24 source files to C:\pluto\pluto-util\target\classes
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] Compiling 6 source files to
> C:\pluto\pluto-util\target\test-classes
>> [INFO] [surefire:test]
>> [INFO] Surefire report directory:
>> C:\pluto\pluto-util\target\surefire-reports
>>
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running org.apache.pluto.util.assemble.file.FileAssemblerTest
>> Jul 5, 2007 11:04:21 AM org.exolab.castor.mapping.Mapping loadMapping
>> INFO: Loading mapping descriptors from
>>
> 
jar:file:/C:/pluto/pluto-descriptor-impl/target/pluto-descriptor-impl-1.2.0-SNAPSHOT.jar!/org/apache/pluto/descriptors/services/castor/castor-web-xml-mapping.xml
>
>> Jul 5, 2007 11:04:22 AM org.exolab.castor.mapping.Mapping loadMapping
>> INFO: Loading mapping descriptors from
>>
> 
jar:file:/C:/pluto/pluto-descriptor-impl/target/pluto-descriptor-impl-1.2.0-SNAPSHOT.jar!/org/apache/pluto/descriptors/services/castor/castor-portlet-xml-mapping.xml
>
>> ....
>> ....
>> Jul 5, 2007 11:04:26 AM org.exolab.castor.mapping.Mapping loadMapping
>> INFO: Loading mapping descriptors from
>>
> 
jar:file:/C:/pluto/pluto-descriptor-impl/target/pluto-descriptor-impl-1.2.0-SNAPSHOT.jar!/org/apache/pluto/descriptors/services/castor/castor-portlet-xml-mapping.xml
>
>> Jul 5, 2007 11:04:26 AM org.exolab.castor.mapping.Mapping loadMapping
>> INFO: Loading mapping descriptors from
>>
> 
jar:file:/C:/pluto/pluto-descriptor-impl/target/pluto-descriptor-impl-1.2.0-SNAPSHOT.jar!/org/apache/pluto/descriptors/services/castor/castor-web-xml-mapping.xml
>
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.563
> sec
>> Results :
>>
>> Failed tests:
>>
> testEarAssemblyInPlace(org.apache.pluto.util.assemble.ear.EarAssemblerTest)
>
>>
>> Tests run: 21, Failures: 1, Errors: 0, Skipped: 0
>>
>> [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: 33 seconds
>> [INFO] Finished at: Thu Jul 05 11:04:26 EDT 2007
>> [INFO] Final Memory: 17M/32M
>> [INFO]
>> ------------------------------------------------------------------------
>
>

Reply via email to