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

Generated project have wrong package when using org.acme.something #13581

Closed
ia3andy opened this issue Dec 1, 2020 · 2 comments · Fixed by #13585
Closed

Generated project have wrong package when using org.acme.something #13581

ia3andy opened this issue Dec 1, 2020 · 2 comments · Fixed by #13585
Assignees
Labels
area/codestarts kind/bug Something isn't working
Milestone

Comments

@ia3andy
Copy link
Contributor

ia3andy commented Dec 1, 2020

Describe the bug
Holy guacamole, the package is acting weird when generating an app with org.acme.something as package name (only affecting spring-web and resteasy).. which is pretty bad since it's the first getting started example: https://quarkus.io/guides/getting-started

mvn io.quarkus:quarkus-maven-plugin:1.10.2.Final:create \
    -DprojectGroupId=org.acme \
    -DprojectArtifactId=getting-started \
    -DclassName="org.acme.getting.started.GreetingResource" \
    -Dpath="/hello"
cd getting-started

The output is:

.
├── README.md
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
    ├── main
    │   ├── docker
    │   │   ├── Dockerfile.fast-jar
    │   │   ├── Dockerfile.jvm
    │   │   └── Dockerfile.native
    │   ├── java
    │   │   └── org
    │   │       └── acme
    │   │           └── getting
    │   │               └── started
    │   │                   └── getting
    │   │                       └── started
    │   │                           └── GreetingResource.java
    │   └── resources
    │       ├── META-INF
    │       │   └── resources
    │       │       └── index.html
    │       └── application.properties
    └── test
        └── java
            └── org
                └── acme
                    └── getting
                        └── started
                            └── getting
                                └── started
                                    ├── GreetingResourceTest.java
                                    └── NativeGreetingResourceIT.java

The problem is because org.acme is being replaced twice when using resteasy and spring-web.

@ia3andy ia3andy added the kind/bug Something isn't working label Dec 1, 2020
@ghost ghost added the area/spring Issues relating to the Spring integration label Dec 1, 2020
@ghost
Copy link

ghost commented Dec 1, 2020

/cc @geoand

@ia3andy ia3andy self-assigned this Dec 1, 2020
@ia3andy ia3andy added area/codestarts and removed area/spring Issues relating to the Spring integration labels Dec 1, 2020
@ia3andy
Copy link
Contributor Author

ia3andy commented Dec 1, 2020

By luck, the bug is consistent, and the project does work.. so the "only" problem is the wrong package name and dir..

ia3andy added a commit to ia3andy/quarkus that referenced this issue Dec 1, 2020
ia3andy added a commit to ia3andy/quarkus that referenced this issue Dec 1, 2020
ia3andy added a commit to ia3andy/quarkus that referenced this issue Dec 2, 2020
ia3andy added a commit to ia3andy/quarkus that referenced this issue Dec 2, 2020
ia3andy added a commit to ia3andy/quarkus that referenced this issue Dec 2, 2020
@ghost ghost added this to the 1.11 - master milestone Dec 3, 2020
@gsmet gsmet modified the milestones: 1.11 - master, 1.10.3.Final Dec 6, 2020
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codestarts kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants