That's a pretty weird error ... it looks more like Maven isn't
installed correctly. Are you able to build any other projects using
maven?
If you re-install maven and delete (or move aside) your ~/.m2/
directory, do you still get the error?
On Mar 28, 2007, at 12:24 AM, Xibin Zeng wrote:
Hi -
I just downloaded the source through svn and failed at building
openjpa. It
failed at a NoClassDefFoundError for SurefireBooter. What did I miss?
This is the output:
$ mvn package -Dtest=false
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] OpenJPA
[INFO] OpenJPA Utilities
[INFO] OpenJPA Kernel
[INFO] OpenJPA JDBC
[INFO] OpenJPA XML Store
[INFO] OpenJPA Kernel 1.5
[INFO] OpenJPA JDBC 1.5
[INFO] OpenJPA JPA
[INFO] OpenJPA JPA JDBC
[INFO] OpenJPA Aggregate Jar
[INFO] OpenJPA Persistence Examples
[INFO] OpenJPA Distribution
[INFO] OpenJPA Integration Tests
[INFO] OpenJPA Examples Integration Tests
[INFO] OpenJPA JPA TCK Integration Tests
[INFO]
----------------------------------------------------------------------
---
[INFO] Building OpenJPA
[INFO] task-segment: [package]
[INFO]
----------------------------------------------------------------------
---
[INFO] [site:attach-descriptor]
[INFO]
----------------------------------------------------------------------
---
[INFO] Building OpenJPA Utilities
[INFO] task-segment: [package]
[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] [antrun:run {execution: set subversion revision}]
[INFO] Executing tasks
[echo] Revision: 406193:523071
[INFO] Executed tasks
[INFO] [antrun:run {execution: delete sun.misc.Perf}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
c:\Development\openjpa\openjpa-lib\target\sure
orts
[INFO] Building jar: c:\DOCUME~1\xibin\LOCALS~1\Temp
\surefirebooter17408.jar
java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/SurefireBooter
Exception in thread "main"
[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: 6 seconds
[INFO] Finished at: Wed Mar 28 00:09:14 PDT 2007
[INFO] Final Memory: 8M/15M
[INFO]
----------------------------------------------------------------------
--
Thanks
- Xibin