The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dmag (2) [Avatar] Offline
#1
Hi,
I've got a build error with the sourcode and can't figure out why. ( I am a novice to maven ). Console output is give below.


F:Testpia-1.0-SNAPSHOT>mvn -version
Maven version: 2.0

F:Testpia-1.0-SNAPSHOT>mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] POJOs in Action
[INFO] POJOs In Action - Util
[INFO] POJOs in Action - Utils Spring
[INFO] POJOs in Action - shared spring hibernate
[INFO] POJOs in Action - Chapters 4 and 6, ORMUnit for Hibernate
[INFO] POJOs in Action - Chapter 1, Hibernate Banking Example
[INFO] POJOs in Action - Chapter 3, Domain model
[INFO] POJOs in Action - Chapter 9, ORMUnit for iBATIS
[INFO] POJOs in Action - Chapter 13, iBATIS Lock Manager
[INFO] POJOs in Action - Chapter 6, Hibernate domain model
[INFO] POJOs in Action - chapter 7, POJO facade
[INFO] POJOs in Action - Chapter 7, POJO facade, Hibernate
[INFO] POJOs in Action - Chapter 8, Exposed Hibernate Web Application
[INFO] POJOs in Action - shared spring ibatis
[INFO] POJOs in Action - Chapter 9, Transaction Script examples
[INFO] POJOs in Action - Chapter 11, Dynamic queries domain model
[INFO] POJOs in Action - Chapter 11, Hibernate Dynamic Paged Queries
[INFO] POJOs in Action - Chapter 11, Dynamic queries, iBATIS
[INFO] POJOs in Action - Chapter 12, Concurrency, domain model
[INFO] POJOs in Action - Chapter 12, Hibernate concurrency
[INFO] POJOs in Action - Chapter 12, Concurrency, transaction script
[INFO] POJOs in Action - Chapter 13, Offline locking, domain model
[INFO] POJOs in Action - Chapter 13, Hibernate Offline Locking
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs in Action
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] Ignoring available plugin update: 2.1 as it requires Maven version 2.0.4
[INFO] [install:install]
[INFO] Installing F:Testpia-1.0-SNAPSHOTpom.xml to Csmilieocuments and Settings\r
xxxx.m2 epository
etchrisrichardsonpia1.0-SNAPSHOTpia-1.0-SNAPSH
OT.pom
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs In Action - Util
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: F:Testpia-1.0-SNAPSHOTpia-util argetpia-util-1.0-SNAPS
HOT.jar
[INFO] [install:install]
[INFO] Installing F:Testpia-1.0-SNAPSHOTpia-util argetpia-util-1.0-SNAPSHOT
.jar to Csmilieocuments and Settingsxxxx.m2 epository
etchrisrichards
onpia-util1.0-SNAPSHOTpia-util-1.0-SNAPSHOT.jar
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs in Action - Utils Spring
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: F:Testpia-1.0-SNAPSHOTpia-util-spring argetpia-util-sp
ring-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing F:Testpia-1.0-SNAPSHOTpia-util-spring argetpia-util-sprin
g-1.0-SNAPSHOT.jar to Csmilieocuments and Settingsxxxx.m2 epository
et
chrisrichardsonpia-util-spring1.0-SNAPSHOTpia-util-spring-1.0-SNAPSHOT.jar
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs in Action - shared spring hibernate
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [install:install]
[INFO] Installing F:Testpia-1.0-SNAPSHOTshared-spring-hibernatepom.xml to C:
Documents and Settingsxxxx.m2 epository
etchrisrichardsonshared-
spring-hibernate1.0-SNAPSHOTshared-spring-hibernate-1.0-SNAPSHOT.pom
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs in Action - Chapters 4 and 6, ORMUnit for Hibernate
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[WARNING]
This artifact has been relocated to xercessmilieercesImpl:2.0.2.


[WARNING]
This artifact has been relocated to xml-apissmilieml-apis:1.0.b2.


[INFO] [surefire:test]
[INFO] Surefire report directory: F:Testpia-1.0-SNAPSHOTormunit-hibernate ar
getsurefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to create te
st class 'net.chrisrichardson.ormunit.hibernate.tests.ExampleMappingTests'; nest
ed exception is java.lang.ClassNotFoundException: net.chrisrichardson.ormunit.hi
bernate.tests.ExampleMappingTests; nested exception is org.apache.maven.surefire
.testset.TestSetFailedException: Unable to create test class 'net.chrisrichardso
n.ormunit.hibernate.tests.ExampleMappingTests'; nested exception is java.lang.Cl
assNotFoundException: net.chrisrichardson.ormunit.hibernate.tests.ExampleMapping
Tests
org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test
class 'net.chrisrichardson.ormunit.hibernate.tests.ExampleMappingTests'; nested
exception is java.lang.ClassNotFoundException: net.chrisrichardson.ormunit.hiber
nate.tests.ExampleMappingTests
java.lang.ClassNotFoundException: net.chrisrichardson.ormunit.hibernate.tests.Ex
ampleMappingTests
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat
edClassLoader.java:100)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
Sets(AbstractDirectoryTestSuite.java:84)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:147)
at org.apache.maven.surefire.Surefire.run(Surefire.java:10smilie
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)
[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: 4 seconds
[INFO] Finished at: Mon Dec 11 17:22:16 IST 2006
[INFO] Final Memory: 5M/10M
[INFO] -------------------------------------------------------------------------
---

Any suggestions!

Best regards,
dmag
ceracm (113) [Avatar] Offline
#2
Re: Build error with maven
Sorry for the delay in replying.
Were you able to solve the problem?
Which version of the source code did this problem occur with?

Chris
thscp1122 (4) [Avatar] Offline
#3
Re: Build error with maven
Your website is really cool and this is a great inspiring article.
Open all url