-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
io.quarkus...BootstrapMavenException resolving a wrong dependency version #29025
Comments
/cc @quarkusio/devtools @aloubyansky |
@aloubyansky not sure if this one is on your radar or if it is fixed already? |
It appears to be a deployment classpath dependency
|
|
Pardon me @aloubyansky how do you get I reckon the comment you provided would explain, but I was not able to replicate this output #29025 (comment) even passing |
It's |
Ah, gotcha! Thanks, this is a nice trick which might be worth to note.
Not sure. Maybe a suggestion here is that IF the build fails per original initial comment #29025 (comment) |
I'll see whether we can do something about it. |
It's a bug in the Quarkus dependency resolver. A user should not be required to configure the jboss repo. |
Describe the bug
It seems
io.quarkus.bootstrap.resolver.BootstrapAppModelResolver
is somehow resolving a wrong version for a transitive dependency in a quarkus based application.I have a reproducer where
mvn dependency:tree
gives:please notice the version of
xmlpull
is:xmlpull:xmlpull:jar:1.1.3.1
accordingly to Maven.Expected behavior
mvn clean install
to finish correctly.xmlpull:xmlpull:jar:1.1.3.1
is considered as indicated by Maven, not1.2.0
.Actual behavior
How to Reproduce?
mvn clean install -X
io.quarkus.bootstrap.resolver.BootstrapAppModelResolver
and related, is trying to resolve a dependency version (1.2.0
) which is not the actual one in the current app, accordingly to Maven:1.1.3.1
Workaround exists, by adding:
to the
pom.xml
of the Quarkus reproducer application, then it resolves the non-needed-dependency in other repository (JBoss) and then the build progresses and completes fine.Output of
uname -a
orver
Darwin mmortari1-mac 20.6.0 Darwin Kernel Version 20.6.0
Output of
java -version
openjdk version "18.0.1.1" 2022-04-22
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6
Additional information
/cc @mariofusco @evacchi
The text was updated successfully, but these errors were encountered: