-
Oct 22nd, 2012, 07:08 PM
#1
Error in running the test project spring roo - Maven
Hello guys ...
I'm having trouble generating the buil project using spring roo prompt windows. It seems the
error and maven.
Anyone have any suggestions to solve the problem.
Below is a description of the error
Thank you!
vlw
C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\bin>mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building lorenaroo 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ lorenaroo ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ lorenaroo
---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ lorenaroo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:test-compile (default) @ lorenaroo ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ lo
renaroo ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\spring-roo\spring-roo-1.2.2\spring
-roo-1.2.2.RELEASE\bin\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ lorenar
oo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ lorenaroo ---
[INFO] Surefire report directory: C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.
2.RELEASE\bin\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests in error:
testMarkerMethod(br.com.yahw.lorenaroo.domain.Clie nteIntegrationTest): Failed
to load ApplicationContext
testCountClientes(br.com.yahw.lorenaroo.domain.Cli enteIntegrationTest): Failed
to load ApplicationContext
testFindCliente(br.com.yahw.lorenaroo.domain.Clien teIntegrationTest): Failed t
o load ApplicationContext
testFindAllClientes(br.com.yahw.lorenaroo.domain.C lienteIntegrationTest): Fail
ed to load ApplicationContext
testFindClienteEntries(br.com.yahw.lorenaroo.domai n.ClienteIntegrationTest): F
ailed to load ApplicationContext
testMergeUpdate(br.com.yahw.lorenaroo.domain.Clien teIntegrationTest): Failed t
o load ApplicationContext
testFlush(br.com.yahw.lorenaroo.domain.ClienteInte grationTest): Failed to load
ApplicationContext
testRemove(br.com.yahw.lorenaroo.domain.ClienteInt egrationTest): Failed to loa
d ApplicationContext
testPersist(br.com.yahw.lorenaroo.domain.ClienteIn tegrationTest): Failed to lo
ad ApplicationContext
testMarkerMethod(br.com.yahw.lorenaroo.web.Cliente IntegrationTest): Failed to
load ApplicationContext
testCountClientes(br.com.yahw.lorenaroo.web.Client eIntegrationTest): Failed to
load ApplicationContext
testFindCliente(br.com.yahw.lorenaroo.web.ClienteI ntegrationTest): Failed to l
oad ApplicationContext
testFindAllClientes(br.com.yahw.lorenaroo.web.Clie nteIntegrationTest): Failed
to load ApplicationContext
testFindClienteEntries(br.com.yahw.lorenaroo.web.C lienteIntegrationTest): Fail
ed to load ApplicationContext
testMergeUpdate(br.com.yahw.lorenaroo.web.ClienteI ntegrationTest): Failed to l
oad ApplicationContext
testFlush(br.com.yahw.lorenaroo.web.ClienteIntegra tionTest): Failed to load Ap
plicationContext
testRemove(br.com.yahw.lorenaroo.web.ClienteIntegr ationTest): Failed to load A
pplicationContext
testPersist(br.com.yahw.lorenaroo.web.ClienteInteg rationTest): Failed to load
ApplicationContext
Tests run: 18, Failures: 0, Errors: 18, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.537s
[INFO] Finished at: Mon Oct 22 21:44:16 BRST 2012
[INFO] Final Memory: 12M/166M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
12:test (default-test) on project lorenaroo: There are test failures.
[ERROR]
[ERROR] Please refer to C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\
bin\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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...MojoFailureExc
eption
C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\bin>
C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\bin>mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building lorenaroo 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ lorenaroo ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ lorenaroo
---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ lorenaroo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:test-compile (default) @ lorenaroo ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ lo
renaroo ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\spring-roo\spring-roo-1.2.2\spring
-roo-1.2.2.RELEASE\bin\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ lorenar
oo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ lorenaroo ---
[INFO] Surefire report directory: C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.
2.RELEASE\bin\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests in error:
testMarkerMethod(br.com.yahw.lorenaroo.domain.Clie nteIntegrationTest): Failed
to load ApplicationContext
testCountClientes(br.com.yahw.lorenaroo.domain.Cli enteIntegrationTest): Failed
to load ApplicationContext
testFindCliente(br.com.yahw.lorenaroo.domain.Clien teIntegrationTest): Failed t
o load ApplicationContext
testFindAllClientes(br.com.yahw.lorenaroo.domain.C lienteIntegrationTest): Fail
ed to load ApplicationContext
testFindClienteEntries(br.com.yahw.lorenaroo.domai n.ClienteIntegrationTest): F
ailed to load ApplicationContext
testMergeUpdate(br.com.yahw.lorenaroo.domain.Clien teIntegrationTest): Failed t
o load ApplicationContext
testFlush(br.com.yahw.lorenaroo.domain.ClienteInte grationTest): Failed to load
ApplicationContext
testRemove(br.com.yahw.lorenaroo.domain.ClienteInt egrationTest): Failed to loa
d ApplicationContext
testPersist(br.com.yahw.lorenaroo.domain.ClienteIn tegrationTest): Failed to lo
ad ApplicationContext
testMarkerMethod(br.com.yahw.lorenaroo.web.Cliente IntegrationTest): Failed to
load ApplicationContext
testCountClientes(br.com.yahw.lorenaroo.web.Client eIntegrationTest): Failed to
load ApplicationContext
testFindCliente(br.com.yahw.lorenaroo.web.ClienteI ntegrationTest): Failed to l
oad ApplicationContext
testFindAllClientes(br.com.yahw.lorenaroo.web.Clie nteIntegrationTest): Failed
to load ApplicationContext
testFindClienteEntries(br.com.yahw.lorenaroo.web.C lienteIntegrationTest): Fail
ed to load ApplicationContext
testMergeUpdate(br.com.yahw.lorenaroo.web.ClienteI ntegrationTest): Failed to l
oad ApplicationContext
testFlush(br.com.yahw.lorenaroo.web.ClienteIntegra tionTest): Failed to load Ap
plicationContext
testRemove(br.com.yahw.lorenaroo.web.ClienteIntegr ationTest): Failed to load A
pplicationContext
testPersist(br.com.yahw.lorenaroo.web.ClienteInteg rationTest): Failed to load
ApplicationContext
~.Cliente roo> perform test
Tests run: 18, Failures: 0, Errors: 18, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.537s
[INFO] Finished at: Mon Oct 22 21:44:16 BRST 2012
[INFO] Final Memory: 12M/166M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
12:test (default-test) on project lorenaroo: There are test failures.
[ERROR]
[ERROR] Please refer to C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\
bin\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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...MojoFailureExc
eption
C:\spring-roo\spring-roo-1.2.2\spring-roo-1.2.2.RELEASE\bin>
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules