[ 
https://jira.codehaus.org/browse/JIBX-445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan De Moerloose reopened JIBX-445:
-----------------------------------


It looks like the eclipse dependencies are still needed by jibx-tools:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Geomajas SLD API
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting 
C:\geosparc\geomajas\trunk\majas\project\geomajas-project-sld\api\target
Downloading: 
http://oss.sonatype.org/content/repositories/snapshots//org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
[INFO] Unable to find resource 'org.eclipse.core:resources:pom:3.5.0' in 
repository sonatype-snapshots 
(http://oss.sonatype.org/content/repositories/snapshots/)
Downloading: 
http://maven.geomajas.org//org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
0b downloaded  (resources-3.5.0.pom)
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
Downloading: 
http://maven.geomajas.org//org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
0b downloaded  (resources-3.5.0.pom)
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] Unable to find resource 'org.eclipse.core:resources:pom:3.5.0' in 
repository Geomajas (http://maven.geomajas.org/)
Downloading: 
http://oss.sonatype.org/content/groups/staging/org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
[INFO] Unable to find resource 'org.eclipse.core:resources:pom:3.5.0' in 
repository oss-staging (http://oss.sonatype.org/content/groups/staging)
Downloading: 
http://maven.geomajas.org//org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
0b downloaded  (resources-3.5.0.pom)
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
Downloading: 
http://maven.geomajas.org//org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
0b downloaded  (resources-3.5.0.pom)
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] Unable to find resource 'org.eclipse.core:resources:pom:3.5.0' in 
repository Geomajas (http://maven.geomajas.org/)
Downloading: 
http://repo1.maven.org/maven2/org/eclipse/core/resources/3.5.0/resources-3.5.0.pom
[INFO] Unable to find resource 'org.eclipse.core:resources:pom:3.5.0' in 
repository central (http://repo1.maven.org/maven2)
[WARNING] POM for 'org.eclipse:text:pom:3.5.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] DEPRECATED [directory]: - Since binding and codegen use this for 
different directories,
use schemaLocation.
Defaults to "src/main/config" (or "src/test/config" for test cases).
[WARNING] DEPRECATED [includes]: - This name was confusing since it is used as 
a binding file pattern
for bind and a schema file pattern for code-gen.<br/>
Use includeSchemaBindings for binding and includeSchemas for schema.<br/>
<b>Note: </b>Uses the standard filter format described in the plexus
<a 
href="http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/DirectoryScanner.html";>DirectoryScanner</a>.<br/>
<b>Defaults value is:</b> binding.xml.
[INFO] [jibx:schema-codegen {execution: generate}]
[INFO] Generating Java sources in target/generated-sources from schemas 
available in src/main/jibx...
[FATAL ERROR] org.jibx.maven.SchemaCodeGenMojo#execute() caused a linkage error 
(java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = 
app0.child-container[org.jibx:maven-jibx-plugin:1.2.4-SNAPSHOT]
urls[0] = 
file:/c:/repository/org/jibx/maven-jibx-plugin/1.2.4-SNAPSHOT/maven-jibx-plugin-1.2.4-SNAPSHOT.jar
urls[1] = 
file:/c:/repository/org/jibx/jibx-schema/1.2.4-SNAPSHOT/jibx-schema-1.2.4-SNAPSHOT.jar
urls[2] = 
file:/c:/repository/org/jibx/jibx-bind/1.2.4-SNAPSHOT/jibx-bind-1.2.4-SNAPSHOT.jar
urls[3] = 
file:/c:/repository/org/jibx/jibx-run/1.2.4-SNAPSHOT/jibx-run-1.2.4-SNAPSHOT.jar
urls[4] = file:/c:/repository/joda-time/joda-time/1.6.2/joda-time-1.6.2.jar
urls[5] = file:/c:/repository/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar
urls[6] = file:/c:/repository/bcel/bcel/5.1/bcel-5.1.jar
urls[7] = file:/c:/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar
urls[8] = file:/c:/repository/javax/mail/mail/1.4/mail-1.4.jar
urls[9] = file:/c:/repository/javax/activation/activation/1.1/activation-1.1.jar
urls[10] = file:/c:/repository/com/thoughtworks/qdox/qdox/1.6.2/qdox-1.6.2.jar
urls[11] = file:/c:/repository/ant/ant/1.5.1/ant-1.5.1.jar
urls[12] = file:/c:/repository/junit/junit/4.8.2/junit-4.8.2.jar
urls[13] = file:/c:/repository/jmock/jmock/1.0.0/jmock-1.0.0.jar
urls[14] = 
file:/c:/repository/org/jibx/jibx-extras/1.2.4-SNAPSHOT/jibx-extras-1.2.4-SNAPSHOT.jar
urls[15] = file:/c:/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[16] = file:/c:/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
urls[17] = file:/c:/repository/org/jdom/jdom/1.1/jdom-1.1.jar
urls[18] = 
file:/c:/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
urls[19] = 
file:/c:/repository/org/jibx/jibx-tools/1.2.4-SNAPSHOT/jibx-tools-1.2.4-SNAPSHOT.jar
urls[20] = 
file:/c:/repository/org/eclipse/jdt/core/3.3.0-v_771/core-3.3.0-v_771.jar
urls[21] = 
file:/c:/repository/org/eclipse/core/resources/3.5.0/resources-3.5.0.jar
urls[22] = file:/c:/repository/org/eclipse/core/runtime/3.5.0/runtime-3.5.0.jar
urls[23] = 
file:/c:/repository/org/eclipse/core/filesystem/1.1.0-v20070606/filesystem-1.1.0-v20070606.jar
urls[24] = 
file:/c:/repository/org/eclipse/equinox/registry/3.4.100/registry-3.4.100.jar
urls[25] = file:/c:/repository/org/eclipse/osgi/3.5.0/osgi-3.5.0.jar
urls[26] = file:/c:/repository/org/eclipse/text/3.5.0/text-3.5.0.jar
urls[27] = 
file:/c:/repository/org/eclipse/equinox/common/3.3.0-v20070426/common-3.3.0-v20070426.jar
urls[28] = file:/c:/repository/commons-io/commons-io/1.1/commons-io-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/Program Files/maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org/eclipse/core/runtime/Plugin
org.eclipse.core.runtime.Plugin
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at 
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
        at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
        at 
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at 
org.eclipse.jdt.core.dom.ASTParser.initializeDefaults(ASTParser.java:230)
        at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:213)
        at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java:113)
        at 
org.jibx.schema.codegen.extend.SerializableDecorator.<init>(SerializableDecorator.java:40)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at 
org.jibx.schema.codegen.custom.SchemaRootBase$ClassDecoratorUnmarshaller.createInstance(SchemaRootBase.java:975)
        at 
org.jibx.schema.codegen.custom.SchemaRootBase$ExtensionUnmarshaller.unmarshal(SchemaRootBase.java:832)
        at 
org.jibx.schema.codegen.custom.SchemaRootBase.JiBX_xsdcodegen_customs_binding_unmarshal_3_0(SchemaRootBase.java)
        at 
org.jibx.schema.codegen.custom.SchemasetCustom.JiBX_xsdcodegen_customs_binding_unmarshal_4_0(SchemasetCustom.java)
        at 
org.jibx.schema.codegen.custom.JiBX_xsdcodegen_customs_bindingSchemasetCustom_access.unmarshal()
        at 
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757)
        at 
org.jibx.schema.codegen.custom.SchemasetCustom.loadCustomizations(SchemasetCustom.java:291)
        at 
org.jibx.schema.codegen.CodeGenCommandLine.loadCustomizations(CodeGenCommandLine.java:279)
        at 
org.jibx.custom.CustomizationCommandLineBase.processArgs(CustomizationCommandLineBase.java:183)
        at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:2177)
        at 
org.jibx.maven.AbstractCodeGenMojo.execute(AbstractCodeGenMojo.java:271)
        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:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: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:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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.eclipse.core.runtime.Plugin
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        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:248)
        ... 54 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Oct 25 10:56:47 CEST 2011
[INFO] Final Memory: 25M/495M
[INFO] ------------------------------------------------------------------------

> Missing eclipse dependencies when running schema-codegen goal with custom 
> classes
> ---------------------------------------------------------------------------------
>
>                 Key: JIBX-445
>                 URL: https://jira.codehaus.org/browse/JIBX-445
>             Project: JiBX
>          Issue Type: Bug
>          Components: maven plugin
>    Affects Versions: JiBX 1.2.3
>            Reporter: Jan De Moerloose
>            Assignee: Don Corley
>
> When trying to run schema-codegen with a custom NameConverter, maven misses 
> an eclipse dependency:
> 1) org.eclipse.core:runtime:jar:3.5.0
> I was able to make it run by adding the following dependencies manually:
> <dependency>
>       <groupId>org.eclipse.equinox</groupId>
>       <artifactId>preferences</artifactId>
>       <version>3.6.0</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.equinox.preferences_3.3.0.v20100503.jar</systemPath>
> </dependency>
> <dependency>
>       <groupId>org.eclipse.equinox</groupId>
>       <artifactId>common</artifactId>
>       <version>3.6.0</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar</systemPath>
> </dependency>
> <dependency>
>       <groupId>org.eclipse.core</groupId>
>       <artifactId>contenttype</artifactId>
>       <version>3.4.1</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar</systemPath>
> </dependency>
> <dependency>
>       <groupId>org.eclipse.core</groupId>
>       <artifactId>jobs</artifactId>
>       <version>3.5.1</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar</systemPath>
> </dependency>
> <dependency>
>       <groupId>org.eclipse.core</groupId>
>       <artifactId>resources</artifactId>
>       <version>3.6.0</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.core.resources_3.6.0.R36x_v20100825-0600.jar</systemPath>
> </dependency>
> <dependency>
>       <groupId>org.eclipse.core</groupId>
>       <artifactId>runtime</artifactId>
>       <version>3.6.0</version>
>       <scope>system</scope>
>       
> <systemPath>${eclipse.home}/plugins/org.eclipse.core.runtime_3.6.0.v20100505.jar</systemPath>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to