[ 
https://issues.apache.org/jira/browse/CAMEL-10895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16430883#comment-16430883
 ] 

Pascal Schumacher commented on CAMEL-10895:
-------------------------------------------

Does not really matter, but I actually fixed the build on java 9 in 
https://github.com/apache/camel/commit/6e0f5846f9dae61c4be833fa306f6db1ed625f40 
by setting the javaSource parameter of the xmlbeans-maven-plugin

> xmlbeans-maven-plugin fails on JAVA9
> ------------------------------------
>
>                 Key: CAMEL-10895
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10895
>             Project: Camel
>          Issue Type: Sub-task
>            Reporter: John Poth
>            Assignee: John Poth
>            Priority: Minor
>
> To reproduce go to components/camel-xmlbeans and try to build.
> {code}
> warning: [options] bootstrap class path not set in conjunction with -source 
> 1.4
> error: Source option 1.4 is no longer supported. Use 1.6 or later.
> error: Target option 1.4 is no longer supported. Use 1.6 or later.
> [ERROR] Failed to execute goal 
> org.codehaus.mojo:xmlbeans-maven-plugin:2.3.3:xmlbeans-test 
> (generate-sources) on project camel-xmlbeans: XmlBeans compile failed:
> [ERROR] xml ErrorLoading schema file 
> /home/jpoth/dev/git/apache/camel/components/camel-xmlbeans/src/test/resources/xsd/buyStocks.xsd
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.codehaus.mojo:xmlbeans-maven-plugin:2.3.3:xmlbeans-test 
> (generate-sources) on project camel-xmlbeans: XmlBeans compile failed:
>  xml ErrorLoading schema file 
> /home/jpoth/dev/git/apache/camel/components/camel-xmlbeans/src/test/resources/xsd/buyStocks.xsd
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>       at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:543)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.codehaus.mojo.xmlbeans.XmlBeansException: XmlBeans compile 
> failed:
>  xml ErrorLoading schema file 
> /home/jpoth/dev/git/apache/camel/components/camel-xmlbeans/src/test/resources/xsd/buyStocks.xsd
>       at 
> org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:292)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>       ... 20 more
> [ERROR] 
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to