Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Incorrect resolution of sources with two executions #16

Closed
szarza opened this issue Sep 7, 2023 · 5 comments
Closed

Incorrect resolution of sources with two executions #16

szarza opened this issue Sep 7, 2023 · 5 comments

Comments

@szarza
Copy link

szarza commented Sep 7, 2023

Environment:

  • Quarkus 3
  • Open JDK 17
  • Linux Fedora 38

Problem Description:

Having two executions, it seems plugin performs an incorrect resolution of directories an sources, because in the second execution (calypso) resolves the schemaDirectory of the first one (sercom).

Attached an extract of the pom.xml file (pom.extract.txt) and a build log file (build.log)

Please notice that the schemaDirectory resolved in the second executions is wrong.

[INFO] Invoking jaxb30:0.16.0:generate (calypso) @ hermes.client [INFO] Started execution. [INFO] Using new MavenCatalogResolver [INFO] EntityResolver using catalogResolver null [INFO] EntityResolver set to [org.jvnet.jaxb2.maven2.resolver.tools.ReResolvingEntityResolverWrapper - entityResolver=[org.jvnet.jaxb2.maven2.resolver.tools.MavenCatalogResolver - dependencyResourceResolver=org.jvnet.mjiip.v_3_0.XJC30Mojo@39c5a105; catalogManager=org.apache.xml.resolver.CatalogManager@492fa72a; log=org.apache.maven.monitor.logging.DefaultLog@513fab1e]]
[INFO] schemaDirectory = /home/szarza/proyectos/cestel/hermes/client/src/main/bindings/sercom
[INFO] schemaIncludes = [*.xsd] [INFO] schemaExcludes = null [INFO] disableDefaultExcludes = false [INFO] BuildContext= org.sonatype.plexus.build.incremental.DefaultBuildContext@307af381 [INFO] Created scanner from buildContext: org.codehaus.plexus.util.DirectoryScanner@53d87b2d [INFO] Scanner included files: [configapp.restapi.xsd] [INFO] The resulting List is therefore: [/home/szarza/proyectos/cestel/hermes/client/src/main/bindings/sercom/configapp.restapi.xsd] [INFO] schemaFiles (calced) = [/home/szarza/proyectos/cestel/hermes/client/src/main/bindings/sercom/configapp.restapi.xsd] [INFO] getInputSources total [1: [[file:/home/szarza/proyectos/cestel/hermes/client/src/main/bindings/sercom/configapp.restapi.xsd]] [INFO] getInputSources of: file:/home/szarza/proyectos/cestel/hermes/client/src/main/bindings/sercom/configapp.restapi.xsd

Also, the build log offers the error:
[ERROR] Could not find JAXB 2.x API classes. Make sure JAXB 2.x API is on the classpath.
even when using jaxb30-maven-plugin artifact.

build.log
pom.extract.txt

@laurentschoelens
Copy link

@phax bug analysis done here

It's quarkus issue for me

Created quarkusio/quarkus#35831

@phax
Copy link
Owner

phax commented Sep 9, 2023

Thanks @laurentschoelens - and using SNAPSHOT versions of JAXB plugins makes it also harder to follow up...

@laurentschoelens
Copy link

Don't even know where this snapshot came from

@laurentschoelens
Copy link

PR created at quarkus and merged in main (3.4)

@laurentschoelens
Copy link

@phax this can be closed per fix in quarkus 3.4

@phax phax closed this as completed Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants