I'm very new to Maven and have only been following compilation guides to this point. When compiling LibrePlan for Fedora using MySQL, the following error below is generated. I've attached the logfiles for the failed test.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project libreplan-webapp: There are test failures. [ERROR] [ERROR] Please refer to /home/nathan/libreplan/libreplan-webapp/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project libreplan-webapp: There are test failures. Please refer to /home/nathan/libreplan/libreplan-webapp/target/surefire-reports for the individual test results. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:158) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures. Please refer to /home/nathan/libreplan/libreplan-webapp/target/surefire-reports for the individual test results. at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87) at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:641) at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:615) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:137) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [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 :libreplan-webapp Nathan Unsworth IT Helpdesk SME | CSS Corp. | "100% Referenceable Customers"<http://www.csscorp.com/> Desk: +1 650.385.2900 x2977 | Cell: +1 801.864.5734 | nathan.unswo...@csscorp.com<mailto:nathan.unswo...@csscorp.com> | www.csscorp.com<http://www.csscorp.com/> http://www.csscorp.com/common/email-disclaimer.php
------------------------------------------------------------------------------- Test set: org.libreplan.web.test.ws.subcontract.SubcontractServiceTest ------------------------------------------------------------------------------- Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.373 sec <<< FAILURE! validSubcontractedTaskData(org.libreplan.web.test.ws.subcontract.SubcontractServiceTest) Time elapsed: 0.193 sec <<< FAILURE! java.lang.AssertionError: Expected: <1000.00> got: <0> at org.junit.Assert.assertThat(Assert.java:502) at org.junit.Assert.assertThat(Assert.java:492) at org.libreplan.web.test.ws.subcontract.SubcontractServiceTest.validSubcontractedTaskData(SubcontractServiceTest.java:215) 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.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:160) at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233) at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333) at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217) at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197) at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) 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:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Failed tests: validSubcontractedTaskData(org.libreplan.web.test.ws.subcontract.SubcontractServiceTest): Tests in error: checkMoveOrderLineWithCriteriaAndAdvancesToOrderLineGroupWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655411, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddElementWithCriteriaAndAdvancesOnParent(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655412, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkRemoveElementWithCriteriaAndAdvancesOnParent(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655413, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkRemoveElementWithCriteriaAndAdvancesOnChild(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655414, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddCriterionOnChild(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655415, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddCriterionOnParent(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655416, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddAssignmentOnChild(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655417, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddAdvanceOnParent(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655418, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddElementOnOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655419, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkAddElementOnOrderLineGroupWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655420, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkRemoveElementOnOnlyOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655421, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkPreservationOfInvalidatedIndirectCriterionRequirementInToLeaf(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655422, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkIndentOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655423, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkIndentOnOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655424, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkIndentOnOrderLineGroupWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655425, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkUnindentOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655426, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithCriteriaAndAdvancesToOrderLineWithCriteriaAndAdvances(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655427, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithLabelToOrderLineGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655428, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithLabelToOrderLineInGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655429, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderGroupLineWithLabelToOrderLineGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655430, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderGroupLineWithLabelToOrderLineInGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655431, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithLabelOnChildToOrderLineGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655432, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithLabelOnChildToOrderLineInGroupWithSameLabel(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655433, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithAdvanceToOrderLineGroupWithSameAdvanceType(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655434, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithAdvanceToOrderLineInGroupWithSameAdvanceType(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655435, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithAdvanceToOrderLineGroupWithSameAdvance(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655436, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithAdvanceToOrderLineInGroupWithSameAdvance(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655437, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithAdvanceOnChildToOrderLineGroupWithSameAdvance(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655438, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithAdvanceOnChildToOrderLineInGroupWithSameAdvance(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655439, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithCriterionToOrderLineGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655440, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineWithCriterionToOrderLineInGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655441, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderGroupLineWithCriterionToOrderLineGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655442, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderGroupLineWithCriterionToOrderLineInGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655443, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithCriterionOnChildToOrderLineGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655444, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkMoveOrderLineGroupWithCriterionOnChildToOrderLineInGroupWithSameCriterion(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655445, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkRemoveElementWithAdvanceOnChildWhichSpread(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655446, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used checkChildrenAdvanceIsCreatedAndMarkedAsSpreadInOrder(org.libreplan.web.orders.OrderElementTreeModelTest): at CriterionType [ id: 655447, newObject: true] checkConstraintUniqueCriterionTypeName: Criterion Type name is already being used testBasicTransferOrder(org.libreplan.web.scenarios.TransferOrdersModelTest): at DirectCriterionRequirement [ id: 3030, newObject: false] criterionRequirements[0].criterion: criterion not specified testRemoveScenarioWithoutOrders(org.libreplan.web.scenarios.ScenarioModelTest): at IndirectCriterionRequirement [ id: 3032, newObject: false] children[0].criterionRequirements[0].criterion: criterion not specified; at DirectCriterionRequirement [ id: 3031, newObject: false] criterionRequirements[0].criterion: criterion not specified testRemoveScenarioWithOrdersJustInThisScenario(org.libreplan.web.scenarios.ScenarioModelTest): at IndirectCriterionRequirement [ id: 3032, newObject: false] children[0].criterionRequirements[0].criterion: criterion not specified; at DirectCriterionRequirement [ id: 3031, newObject: false] criterionRequirements[0].criterion: criterion not specified
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email