Hi,

the it/mjaxb-14 succeeds with JDK 7 1.7.0_45, but fails with the JDK 8 Build b132 (EA)
The exception message looks reasonable:
Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. My first guess would be that bindingfile.xsd is wrong, I'm not sure if this plugin can help with that.

Robert


Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: D:\apache-maven-3.1.1\bin\..
Java version: 1.8.0, vendor: Oracle Corporation
Java home: c:\Program Files\Java\jdk1.8.0\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

[main] [DEBUG] JAXB XJC args: [-dtd, -encoding, UTF-8, -p, com.example.myschema, -d, F:\temp\jaxb2-maven-plugin-1.6\target\it\mjaxb-14\target\generated-sources\jaxb, -classpath, F:\temp\jaxb2-maven-plugin-1.6\target\it\mjaxb-14\target\classes;, file:/F:/temp/jaxb2-maven-plugin-1.6/target/it/mjaxb-14/src/main/dtd/library.dtd]
[main] [INFO] parsing a schema...
---------------------------------------------------
constituent[0]: file:/D:/apache-maven-3.1.1/bin/../lib/aether-api-0.9.0.M2.jar constituent[1]: file:/D:/apache-maven-3.1.1/bin/../lib/aether-connector-wagon-0.9.0.M2.jar constituent[2]: file:/D:/apache-maven-3.1.1/bin/../lib/aether-impl-0.9.0.M2.jar constituent[3]: file:/D:/apache-maven-3.1.1/bin/../lib/aether-spi-0.9.0.M2.jar constituent[4]: file:/D:/apache-maven-3.1.1/bin/../lib/aether-util-0.9.0.M2.jar
constituent[5]: file:/D:/apache-maven-3.1.1/bin/../lib/aopalliance-1.0.jar
constituent[6]: file:/D:/apache-maven-3.1.1/bin/../lib/cdi-api-1.0.jar
constituent[7]: file:/D:/apache-maven-3.1.1/bin/../lib/commons-cli-1.2.jar
constituent[8]: file:/D:/apache-maven-3.1.1/bin/../lib/guava-11.0.2.jar
constituent[9]: file:/D:/apache-maven-3.1.1/bin/../lib/javax.inject-1.jar
constituent[10]: file:/D:/apache-maven-3.1.1/bin/../lib/jsr250-api-1.0.jar
constituent[11]: file:/D:/apache-maven-3.1.1/bin/../lib/jsr305-1.3.9.jar
constituent[12]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-aether-provider-3.1.1.jar constituent[13]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-artifact-3.1.1.jar constituent[14]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-compat-3.1.1.jar constituent[15]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-core-3.1.1.jar constituent[16]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-embedder-3.1.1.jar constituent[17]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-model-3.1.1.jar constituent[18]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-model-builder-3.1.1.jar constituent[19]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-plugin-api-3.1.1.jar constituent[20]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-repository-metadata-3.1.1.jar constituent[21]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-settings-3.1.1.jar constituent[22]: file:/D:/apache-maven-3.1.1/bin/../lib/maven-settings-builder-3.1.1.jar constituent[23]: file:/D:/apache-maven-3.1.1/bin/../lib/org.eclipse.sisu.inject-0.0.0.M5.jar constituent[24]: file:/D:/apache-maven-3.1.1/bin/../lib/org.eclipse.sisu.plexus-0.0.0.M5.jar constituent[25]: file:/D:/apache-maven-3.1.1/bin/../lib/plexus-cipher-1.7.jar constituent[26]: file:/D:/apache-maven-3.1.1/bin/../lib/plexus-component-annotations-1.5.5.jar constituent[27]: file:/D:/apache-maven-3.1.1/bin/../lib/plexus-interpolation-1.19.jar constituent[28]: file:/D:/apache-maven-3.1.1/bin/../lib/plexus-sec-dispatcher-1.3.jar constituent[29]: file:/D:/apache-maven-3.1.1/bin/../lib/plexus-utils-3.0.15.jar constituent[30]: file:/D:/apache-maven-3.1.1/bin/../lib/sisu-guice-3.1.3-no_aop.jar
constituent[31]: file:/D:/apache-maven-3.1.1/bin/../lib/slf4j-api-1.7.5.jar
constituent[32]: file:/D:/apache-maven-3.1.1/bin/../lib/slf4j-simple-1.7.5.jar
constituent[33]: file:/D:/apache-maven-3.1.1/bin/../lib/wagon-file-2.4.jar
constituent[34]: file:/D:/apache-maven-3.1.1/bin/../lib/wagon-http-2.4-shaded.jar constituent[35]: file:/D:/apache-maven-3.1.1/bin/../lib/wagon-provider-api-2.4.jar
constituent[36]: file:/D:/apache-maven-3.1.1/bin/../conf/logging/
---------------------------------------------------
Exception in thread "main" java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/F:/temp/jaxb2-maven-plugin-1.6/target/local-repo/com/sun/xml/bind/jaxb-xjc/2.2.7/jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/dtd/bindinfo/bindingfile.xsd; lineNumber: 55; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
        at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:80)
        at 
com.sun.tools.xjc.reader.dtd.bindinfo.BindInfo.parse(BindInfo.java:315)
        at 
com.sun.tools.xjc.reader.dtd.bindinfo.BindInfo.<init>(BindInfo.java:96)
        at com.sun.tools.xjc.reader.dtd.TDTDReader.<init>(TDTDReader.java:160)
        at com.sun.tools.xjc.reader.dtd.TDTDReader.parse(TDTDReader.java:125)
        at com.sun.tools.xjc.ModelLoader.loadDTD(ModelLoader.java:298)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:156)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:119)
        at com.sun.tools.xjc.Driver.run(Driver.java:333)
at org.codehaus.mojo.jaxb2.AbstractXjcMojo.execute(AbstractXjcMojo.java:316) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
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.xml.sax.SAXParseException; systemId: jar:file:/F:/temp/jaxb2-maven-plugin-1.6/target/local-repo/com/sun/xml/bind/jaxb-xjc/2.2.7/jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/dtd/bindinfo/bindingfile.xsd; lineNumber: 55; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4162) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaFatalError(XSDHandler.java:4141) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2168) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchema(XSDHandler.java:2078) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:1008) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:620) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:616) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:574) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:540) at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:255)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:638)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:670)
        at com.sun.tools.xjc.SchemaCache.newValidator(SchemaCache.java:77)
        ... 30 more




Op Sat, 08 Mar 2014 16:50:54 +0100 schreef Anders Hammar <and...@hammar.net>:

Hi,

I'd like to release version 1.6 of Mojo's JAXB-2 Maven Plugin.

We solved 11 issues:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11699&version=18747

There are still a couple of issues left in JIRA:
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+MJAXB+AND+status+%3D+Open+ORDER+BY+priority+DESC&mode=hide

Staging Repositories:
General:  https://nexus.codehaus.org/content/groups/staging/
Exclusive:
https://nexus.codehaus.org/content/repositories/orgcodehausmojo-1069/

(Staging) Site:
http://mojo.codehaus.org/jaxb2-maven-plugin/

SCM Tag:
http://svn.codehaus.org/mojo/tags/jaxb2-maven-plugin-1.6/

[ ] +1
[ ] +0
[ ] -1

The vote is open for 72 hours and will succeed by lazy consensus.

/Anders

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to