Fix the guides which use `className` when generating the project
See original GitHub issueDescribe the bug
When creating a new project with the resteasy-jackson
extension, it will create its default classes no matter if I provide a className
or not.
Also the tests are missing but I assume that this is a result of the extension doing something wrong.
Following documentation in the getting started guides right now is not possible if the resteasy-jackson
extension is involved in the creation process.
Expected behavior
Respect the className
definition.
Actual behavior (Part of the reproduce section)
To Reproduce Create a project Note: I added also the Neo4j extension to have something to compare with.
mvn io.quarkus:quarkus-maven-plugin:1.10.3.Final:create \
-DprojectGroupId=com.meistermeier.neo4j \
-DprojectArtifactId=rest-neo4j-quarkus \
-DclassName="com.meistermeier.neo4j.MovieResource" \
-Dextensions="neo4j, resteasy-jackson"
creates
β rest-neo4j-quarkus tree
.
βββ README.md
βββ mvnw
βββ mvnw.cmd
βββ pom.xml
βββ src
βββ main
βββ docker
βΒ Β βββ Dockerfile.fast-jar
βΒ Β βββ Dockerfile.jvm
βΒ Β βββ Dockerfile.native
βββ java
βΒ Β βββ com
βΒ Β βββ meistermeier
βΒ Β βββ neo4j
βΒ Β βββ resteasyjackson
βΒ Β βββ JacksonResource.java
βΒ Β βββ MyObjectMapperCustomizer.java
βββ resources
βββ META-INF
βΒ Β βββ resources
βΒ Β βββ index.html
βββ application.properties
11 directories, 11 files
whereas
mvn io.quarkus:quarkus-maven-plugin:1.10.3.Final:create \
-DprojectGroupId=com.meistermeier.neo4j \
-DprojectArtifactId=neo4j-quarkus \
-DclassName="com.meistermeier.neo4j.MovieResource" \
-Dextensions="neo4j"
creates
.
βββ README.md
βββ mvnw
βββ mvnw.cmd
βββ pom.xml
βββ src
βββ main
βΒ Β βββ docker
βΒ Β βΒ Β βββ Dockerfile.fast-jar
βΒ Β βΒ Β βββ Dockerfile.jvm
βΒ Β βΒ Β βββ Dockerfile.native
βΒ Β βββ java
βΒ Β βΒ Β βββ com
βΒ Β βΒ Β βββ meistermeier
βΒ Β βΒ Β βββ neo4j
βΒ Β βΒ Β βββ MovieResource.java
βΒ Β βββ resources
βΒ Β βββ META-INF
βΒ Β βΒ Β βββ resources
βΒ Β βΒ Β βββ index.html
βΒ Β βββ application.properties
βββ test
βββ java
βββ com
βββ meistermeier
βββ neo4j
βββ MovieResourceTest.java
βββ NativeMovieResourceIT.java
15 directories, 12 files
Adding the extension later with ./mvnw quarkus:add-extension -Dextensions="resteasy-jackson"
works fine (maybe obvious but I wanted to mention this)
Environment (please complete the following information):
- Output of
java -version
: 11 / 15
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
We decided on a fix: https://github.com/quarkusio/quarkus/issues/14391
I am hesitating between a few solutions:
className
is used (and spring-web is not selected), we automatically add the resteasy example. It would fix all the guides but would make the behavior inconsistent.--examples=resteasy
option to specify the examples to use and udpate all the guides which need itβ¦