Closed michaelJustin closed 1 year ago
I'm getting similar on Windows.
Here are some details from plugin:
Parse catalog: ./xcatalog
Loading catalog: ./xcatalog
Default BASE: file:/D:/a/openmq/openmq/xcatalog
Catalog does not exist: file:/D:/a/openmq/openmq/xcatalog
Parse catalog: D:\a\openmq\openmq\mq\.jakartaee-catalog.xml
Loading catalog: D:\a\openmq\openmq\mq\.jakartaee-catalog.xml
Default BASE: file:D:/a/openmq/openmq/mq/.jakartaee-catalog.xml
system: https://jakarta.ee/xml/ns/jakartaee/connector_2_1.xsd
.schemas/connector_2_1.xsd
SYSTEM: https://jakarta.ee/xml/ns/jakartaee/connector_2_1.xsd
file:D:/a/openmq/openmq/mq/.schemas/connector_2_1.xsd
[DEBUG] Loading schema with public Id null, system Id https://jakarta.ee/xml/ns/jakartaee/connector_2_1.xsd
resolveSystem(https://jakarta.ee/xml/ns/jakartaee/connector_2_1.xsd)
Resolved system: https://jakarta.ee/xml/ns/jakartaee/connector_2_1.xsd
file:D:/a/openmq/openmq/mq/.schemas/connector_2_1.xsd
resolveSystem(jakartaee_10.xsd)
resolvePublic(https://jakarta.ee/xml/ns/jakartaee,jakartaee_10.xsd)
and then
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URL.fromURI (URL.java:721)
at java.net.URI.toURL (URI.java:1139)
at org.codehaus.mojo.xml.Resolver.resolveAsURL (Resolver.java:352)
at org.codehaus.mojo.xml.Resolver.resolve (Resolver.java:417)
at org.codehaus.mojo.xml.Resolver.resolveResource (Resolver.java:260)
at com.sun.org.apache.xerces.internal.util.DOMEntityResolverWrapper.resolveEntity (DOMEntityResolverWrapper.java:118)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity (XMLEntityManager.java:1134)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument (XMLSchemaLoader.java:663)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchemaSource (XSDHandler.java:2156)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees (XSDHandler.java:1134)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema (XSDHandler.java:653)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema (XMLSchemaLoader.java:618)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar (XMLSchemaLoader.java:577)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar (XMLSchemaLoader.java:543)
at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema (XMLSchemaFactory.java:281)
at javax.xml.validation.SchemaFactory.newSchema (SchemaFactory.java:612)
at org.codehaus.mojo.xml.ValidateMojo.getSchema (ValidateMojo.java:123)
at org.codehaus.mojo.xml.ValidateMojo.validate (ValidateMojo.java:272)
at org.codehaus.mojo.xml.ValidateMojo.execute (ValidateMojo.java:318)
For the time being - I can only suggest to explicitly skip plugin: -Dxml.skip
in builds on Windows.
This could be fixed here once xml plugin is fixed and released, for example with
With
plugin used by The Project was updated to 1.1.0
Closing this as above results in
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: C:\Users\runneradmin\.m2\wrapper\dists\apache-maven-3.8.8-bin\67c30f74\apache-maven-3.8.8
Java version: 17.0.7, vendor: Azul Systems, Inc., runtime: C:\hostedtoolcache\windows\Java_Zulu_jdk\17.0.7-7\x64
Default locale: en_US, platform encoding: Cp1252
OS name: "windows server 2022", version: "10.0", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] ...
...
[INFO] MQ Admin Modules ................................... SUCCESS [ 0.078 s]
[INFO] MQ Admin CLI Module ................................ SUCCESS [ 6.504 s]
[INFO] MQ JMSRA RA Module ................................. SUCCESS [ 8.365 s]
[INFO] MQ Bridge JMS Module ............................... SUCCESS [ 4.503 s]
[INFO] MQ Bridge STOMP Module ............................. SUCCESS [ 1.032 s]
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:58 min
[INFO] Finished at: 2023-06-24T08:47:48Z
Environment: Maven 3.8.6, JDK 11.0.11, WIndows 10
Reproduction steps:
mvn clean package