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

Quarkus Maven Plugin create goal fails on Maven 3.9.0 #31387

Closed
zforgo opened this issue Feb 23, 2023 · 2 comments
Closed

Quarkus Maven Plugin create goal fails on Maven 3.9.0 #31387

zforgo opened this issue Feb 23, 2023 · 2 comments
Labels
area/maven kind/bug Something isn't working

Comments

@zforgo
Copy link

zforgo commented Feb 23, 2023

Describe the bug

When creating a new project e.g.
mvn io.quarkus:quarkus-maven-plugin:create -DprojectGroupId=io.github.zforgo -DprojectArtifactId=example
the execution will fail with error message:

A required class was missing while executing io.quarkus:quarkus-maven-plugin:3.0.0.Alpha4:create: org/eclipse/aether/connector/basic/BasicRepositoryConnectorFactory

Expected behavior

The project skeleton should be generated successfully.

Actual behavior

When running create goal of Maven plugin using Maven 3.9.0
mvn io.quarkus:quarkus-maven-plugin:create -DprojectGroupId=io.github.zforgo -DprojectArtifactId=example
the execution will fail with this output:

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- quarkus:3.0.0.Alpha4:create (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.457 s
[INFO] Finished at: 2023-02-23T22:54:29+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.0.0.Alpha4:create (default-cli) on project standalone-pom: Execution default-cli of goal io.quarkus:quarkus-maven-plugin:3.0.0.Alpha4:create failed: A required class was missing while executing io.quarkus:quarkus-maven-plugin:3.0.0.Alpha4:create: org/eclipse/aether/connector/basic/BasicRepositoryConnectorFactory
[ERROR] -----------------------------------------------------

...

[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] : org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory
[ERROR] -> [Help 1]
[ERROR] 

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.16.3.Final, 3.0.0.Alpha4

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)

Additional information

It perfectly works with older version of Maven (e.g 3.8.4 or 3.8.7)
It seems the org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.6.3 did not added to the plugin class realm which cause a ClassNotFoundException

All debug logs available below
success - 3.8.4.log
failed - 3.9.0.log

@zforgo zforgo added the kind/bug Something isn't working label Feb 23, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Feb 23, 2023

/cc @quarkusio/devtools (maven)

@gastaldi
Copy link
Contributor

Duplicate of #31011

@gastaldi gastaldi marked this as a duplicate of #31011 Feb 23, 2023
@gastaldi gastaldi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/maven kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants