I am trying to build an xmlbeans jar and I have the following working fine
on windows but not on solaris now:

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>xmlbeans-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <goals>
                                <goal>xmlbeans</goal>
                            </goals>
                        </execution>
                    </executions>
                    <inherited>true</inherited>
                    <configuration>

<schemaDirectory>${basedir}/src/main/xsd</schemaDirectory>

                        <memoryInitialSize>256m</memoryInitialSize>
                        <memoryMaximumSize>1024m</memoryMaximumSize>

                    </configuration>
                </plugin>

...
            <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                <type>jar</type>
                <scope>compile</scope>
            </dependency>


*Here is the error I get:
*
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar
2604K downloaded
[DEBUG]   Artifact resolved
[DEBUG] 
org.codehaus.mojo:xmlbeans-maven-plugin:maven-plugin:2.3.1:runtime(selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)
[DEBUG] Configuring mojo '
org.codehaus.mojo:xmlbeans-maven-plugin:2.3.1:xmlbeans' -->
[DEBUG]   (f) artifactMap = {
org.apache.maven.skins:maven-default-skin=org.apache.maven.skins:maven-default-skin:jar:1.0:compile,
log4j:log4j=log4j:log4j:jar:1.2.14:compile, ava
-framework:avalon-framework=avalon-framework:avalon-framework:jar:
4.1.3:compile, stax:stax-api=stax:stax-api:jar:1.0.1:compile,
javax.servlet:servlet-api=javax.servlet:servlet-a
jar:2.4:provided, logkit:logkit=logkit:logkit:jar:1.0.1:compile,
xerces:xercesImpl=xerces:xercesImpl:jar:2.4.0:provided,
commons-logging:commons-logging=commons-logging:commons-
ging:jar:1.1:compile,
org.apache.xmlbeans:xmlbeans=org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile,
commons-collections:commons-collections=commons-collections:commons-collection
ar:3.2:compile, commons-lang:commons-lang=commons-lang:commons-lang:jar:
2.3:compile}
[DEBUG]   (f) catalogLocation =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/src/main/catalog/resolver-
catalog.xml
[DEBUG]   (f) classGenerationDirectory =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/target/generated-classes/xmlbeans
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultXmlConfigDir =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/src/main/xsdconfig
[DEBUG]   (f) download = false
[DEBUG]   (f) generatedSchemaDirectory =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/target/xmlbeans-xsds
[DEBUG]   (f) jaxb = false
[DEBUG]   (s) localRepository = [local] ->
file:///home/dapadmin/.m2/repository
[DEBUG]   (f) memoryInitialSize = 256m
[DEBUG]   (f) memoryMaximumSize = 1024m
[DEBUG]   (f) noAnn = false
[DEBUG]   (f) noJavac = false
[DEBUG]   (f) noPvr = false
[DEBUG]   (f) noUpa = false
[DEBUG]   (f) noVDoc = false
[DEBUG]   (s) pluginArtifacts = [
org.codehaus.plexus:plexus-utils:jar:1.1:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) quiet = true
[DEBUG]   (f) schemaDirectory =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/src/main/xsd
[DEBUG]   (f) sourceGenerationDirectory =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/target/generated-sources/xmlbeans
[DEBUG]   (f) staleFile =
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/target/generated-sources/xmlbeans/.staleFlag
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [xmlbeans:xmlbeans {execution: default}]
[DEBUG] The schema Directory is
/opt/viewstore/esp_lynx_dap/esp/dap/utilities/common/837-bindings/src/main/xsd
[DEBUG] Artifact count: 11
[DEBUG] looking for artifact schemas.
[DEBUG] Adding 837DeltaDental.xsd
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/apache/xmlbeans/impl/tool/SchemaCompiler$Parameters
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NoClassDefFoundError:
org/apache/xmlbeans/impl/tool/SchemaCompiler$Parameters
        at org.codehaus.mojo.xmlbeans.ParameterAdapter.getCompilerParameters
(ParameterAdapter.java:57)
        at org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(
AbstractXmlBeansPlugin.java:287)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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:585)
        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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Fri Nov 16 12:45:46 PST 2007
[INFO] Final Memory: 10M/68M
[INFO]
------------------------------------------------------------------------




-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Reply via email to