outia24
|
Posted: October 04, 2011 05:04 by outia24
|
I am using Maven2.2.1 and downloaded the source code "openempi-2.0.4-development" from the subversion then I tried to build as follow with no luck :
PS D:\WorkSpaceForJava\openempi-2.0.4-development\openempi> mvn compile
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] OpenEMPI Application
[INFO] OpenEMPI - Core
[INFO] OpenEMPI - OpenPIXPDQ Adapter
[INFO] OpenEMPI - EJB Interface
[INFO] OpenEMPI - Web (Struts 2)
[INFO] OpenEMPI - Web (Server Side)
[INFO] OpenEMPI - Web (Client Side)
[INFO] OpenEMPI - EAR
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenEMPI Application
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenEMPI - Core
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'com.eaio.uuid:uuid:pom:3.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'simmetrics:simmetrics:pom:1.6.2:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'net.sf.ehcache:ehcache:pom:1.4.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.aspectj:aspectjweaver:pom:1.6.0:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.aspectj:aspectjrt:pom:1.6.0:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.lucene:lucene-core:pom:2.2.0:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.hamcrest:hamcrest-library:pom:1.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-jdbc:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-orm:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-aop:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-aspects:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-context-support:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'postgresql:postgresql:pom:8.1-407.jdbc3:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'com.sun.jdmk:jmxtools:pom:1.2.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework:spring-test:pom:2.5.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.springframework.security:spring-security-core-tiger:pom:2.0.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[WARNING] While downloading xmlbeans:xmlbeans:2.2.0
This artifact has been relocated to org.apache.xmlbeans:xmlbeans:2.2.0.
[WARNING] POM for 'org.apache.xmlbeans:xmlbeans:pom:2.2.0:runtime' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] [xmlbeans:xmlbeans {execution: default}]
[FATAL ERROR] org.codehaus.mojo.xmlbeans.CompileXmlBeansMojo#execute() caused a linkage error (java.lang.NoClassDefFound
Error) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:xmlbeans-maven-plugin:2.2.0]
urls[0] = file:/C:/Users/305024278/.m2/repository/org/codehaus/mojo/xmlbeans-maven-plugin/2.2.0/xmlbeans-maven-plugin-2.
2.0.jar
urls[1] = file:/C:/Users/305024278/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
urls[2] = file:/C:/Users/305024278/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.2/plexus-utils-1.4.2.jar
urls[3] = file:/C:/Users/305024278/.m2/repository/org/apache/xmlbeans/xmlbeans/2.2.0/xmlbeans-2.2.0.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/D:/DevTools/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org/apache/xmlbeans/impl/tool/SchemaCompiler$Parameters
org.apache.xmlbeans.impl.tool.SchemaCompiler$Parameters
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/apache/xmlbeans/impl/tool/SchemaCompiler$Parameters
at org.codehaus.mojo.xmlbeans.ParameterAdapter.getCompilerParameters(ParameterAdapter.java:61)
at org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:268)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55
6)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:601)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.impl.tool.SchemaCompiler$Parameters
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 21 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Oct 04 13:27:19 KST 2011
[INFO] Final Memory: 21M/327M
[INFO] ------------------------------------------------------------------------
above error has been occurred in latest source version, "2.1.3-development" . Is there anybody have same error? Thanks in advance |
build error - xmlbeans
Replies: 1 - Last Post: November 28, 2011 20:20
by: Csaba Toth
by: Csaba Toth
showing 1 - 2 of 2
Csaba Toth
|
Posted: November 28, 2011 20:20 by Csaba Toth
|
|
Sorry for the late reply. I haven't ever run into such build error. I compiled OpenEMPI on WIndows and Linux successfully. Right now I'm on Windows and I'm using 2.2.1 Maven too. Please dig into your maven repository. I wonder what is in this pom: com.eaio.uuid:uuid om, or the next one in the error message, the simmetrics. I ran into trouble when some bad jars or poms were downloaded from repositories. Try to issue quesries for the whole maven repository subfolder looking for strange files:- any jar or pom which has some HTML error page in it (so basically the server gave back a 404 page or something similar to maven) - any pom xml which doesn't start with the common xml beginning (this can reveal 404 HTML pages in them) - any jar which is not a zip file Delete all of bogus files you find. Check your network connectivity and try to issues the maven build command again. |
Replies: 1 - Last Post: November 28, 2011 20:20
by: Csaba Toth
by: Csaba Toth


om, or the next one in the error message, the simmetrics. I ran into trouble when some bad jars or poms were downloaded from repositories. Try to issue quesries for the whole maven repository subfolder looking for strange files:




