maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Torben Heuer <jtn...@mail2003.dnsalias.org>
Subject maven-xmlbeans-plugin: java.lang.ArrayIndexOutOfBoundsException: 3
Date Tue, 29 Jan 2008 15:02:11 GMT
Hi,

I added the sourceSchema directive to my pom (see earlier posts...). Since
then, xmlbeans doesn't compile.

Here are the pom.xml configs:

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

and inherited is from the parent relevant:

                          <groupId>org.codehaus.mojo</groupId>
                          <artifactId>xmlbeans-maven-plugin</artifactId>
                          <executions>
                                  <execution>
                                          <goals>
                                                  <goal>xmlbeans</goal>
                                          </goals>
                                  </execution>
                          </executions>
                          <inherited>true</inherited>
                          <configuration>
                                <schemaDirectory>
                                          ${schema.directory}/${project.artifactId}/${project.version}
                                </schemaDirectory>
                                <noPvr>true</noPvr>
                                <outputJar>${build.finalName}</outputJar>
                          </configuration>

Below the mvn -x -e xmlbeans:xmlbeans output.

Jan
------------

[DEBUG] Configuring
mojo 'org.codehaus.mojo:xmlbeans-maven-plugin:2.3.0:xmlbeans' -->
[DEBUG]   (f) artifactMap = {stax:stax-api=stax:stax-api:jar:1.0.1:compile,
org.apache.xmlbeans:xmlbeans=org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile}
[DEBUG]   (f) catalogLocation
= /home/u/data/svn/xmlbeans/ows/src/main/catalog/resolver-catalog.xml
[DEBUG]   (f) classGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-classes/xmlbeans
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultXmlConfigDir
= /home/u/data/svn/xmlbeans/ows/src/main/xsdconfig
[DEBUG]   (f) download = false
[DEBUG]   (f) generatedSchemaDirectory
= /home/u/data/svn/xmlbeans/ows/target/xmlbeans-xsds
[DEBUG]   (f) jaxb = false
[DEBUG]   (s) localRepository = [local] -> file:///home/u/.m2/repository
[DEBUG]   (f) noJavac = false
[DEBUG]   (f) noPvr = true
[DEBUG]   (f) noUpa = false
[DEBUG]   (f) outputJar = /home/u/data/svn/xmlbeans/ows/xbeans-null-1.1.0
[DEBUG]   (s) pluginArtifacts = [xml-resolver:xml-resolver:jar:1.2:runtime,
stax:stax-api:jar:1.0.1:runtime, xmlbeans:xmlbeans:jar:2.3.0:runtime,
org.codehaus.plexus:plexus-utils:jar:1.4.2:runtime,
org.apache.maven:maven-project:jar:2.0.6:runtime,
org.apache.maven:maven-artifact:jar:2.0.6:runtime,
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime,
org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime,
org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime,
org.apache.maven:maven-model:jar:2.0.6:runtime,
org.apache.maven:maven-profile:jar:2.0.6:runtime]
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@fa226447
[DEBUG]   (f) quiet = true
[DEBUG]   (f) schemaDirectory = /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG]   (f) sourceGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans
[DEBUG]   (f) sourceSchemas = [owsALL.xsd]
[DEBUG]   (f) staleFile
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans/.staleFlag
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [xmlbeans:xmlbeans]
[DEBUG] The schema Directory is /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG] Artifact count: 2
[DEBUG] looking for artifact schemas.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 3
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.ArrayIndexOutOfBoundsException: 3
        at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.getXsdFiles(AbstractXmlBeansPlugin.java:687)
        at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.hasSchemas(AbstractXmlBeansPlugin.java:312)
        at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:266)
        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.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        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:272)
        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)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message