why does mvn clean install not run ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

why does mvn clean install not run ?

Stadelmann Josef-2

Hi all,

 

I just wonderwhy I always struggle to build axis2 by executing Mvn clean install, but succeed when skiping the tests.

 

What are pre-requisites that the tests blow run on my computer? You may know, we are behind a fire wall/proxy server, just in case that matters.

 

BTW: it’s the buid from trunk which fails, and trunk was just updated today without any problems using TourtoiseSVN

JDK 8 is installed, as tested by the mvn build process

 

Regards – Josef

 

-------------------------------------------------------

T E S T S

-------------------------------------------------------

Running org.apache.axis2.clustering.ContextReplicationTest

Tests run: 14, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 74.06 sec <<< FAILURE!

testRemovePropertyFromServiceContext(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 5.634 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testRemovePropertyFromServiceContext(ContextReplicationTest.java:506)

 

testSetPropertyInServiceContext(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.916 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

       at org.apache.axis2.clustering.ContextReplicationTest.testSetPropertyInServiceContext(ContextReplicationTest.java:447)

 

testSetPropertyInConfigurationContext(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.839 sec  <<< FAILURE!

junit.framework.ComparisonFailure: expected:<configCtxVal1> but was:<null>

        at junit.framework.Assert.assertEquals(Assert.java:100)

        at junit.framework.Assert.assertEquals(Assert.java:107)

        at junit.framework.TestCase.assertEquals(TestCase.java:269)

        at org.apache.axis2.clustering.ContextReplicationTest.testSetPropertyInConfigurationContext(ContextReplicationTest.java:267)

 

testRemovePropertyFromServiceGroupContext(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.835 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testRemovePropertyFromServiceGroupContext(ContextReplicationTest.java:351)

 

testSetPropertyInServiceContext2(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.815 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testSetPropertyInServiceContext2(ContextReplicationTest.java:476)

 

testRemovePropertyFromConfigurationContext(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.827 sec  <<< FAILURE!

junit.framework.ComparisonFailure: expected:<configCtxVal1> but was:<null>

        at junit.framework.Assert.assertEquals(Assert.java:100)

        at junit.framework.Assert.assertEquals(Assert.java:107)

        at junit.framework.TestCase.assertEquals(TestCase.java:269)

        at org.apache.axis2.clustering.ContextReplicationTest.testRemovePropertyFromConfigurationContext(ContextReplicationTest.java:294)

 

testSetPropertyInServiceGroupContext2(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.821 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testSetPropertyInServiceGroupContext2(ContextReplicationTest.java:384)

 

testRemovePropertyFromServiceContext2(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.8 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testRemovePropertyFromServiceContext2(ContextReplicationTest.java:542)

 

testReplicationExclusion3(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.769 sec  <<< FAILURE!

junit.framework.ComparisonFailure: expected:<configCtxVal3> but was:<null>

        at junit.framework.Assert.assertEquals(Assert.java:100)

        at junit.framework.Assert.assertEquals(Assert.java:107)

        at junit.framework.TestCase.assertEquals(TestCase.java:269)

        at org.apache.axis2.clustering.ContextReplicationTest.testReplicationExclusion3(ContextReplicationTest.java:635)

 

testRemovePropertyFromServiceGroupContext2(org.apache.axis2.clustering.ContextReplicationTest)  Time elapsed: 4.766 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<sgCtxVal1> but was:<null>

        at junit.framework.Assert.fail(Assert.java:57)

        at junit.framework.Assert.failNotEquals(Assert.java:329)

        at junit.framework.Assert.assertEquals(Assert.java:78)

        at junit.framework.Assert.assertEquals(Assert.java:86)

        at junit.framework.TestCase.assertEquals(TestCase.java:253)

        at org.apache.axis2.clustering.ContextReplicationTest.testRemovePropertyFromServiceGroupContext2(ContextReplicationTest.java:412)

 

Running org.apache.axis2.clustering.ObjectSerializationTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

 

Results :

 

Failed tests:

  ContextReplicationTest.testRemovePropertyFromServiceContext:506 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testSetPropertyInServiceContext:447 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testSetPropertyInConfigurationContext:267 expected:<configCtxVal1> but was:<null>

  ContextReplicationTest.testRemovePropertyFromServiceGroupContext:351 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testSetPropertyInServiceContext2:476 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testRemovePropertyFromConfigurationContext:294 expected:<configCtxVal1> but was:<null>

  ContextReplicationTest.testSetPropertyInServiceGroupContext2:384 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testRemovePropertyFromServiceContext2:542 expected:<sgCtxVal1> but was:<null>

  ContextReplicationTest.testReplicationExclusion3:635 expected:<configCtxVal3> but was:<null>

 ContextReplicationTest.testRemovePropertyFromServiceGroupContext2:412 expected:<sgCtxVal1> but was:<null>

 

Tests run: 15, Failures: 10, Errors: 0, Skipped: 0

 

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Apache Axis2 - Root ............................... SUCCESS [13.280s]

[INFO] Apache Axis2 - Resource bundle .................... SUCCESS [5.931s]

[INFO] Apache Axis2 - Kernel ............................. SUCCESS [59.412s]

[INFO] Apache Axis2 - Data Binding ....................... SUCCESS [20.727s]

[INFO] Apache Axis2 - Transport - Local .................. SUCCESS [4.940s]

[INFO] Apache Axis2 - Addressing ......................... SUCCESS [6.006s]

[INFO] Apache Axis2 - Transport - Base ................... SUCCESS [10.398s]

[INFO] Apache Axis2 - Transport - testkit ................ SUCCESS [6.606s]

[INFO] Apache Axis2 - Transport - HTTP ................... SUCCESS [30.893s]

[INFO] Apache Axis2 - Code Generation .................... SUCCESS [12.183s]

[INFO] Apache Axis2 - ADB Codegen ........................ SUCCESS [50.327s]

[INFO] Apache Axis2 - Clustering ......................... FAILURE [1:16.766s]

[INFO] Apache Axis2 - SAAJ ............................... SKIPPED

[INFO] Apache Axis2 - Ping ............................... SKIPPED

[INFO] Apache Axis2 - MEX ................................ SKIPPED

[INFO] axis2-repo-maven-plugin ........................... SKIPPED

[INFO] Apache Axis2 - Metadata ........................... SKIPPED

[INFO] Apache Axis2 - CORBA .............................. SKIPPED

[INFO] Apache Axis2 - Java2WSDL .......................... SKIPPED

[INFO] Apache Axis2 - Fast Infoset ....................... SKIPPED

[INFO] Apache Axis2 - JAXB-RI Data Binding ............... SKIPPED

[INFO] Apache Axis2 - JAXWS .............................. SKIPPED

[INFO] Apache Axis2 - JAXWS (mar) ........................ SKIPPED

[INFO] Apache Axis2 - Test Utilities ..................... SKIPPED

[INFO] Apache Axis2 - JiBX Data Binding .................. SKIPPED

[INFO] Apache Axis2 - JSON ............................... SKIPPED

[INFO] Apache Axis2 - MTOM Policy ........................ SKIPPED

[INFO] Apache Axis2 - MTOM Policy module ................. SKIPPED

[INFO] Apache Axis2 - OSGi Integration ................... SKIPPED

[INFO] Apache Axis2 - Scripting .......................... SKIPPED

[INFO] Apache Axis2 - SOAP Monitor Servlet ............... SKIPPED

[INFO] Apache Axis2 - SOAP Monitor Module ................ SKIPPED

[INFO] Apache Axis2 - spring ............................. SKIPPED

[INFO] Apache Axis2 - XMLBeans Data Binding .............. SKIPPED

[INFO] Apache Axis2 - Version Service .................... SKIPPED

[INFO] Apache Axis2 - Web Application module ............. SKIPPED

[INFO] Apache Axis2 - tool - AAR Maven Plugin ............ SKIPPED

[INFO] Apache Axis2 - tool - Ant Plugin .................. SKIPPED

[INFO] Apache Axis2 - tool - Eclipse Codegen Plugin ...... SKIPPED

[INFO] Apache Axis2 - tool - Eclipse service Plugin ...... SKIPPED

[INFO] Apache Axis2 - tool - Intellij IDEA Plugin ........ SKIPPED

[INFO] Apache Axis2 - tool - Java2WSDL Maven Plugin ...... SKIPPED

[INFO] Apache Axis2 - tool - MAR Maven Plugin ............ SKIPPED

[INFO] Apache Axis2 - tool - WSDL2Code Maven Plugin ...... SKIPPED

[INFO] Apache Axis2 Simple HTTP server Maven Plugin ...... SKIPPED

[INFO] Apache Axis2 - Transport - JMS .................... SKIPPED

[INFO] Apache Axis2 - Transport - Mail ................... SKIPPED

[INFO] Apache Axis2 - Transport - TCP .................... SKIPPED

[INFO] Apache Axis2 - Transport - UDP .................... SKIPPED

[INFO] Apache Axis2 - Transport - XMPP ................... SKIPPED

[INFO] Javadoc ........................................... SKIPPED

[INFO] Apache Axis2 - ADB Tests .......................... SKIPPED

[INFO] Apache Axis2 - Integration ........................ SKIPPED

[INFO] Axis2 quickstart archetype ........................ SKIPPED

[INFO] Axis2 quickstart-web archetype .................... SKIPPED

[INFO] Apache Axis2 - JAXWS Integration Tests ............ SKIPPED

[INFO] Apache Axis2 - OSGi Tests ......................... SKIPPED

[INFO] Apache Axis2 - Transport - HTTP - Commons HttpClient 3.x  SKIPPED

[INFO] Apache Axis2 - Distribution ....................... SKIPPED

[INFO] Samples parent POM ................................ SKIPPED

[INFO] JAXWS - Starting from Java Example ................ SKIPPED

[INFO] JAXWS Addressbook Service ......................... SKIPPED

[INFO] JAXWS Calculator Service .......................... SKIPPED

[INFO] JAXWS Interop Sample .............................. SKIPPED

[INFO] JAXWS Samples - Echo, Ping, MTOM .................. SKIPPED

[INFO] Apache Axis2 -JAXWS Version Service ............... SKIPPED

[INFO] Apache Axis2 Transport-HTTPS sample ............... SKIPPED

[INFO] httpsService ...................................... SKIPPED

[INFO] httpsClient ....................................... SKIPPED

[INFO] Apache Axis2 Transport-JMS sample ................. SKIPPED

[INFO] jmsService ........................................ SKIPPED

[INFO] databinding-tests ................................. SKIPPED

[INFO] jaxbri-tests ...................................... SKIPPED

[INFO] systests .......................................... SKIPPED

[INFO] webapp-tests ...................................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5:01.744s

[INFO] Finished at: Tue Jul 05 10:07:22 CEST 2016

[INFO] Final Memory: 88M/896M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project axis2-clustering: There are test failures.

[ERROR]

[ERROR] Please refer to E:\asf\axis\axis2\java\core\trunk\modules\clustering\target\surefire-reports for the individual test results.

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :axis2-clustering

E:\asf\axis\axis2\java\core\trunk>