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 creates projects with non-relocated dependencies #39330

Closed
fedinskiy opened this issue Mar 11, 2024 · 2 comments
Closed
Assignees
Labels
kind/bug Something isn't working

Comments

@fedinskiy
Copy link
Contributor

fedinskiy commented Mar 11, 2024

Describe the bug

I am using quarkus-maven-plugin to create a project. When I add resteasy-client dependency, the resulting project gets quarkus-rest-client-jackson depedendency in pom.xml. When this project is compiled, there is a warning, that this dependency was relocated to quarkus-resteasy-client-jackson

Expected behavior

Generated project can be compiled without warnings

Actual behavior

[WARNING] The artifact io.quarkus:quarkus-rest-client-jackson:jar:3.8.2 has been relocated to io.quarkus:quarkus-resteasy-client-jackson:jar:3.8.2: io.quarkus:quarkus-rest-client-jackson:3.8.2 was relocated to io.quarkus:quarkus-resteasy-client-jackson:3.8.2. Please update the artifactId of the dependency in your project configuration. For more information about this change, please refer to https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.7#rest-client

How to Reproduce?

  1. generate project :mvn io.quarkus.platform:quarkus-maven-plugin:3.8.2:create -DprojectGroupId=my-groupId -DprojectArtifactId=app-generated-skeleton -DquarkusRegistryClient=false -DplatformArtifactId=quarkus-bom -DplatformVersion=3.8.2 -Dextensions=resteasy-client
  2. Compile the project: mvn clean compile -f app-generated-skeleton/pom.xml

Output of uname -a or ver

6.7.3-200.fc39.x86_64

Output of java -version

Java version: 21.0.1, vendor: Eclipse Adoptium

Quarkus version or git rev

3.8.1

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

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

@fedinskiy fedinskiy added the kind/bug Something isn't working label Mar 11, 2024
@fedinskiy fedinskiy changed the title Quarkus amven plugin create projects with non-relocated dependencies Quarkus maven plugin creates projects with non-relocated dependencies Mar 11, 2024
@gsmet gsmet self-assigned this Mar 11, 2024
@gsmet
Copy link
Member

gsmet commented Mar 11, 2024

Good catch, on it.

@gsmet
Copy link
Member

gsmet commented Mar 11, 2024

#39334 should fix it for 3.8, I'll work on something for main too as it's probably a good idea to add a rest-client quickstart for the one from RESTEasy Reactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants