Created
August 24, 2015 07:45
-
-
Save honghuac/82d2932365ad2e2d6afa to your computer and use it in GitHub Desktop.
Maven Clean Install Fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.jboss.tools.fuse.examples.transformation:xml-to-java:bundle:1.0.0-SNAPSHOT | |
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 108, column 15 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] | |
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Fuse Data Transformation - XML to Java 1.0.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (823 B at 0.3 KB/sec) | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (679 B at 0.8 KB/sec) | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml | |
[WARNING] Checksum validation failed, could not read expected checksum: Checksum validation failed, expected 5242a0e0b56737fa013af1ddee1f6ec92cf2a03e but is 8f7e8de415bc618a0ef907a42a90762c44ee40f7 for http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml (2 KB at 2.7 KB/sec) | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml | |
[WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml.sha1. Error code 416, Requested Range Not Satisfiable for http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (765 B at 1.2 KB/sec) | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xml-to-java --- | |
[INFO] Deleting /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/target | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xml-to-java --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 7 resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ xml-to-java --- | |
[INFO] Compiling 7 source files to /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/target/classes | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xml-to-java --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/src/test/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ xml-to-java --- | |
[INFO] Compiling 2 source files to /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/target/test-classes | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.13-SONATYPE:test (default-test) @ xml-to-java --- | |
[INFO] Surefire report directory: /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/target/surefire-reports | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.pom | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.pom | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.pom (3 KB at 0.2 KB/sec) | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/surefire/surefire-providers/2.13-SONATYPE/surefire-providers-2.13-SONATYPE.pom | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-providers/2.13-SONATYPE/surefire-providers-2.13-SONATYPE.pom | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-providers/2.13-SONATYPE/surefire-providers-2.13-SONATYPE.pom (3 KB at 2.1 KB/sec) | |
[INFO] Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.jar | |
[INFO] Downloading: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.jar | |
[INFO] Downloaded: http://repository.jboss.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.13-SONATYPE/surefire-junit4-2.13-SONATYPE.jar (43 KB at 21.6 KB/sec) | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running example.TransformationTest | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] TransformationTest INFO Testing: transform(example.TransformationTest) | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] DefaultTypeConverter INFO Loaded 183 type converters | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-1) is starting | |
[ main] ManagedManagementStrategy INFO JMX is enabled | |
[ main] GlobalSettings INFO Trying to find Dozer configuration file: dozer.properties | |
[ main] GlobalSettings WARN Dozer configuration file not found: dozer.properties. Using defaults for all Dozer global properties. | |
[ main] DozerComponent INFO Configuring GlobalSettings to enable EL | |
[ main] DozerInitializer INFO Initializing Dozer. Version: 5.5.0, Thread Name: main | |
[ main] JMXPlatformImpl INFO Dozer JMX MBean [org.dozer.jmx:type=DozerStatisticsController] auto registered with the Platform MBean Server | |
[ main] JMXPlatformImpl INFO Dozer JMX MBean [org.dozer.jmx:type=DozerAdminController] auto registered with the Platform MBean Server | |
[ main] DozerBeanMapper INFO Initializing a new instance of dozer bean mapper. | |
[ main] DozerEndpoint INFO Loading Dozer mapping file transformation.xml. | |
[ main] SpringCamelContext INFO AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance. | |
[ main] SpringCamelContext INFO StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html | |
[ main] FileEndpoint INFO Endpoint is configured with noop=true so forcing endpoint to be idempotent as well | |
[ main] FileEndpoint INFO Using default memory based idempotent repository with cache max size: 1000 | |
[ main] SpringCamelContext INFO Route: route1 started and consuming from: Endpoint[file://src/data?fileName=abc-order.xml&noop=true] | |
[ main] SpringCamelContext INFO Route: route2 started and consuming from: Endpoint[direct://xml2java-test-input] | |
[ main] SpringCamelContext INFO Total 2 routes, of which 2 is started. | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-1) started in 0.534 seconds | |
[ main] route2 INFO Before transformation: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<ABCOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://java.sun.com"> | |
<header> | |
<status>GOLD</status> | |
<customer-num>ACME-123</customer-num> | |
<order-num>ORDER1</order-num> | |
</header> | |
<order-items> | |
<item id="PICKLE"> | |
<price>2.25</price> | |
<quantity>1000</quantity> | |
</item> | |
<item id="BANANA"> | |
<price>1.25</price> | |
<quantity>400</quantity> | |
</item> | |
</order-items> | |
</ABCOrder> | |
[ main] JaxbDataFormat INFO Creating JAXBContext with contextPath: abcorder and ApplicationContextClassLoader: sun.misc.Launcher$AppClassLoader@2a788b76 | |
[ main] StaxConverter INFO Created XMLInputFactory: com.sun.xml.internal.stream.XMLInputFactoryImpl@53287296. DOMSource/DOMResult may have issues with com.sun.xml.internal.stream.XMLInputFactoryImpl@53287296. We suggest using Woodstox. | |
[ main] route2 INFO After transformation: | |
custId:ACME-123 | |
priority:GOLD | |
orderId:ORDER1 | |
origin: | |
approvalCode:AUTO_OK | |
lineItems:[xyzorder.LineItem@2114da8, xyzorder.LineItem@698e8627] | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] TransformationTest INFO Testing done: transform(example.TransformationTest) | |
[ main] TransformationTest INFO Took: 0.171 seconds (171 millis) | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-1) is shutting down | |
[ main] DefaultShutdownStrategy INFO Starting to graceful shutdown 2 routes (timeout 10 seconds) | |
[el-1) thread #1 - ShutdownTask] DefaultShutdownStrategy INFO Route: route2 shutdown complete, was consuming from: Endpoint[direct://xml2java-test-input] | |
[el-1) thread #1 - ShutdownTask] DefaultShutdownStrategy INFO Route: route1 shutdown complete, was consuming from: Endpoint[file://src/data?fileName=abc-order.xml&noop=true] | |
[ main] DefaultShutdownStrategy INFO Graceful shutdown of 2 routes completed in 0 seconds | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-1) uptime 0.729 seconds | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-1) is shutdown in 0.012 seconds | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.087 sec | |
Running org.example.TransformationTest | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] TransformationTest INFO Testing: transform(org.example.TransformationTest) | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] DefaultTypeConverter INFO Loaded 183 type converters | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-3) is starting | |
[ main] DefaultManagementStrategy INFO JMX is disabled | |
[ main] DozerComponent INFO Configuring GlobalSettings to enable EL | |
[ main] DozerBeanMapper INFO Initializing a new instance of dozer bean mapper. | |
[ main] DozerEndpoint INFO Loading Dozer mapping file transformation.xml. | |
[ main] DozerBeanMapper INFO Initializing a new instance of dozer bean mapper. | |
[ main] DozerEndpoint INFO Loading Dozer mapping file transformation.xml. | |
[ main] SpringCamelContext INFO AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance. | |
[ main] SpringCamelContext INFO StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html | |
[ main] FileEndpoint INFO Endpoint is configured with noop=true so forcing endpoint to be idempotent as well | |
[ main] FileEndpoint INFO Using default memory based idempotent repository with cache max size: 1000 | |
[ main] SpringCamelContext INFO Route: route3 started and consuming from: Endpoint[file://src/data?fileName=abc-order.xml&noop=true] | |
[ main] SpringCamelContext INFO Route: route4 started and consuming from: Endpoint[direct://xml2json-test-input] | |
[ main] SpringCamelContext INFO Total 2 routes, of which 2 is started. | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-3) started in 0.061 seconds | |
[ main] route4 INFO Before transformation: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<ABCOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://java.sun.com"> | |
<header> | |
<status>GOLD</status> | |
<customer-num>ACME-123</customer-num> | |
<order-num>ORDER1</order-num> | |
</header> | |
<order-items> | |
<item id="PICKLE"> | |
<price>2.25</price> | |
<quantity>1000</quantity> | |
</item> | |
<item id="BANANA"> | |
<price>1.25</price> | |
<quantity>400</quantity> | |
</item> | |
</order-items> | |
</ABCOrder> | |
[ main] JaxbDataFormat INFO Creating JAXBContext with contextPath: abcorder and ApplicationContextClassLoader: sun.misc.Launcher$AppClassLoader@2a788b76 | |
[ main] JacksonDataFormat INFO Registering module: com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule@26ad0df | |
[ main] route4 INFO After transformation: | |
{"custId":"ACME-123","priority":"GOLD","orderId":"ORDER1","lineItems":[{"itemId":"PICKLE","amount":1000,"cost":2.25},{"itemId":"BANANA","amount":400,"cost":1.25}]} | |
[ main] MockEndpoint INFO Asserting: Endpoint[mock://xml2json-test-output] is satisfied | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] TransformationTest INFO Testing done: transform(org.example.TransformationTest) | |
[ main] TransformationTest INFO Took: 0.295 seconds (295 millis) | |
[ main] TransformationTest INFO ******************************************************************************** | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-3) is shutting down | |
[ main] DefaultShutdownStrategy INFO Starting to graceful shutdown 2 routes (timeout 10 seconds) | |
[el-3) thread #3 - ShutdownTask] DefaultShutdownStrategy INFO Route: route4 shutdown complete, was consuming from: Endpoint[direct://xml2json-test-input] | |
[el-3) thread #3 - ShutdownTask] DefaultShutdownStrategy INFO Route: route3 shutdown complete, was consuming from: Endpoint[file://src/data?fileName=abc-order.xml&noop=true] | |
[ main] DefaultShutdownStrategy INFO Graceful shutdown of 2 routes completed in 0 seconds | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-3) uptime 0.360 seconds | |
[ main] SpringCamelContext INFO Apache Camel 2.15.1 (CamelContext: camel-3) is shutdown in 0.002 seconds | |
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.833 sec <<< FAILURE! | |
transform(org.example.TransformationTest) Time elapsed: 0.832 sec <<< FAILURE! | |
java.lang.AssertionError: mock://xml2json-test-output Body of message: 0. Expected: <{"custId":"[ACME-123]","priority":"GOLD","orderId":"ORDER1","origin":"Web","approvalCode":"AUTO","lineItems":[{"itemId":"PICKLE","amount":1000,"cost":2.25},{"itemId":"BANANA","amount":400,"cost":1.25}]}> but was: <{"custId":"ACME-123","priority":"GOLD","orderId":"ORDER1","lineItems":[{"itemId":"PICKLE","amount":1000,"cost":2.25},{"itemId":"BANANA","amount":400,"cost":1.25}]}> | |
at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1394) | |
at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1376) | |
at org.apache.camel.component.mock.MockEndpoint$5.run(MockEndpoint.java:644) | |
at org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:410) | |
at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:378) | |
at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:366) | |
at org.example.TransformationTest.transform(TransformationTest.java:41) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) | |
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) | |
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) | |
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) | |
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) | |
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) | |
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) | |
at org.junit.rules.RunRules.evaluate(RunRules.java:20) | |
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) | |
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) | |
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) | |
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) | |
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) | |
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) | |
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) | |
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) | |
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) | |
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) | |
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) | |
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) | |
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) | |
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) | |
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) | |
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) | |
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) | |
Results : | |
Failed tests: transform(org.example.TransformationTest): mock://xml2json-test-output Body of message: 0. Expected: <{"custId":"[ACME-123]","priority":"GOLD","orderId":"ORDER1","origin":"Web","approvalCode":"AUTO","lineItems":[{"itemId":"PICKLE","amount":1000,"cost":2.25},{"itemId":"BANANA","amount":400,"cost":1.25}]}> but was: <{"custId":"ACME-123","priority":"GOLD","orderId":"ORDER1","lineItems":[{"itemId":"PICKLE","amount":1000,"cost":2.25},{"itemId":"BANANA","amount":400,"cost":1.25}]}> | |
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 29.528 s | |
[INFO] Finished at: 2015-08-24T15:46:18+08:00 | |
[INFO] Final Memory: 19M/159M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13-SONATYPE:test (default-test) on project xml-to-java: There are test failures. | |
[ERROR] | |
[ERROR] Please refer to /Users/hchin/git/fuse-mapper-labs/fuse-mapper-exer/xml-to-java/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment