-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Java 17 (works with JDK 8) with org.jvnet.jaxb:jaxb-maven-plugin:2.0.14:generate maven build fails with error: Unable to parse input schema(s). #561
Comments
Hi @ssanket143 : could you share the |
Here is Parent pom.xml of module where build fails... 4.0.0 acsi.gddn.atlas.schema gddn-build 24.08.00.00-RELEASEae
|
I've seen in your stacktrace the following error :
Also I'd suggest you upgrade also the jaxb2-basics dependency to the corresponding version of the plugin. Please look at migration guide. |
Thank you @laurentschoelens for suggestions. plugins=[file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb/jaxb2-basics/2.0.14/jaxb2-basics-2.0.14.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb/jaxb2-basics-runtime/2.0.14/jaxb2-basics-runtime-2.0.14.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/2.0.12/jaxb2-basics-runtime-2.0.12.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb/jaxb2-basics-tools/2.0.14/jaxb2-basics-tools-2.0.14.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/slf4j/slf4j-api/1.7.24/slf4j-api-1.7.24.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/slf4j/jcl-over-slf4j/1.7.36/jcl-over-slf4j-1.7.36.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/github/javaparser/javaparser-core/3.25.9/javaparser-core-3.25.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb/jaxb-basics-annotate/2.0.14/jaxb-basics-annotate-2.0.14.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb/jaxb-annox/2.0.14/jaxb-annox-2.0.14.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/util/jaxb.dpool.plugin/24.08.00.00-RELEASE/jaxb.dpool.plugin-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.15.3/maven-jaxb2-plugin-0.15.3.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.15.3/maven-jaxb2-plugin-core-0.15.3.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/glassfish/jaxb/txw2/2.3.7/txw2-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/junit/junit/4.8.2/junit-4.8.2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metadata-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.7.1/maven-plugin-annotations-3.7.1.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/jvnet/jaxb2/maven2/maven-jaxb23-plugin/0.15.3/maven-jaxb23-plugin-0.15.3.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.3/jakarta.xml.bind-api-2.3.3.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/jakarta/activation/jakarta.activation-api/1.2.2/jakarta.activation-api-1.2.2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/glassfish/jaxb/jaxb-runtime/2.3.7/jaxb-runtime-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/istack/istack-commons-runtime/3.0.12/istack-commons-runtime-3.0.12.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/activation/jakarta.activation/1.2.2/jakarta.activation-1.2.2.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/glassfish/jaxb/jaxb-xjc/2.3.7/jaxb-xjc-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/glassfish/jaxb/xsom/2.3.7/xsom-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/xml/bind/external/relaxng-datatype/2.3.7/relaxng-datatype-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/glassfish/jaxb/codemodel/2.3.7/codemodel-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/xml/bind/external/rngom/2.3.7/rngom-2.3.7.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/xml/dtd-parser/dtd-parser/1.4.5/dtd-parser-1.4.5.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/istack/istack-commons-tools/3.0.12/istack-commons-tools-3.0.12.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/osgi/exceptions/24.08.00.00-RELEASE/exceptions-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/osgi/util/jaxb.dpool.anno/24.08.00.00-RELEASE/jaxb.dpool.anno-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/javax/xml/bind/jaxb-api/2.3.0/jaxb-api-2.3.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/osgi/util/jaxb.dpool.spec/24.08.00.00-RELEASE/jaxb.dpool.spec-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/GIT/GDDN/atlas-schema/acsi.gddn.atlas.schema/CommonServices-v00/target/acsi.gddn.atlas.schema.CommonServices-v00-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/org/osgi/org.osgi.core/4.3.1/org.osgi.core-4.3.1.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/osgi/util/common.utils/24.08.00.00-RELEASE/common.utils-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/xml/bind/jaxb-core/2.3.0/jaxb-core-2.3.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/xml/bind/jaxb-impl/2.3.0/jaxb-impl-2.3.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/acsi/gddn/osgi/util/jaxb.dpool/24.08.00.00-RELEASE/jaxb.dpool-24.08.00.00-RELEASE.jar, file:/C:/Users/sc949r/.m2/gddnatlas/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar] [INFO] The [forceRegenerate] switch is turned on, XJC will be executed. |
Could you share MRE (minimal reproductible example) so I can analyse this deeper ? |
Moreover, I've seen some strange things, did you still have some
|
I dont have org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.15.3 anymore but will again clean build the project and prepare an MRE for your reference to share. |
Maybe as dependency of some other dependency. |
Hi @laurentschoelens I'm still trying to figure out way to share MRE but meanwhile going through migration guide i came across below page at the end about issue with import in schema.. Here is my xsd which is failing to parse schema and the error..
[WARNING] Error while parsing schema(s).Location [ maven:acsi.gddn.atlas.schema:CommonServices-v00:jar::!/Schemas/v00/Atlas/Legacy/AE/Base/ResponseStatus.xsd{13,151}]. If you can suggest which plugin and version i should try for Java 17 ? |
@ssanket143 could you tell me this ? |
Hi @laurentschoelens yes that jaxb.dpool.plugin is internal dependency added as new module. |
Hi @ssanket143 Thanks for the MRE in the two repository. <properties>
<jaxb2.plugin.version>0.9.0</jaxb2.plugin.version>
<maven.shade.plugin.version>2.4.3</maven.shade.plugin.version>
</properties>
<dependencies>
<!-- lib dependencies -->
<dependency>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>${jaxb2.plugin.version}</version>
</dependency> Your plugin is depending on older You should remove this dependency and replace it with the good one(s) (I guess jaxb-xjc is a good first step) <dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.3.9</version>
</dependency> You should also consider moving to latest 2.3.x |
See commit https://github.com/ssanket143/gddn/commit/17d1c8de8b1ca5008526d6a26beb67ce9674efb4 for minimal adjustments I've spotted. |
Thank you @laurentschoelens for your feedback and changes, we have parent pom.xml in both repo. Just we need to run maven build on \gddn\acsi.gddn for 1st repo and \atlas-schema\acsi.gddn.atlas.schema for 2nd repo. I did try to compile but still same error. |
I'm getting following error :
|
It's used in the |
I've made some adjustments but even with downgrading to jdk8 and using 0.15.3, still having same issue. |
Ok @laurentschoelens , will share working MRE with JDK8 which uses 0.9.0 version of plugin. |
Many thanks. Waiting for this 😀 |
I have added two new repo which works with JDK 8 and plugin 0.9.0 version to parse and compile schema with import statements in xsd. Also lookout for difference in NetHelper and UuidHelper classes under common.utils for JDK8 and JDK17 repo, if that makes any difference here for issue we are trying to resolve |
Could you grant me access please ? 😄 |
Build is OK for gddn_8 and atlas-schema_8 with JDK8, I can try look what's going wrong 👍 |
What I can tell is, 0.9.0 is OK with JDK8, as well as 0.9.1, but moving to 0.10.0 breaks build with JDK8. |
I went through that earlier but couldn't follow much as i'm not able to open https://java.net/jira/browse/ . |
You can look at the issues in github (they are migrated) : example like It's too deep in jaxb-ri and plugin for me to understand why it failed with 0.10.0 modifications and it might need updates in both jaxb-ri and maven-plugin to make it works again if feasible 😞 |
I've managed to do some adjustments to make it work again but that need new jaxb-ri release and I don't feel OK with the modifications in it. My best bet in order for you to go forward would be to add an extra : <plugin>
<!-- add XSD from schemas into the temp directory -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>initialize</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>acsi.gddn.atlas.schema</groupId>
<artifactId>CommonServices-v${commonservices.legacy.schema.version}</artifactId>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin> And then run the |
Thank you @laurentschoelens for this awesome workaround, i have tried it in MRE and believe it will work with my actual implementation as well. |
Glad to hear it worked for you too Maybe it will work one day "out of the box" but for the moment, maven dependency resource with relative imports will certainly fail from what I've seen in xjc code |
[INFO] The [forceRegenerate] switch is turned on, XJC will be executed.
[INFO] Parsing input schema(s)...
[ERROR] Error while parsing schema(s).Location [].
org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'http://csi.cingular.com/Schemas/v00/xyz/Legacy/AE/Base/ResponseStatus.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:306)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4258)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4241)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2532)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2354)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:576)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:618)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:577)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:543)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:281)
at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:81)
at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:301)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:121)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:76)
at org.jvnet.jaxb.maven.XJC2Mojo.loadModel(XJC2Mojo.java:58)
at org.jvnet.jaxb.maven.XJC2Mojo.doExecute(XJC2Mojo.java:48)
at org.jvnet.jaxb.maven.XJC2Mojo.doExecute(XJC2Mojo.java:28)
at org.jvnet.jaxb.maven.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:491)
at org.jvnet.jaxb.maven.RawXJC2Mojo.execute(RawXJC2Mojo.java:330)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:904)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:281)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:204)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
Caused by: java.net.UnknownHostException: csi.cingular.com
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:572)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/java.net.Socket.connect(Socket.java:583)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:534)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:639)
at java.base/sun.net.www.http.HttpClient.(HttpClient.java:282)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:387)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:409)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1308)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1056)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1686)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1610)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2326)
... 41 more
org.xml.sax.SAXParseException; systemId: maven:acsi.abc.xyz.schema:CommonServices-v00:jar::!/Schemas/v00/AtlasxyzLegacy/AE/Base/AccountProfile.xsd; lineNumber: 19; columnNumber: 135; schema_reference.4: Failed to read schema document './LecProfile.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:100)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:392)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4254)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4249)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2543)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2239)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchema(XSDHandler.java:2129)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:1050)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:653)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:618)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:577)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:543)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:281)
at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:81)
at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:301)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:121)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:76)
at org.jvnet.jaxb.maven.XJC2Mojo.loadModel(XJC2Mojo.java:58)
at org.jvnet.jaxb.maven.XJC2Mojo.doExecute(XJC2Mojo.java:48)
at org.jvnet.jaxb.maven.XJC2Mojo.doExecute(XJC2Mojo.java:28)
at org.jvnet.jaxb.maven.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:491)
at org.jvnet.jaxb.maven.RawXJC2Mojo.execute(RawXJC2Mojo.java:330)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:904)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:281)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:204)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
Caused by: java.net.MalformedURLException: unknown protocol: maven
at java.base/java.net.URL.(URL.java:681)
at java.base/java.net.URL.(URL.java:569)
at java.base/java.net.URL.(URL.java:516)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:593)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:696)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530)
at java.xml/com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2227)
... 43 more
The text was updated successfully, but these errors were encountered: