-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Problem
When building a Quarkus.io project with Maven 3.2.5, the build fails due to the plugin quarkus-bootstrap-maven-plugin which requires a higher version of Maven. This is problematic since our mono repo is built with this version.
Solution ideas
- Replace what quarkus-bootstrap-maven-plugin does and use Maven 3.2.5
- Putting a META-INF/quarkus-extension.properties makes it work with Maven 3.2.5
- File content: deployment-artifact=org.camunda.bpm.quarkus\:camunda-bpm-quarkus-engine-deployment\:1.0.0-SNAPSHOT
- Putting a META-INF/quarkus-extension.properties makes it work with Maven 3.2.5
- Build the Quarkus.io extension as a downstream project with a higher Maven version
- Call maven command with higher version inside the Maven 3.1.5 run to build the quarkus extension
Stacktrace excerpt
% mvn clean install Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 [INFO] Scanning for projects... [WARNING] Error injecting: io.quarkus.maven.components.BootstrapSessionListener com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting: private org.eclipse.aether.spi.log.Logger org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger while locating org.apache.maven.repository.internal.DefaultVersionRangeResolver while locating java.lang.Object annotated with * at org.eclipse.sisu.wire.LocatorWiring while locating org.eclipse.aether.impl.VersionRangeResolver for parameter 1 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(Unknown Source) while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem while locating java.lang.Object annotated with * at ClassRealm[extension>io.quarkus:quarkus-maven-plugin:1.13.4.Final, parent: sun.misc.Launcher$AppClassLoader@42a57993] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating io.quarkus.maven.QuarkusBootstrapProvider while locating io.quarkus.maven.components.BootstrapSessionListener Caused by: java.lang.IllegalArgumentException: Can not set org.eclipse.aether.spi.log.Logger field org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger to org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
Hints
See complete Stacktrace attached.
This is the controller panel for Smart Panels app
- is related to
-
CAM-13718 CI Pipelines execute Quarkus stages
- Closed