Skip to content
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

Maven clean package fails with "URI is not absolute" error in mqjmsra-ra #1523

Closed
michaelJustin opened this issue Jul 16, 2022 · 3 comments
Closed
Milestone

Comments

@michaelJustin
Copy link
Contributor

Environment:
Maven 3.8.6, JDK 11.0.11, WIndows 10

Reproduction steps:

  1. in the project main folder, run mvn clean package
[INFO] --- xml-maven-plugin:1.0.2:validate (default) @ mqjmsra-ra ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for MQ Parent Project 6.4.0-SNAPSHOT:
[INFO]
[INFO] MQ Parent Project .................................. SUCCESS [  0.438 s]
[INFO] mq-docs ............................................ SUCCESS [  0.009 s]
[INFO] Open Message Queue Developer's Guide for JMX Clients SUCCESS [ 11.944 s]
[INFO] Open Message Queue Administration Guide ............ SUCCESS [  5.204 s]
[INFO] Open Message Queue Developer's Guide for C Clients . SUCCESS [  2.281 s]
[INFO] Open Message Queue Release Notes ................... SUCCESS [  1.173 s]
[INFO] Open Message Queue Developer's Guide for Java Clients SUCCESS [  1.794 s]
[INFO] Open Message Queue Technical Overview .............. SUCCESS [  1.279 s]
[INFO] MQ Main Project .................................... SUCCESS [  0.984 s]
[INFO] MQ Common Util Module .............................. SUCCESS [ 11.164 s]
[INFO] MQ Shared Module ................................... SUCCESS [  1.445 s]
[INFO] MQ Logger Module ................................... SUCCESS [  0.818 s]
[INFO] MQ Common IO Module ................................ SUCCESS [  1.527 s]
[INFO] MQ JMX API Module .................................. SUCCESS [  1.518 s]
[INFO] MQ HTTP Tunnel Modules ............................. SUCCESS [  0.101 s]
[INFO] MQ HTTP Tunnel API Share Module .................... SUCCESS [  0.440 s]
[INFO] MQ HTTP Tunnel API Server Module ................... SUCCESS [  0.422 s]
[INFO] MQ HTTP Tunnel Module .............................. SUCCESS [  1.781 s]
[INFO] MQ Direct Internal API Module ...................... SUCCESS [  1.241 s]
[INFO] MQ Persistence Modules ............................. SUCCESS [  0.100 s]
[INFO] MQ Transaction Logging Module ...................... SUCCESS [  0.516 s]
[INFO] MQ Broker Modules .................................. SUCCESS [  0.097 s]
[INFO] MQ Broker Common Module ............................ SUCCESS [  1.167 s]
[INFO] MQ Port Unification Module ......................... SUCCESS [  0.446 s]
[INFO] MQ Bridge Modules .................................. SUCCESS [  0.089 s]
[INFO] MQ Bridge API Module ............................... SUCCESS [  1.415 s]
[INFO] MQ Broker Core Module .............................. SUCCESS [  8.196 s]
[INFO] MQ JMSRA Modules ................................... SUCCESS [  0.103 s]
[INFO] MQ JMSRA Internal API Module ....................... SUCCESS [  0.439 s]
[INFO] MQ Client Runtime Module ........................... SUCCESS [  3.437 s]
[INFO] MQ UMS Module ...................................... SUCCESS [  1.928 s]
[INFO] MQ Disk IO Module .................................. SUCCESS [  0.580 s]
[INFO] MQ Admin Modules ................................... SUCCESS [  0.092 s]
[INFO] MQ Admin CLI Module ................................ SUCCESS [  3.034 s]
[INFO] MQ JMSRA RA Module ................................. FAILURE [  2.878 s]
[INFO] MQ Bridge JMS Module ............................... SKIPPED
[INFO] MQ Bridge STOMP Module ............................. SKIPPED
[INFO] MQ Bridge Admin Module ............................. SKIPPED
[INFO] MQ Cluster Module .................................. SKIPPED
[INFO] MQ Broker file Persist Module ...................... SKIPPED
[INFO] MQ Broker jdbc Persist Module ...................... SKIPPED
[INFO] MQ Partition Modules ............................... SKIPPED
[INFO] MQ Partition Persist API Module .................... SKIPPED
[INFO] MQ Partition Persist JDBC Module ................... SKIPPED
[INFO] MQ Admin GUI Module ................................ SKIPPED
[INFO] MQ Packager Opensource ............................. SKIPPED
[INFO] OpenMQ ............................................. SKIPPED
[INFO] Message Queue ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:10 min
[INFO] Finished at: 2022-07-16T20:26:23+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0.2:validate (default) on project mqjmsra-ra: Execution default of goal org.codehaus.mojo:xml-maven-plugin:1.0.2:validate failed: URI is not absolute -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :mqjmsra-ra
@pzygielo
Copy link
Contributor

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.

@pzygielo
Copy link
Contributor

This could be fixed here once xml plugin is fixed and released, for example with

@pzygielo
Copy link
Contributor

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

@pzygielo pzygielo added this to the 6.5.0 milestone Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants