Quarkus maven plugin seems to ignore my mainClass setting
See original GitHub issueIt seems that at some point between versions 0.22.0 and 1.0.0.CR1, Quarkus maven plugin stopped recognizing settings such as:
<configuration>
<mainClass>biz.karms.quarkus.json.formatter.Main</mainClass>
</configuration>
Platform
- graalvm-ce-19.1.1 Linux x86_64
- Apache Maven 3.6.0
- OpenJDK 11
Steps to reproduce:
- clone https://github.com/Karm/qjf.git
- mvn clean package -Pnative
- get some json file and let it format it:
- curl https://starter.karms.biz/api/supportMatrix | ./target/qjf-runner
It works as long as the version is e.g. 0.22.0 (which is in the aforementioned repo):
karm@local:~/workspaceRH/qjf $ cat ugly.json | ./target/qjf-runner
{
"configs": {
"MP30": {
"supportedServers": [
"LIBERTY",
<SNIP>
It breaks if you change Quarkus version in the pom.xml to e.g. 1.0.0.CR1:
By “it breaks” I mean that my Main class is ignored and the generated Quarkus one is used.
(base) karm@local:~/workspaceRH/qjf ((v1.0) *%)$ cat ugly.json | ./target/qjf-runner
2019-11-07 15:33:07,322 INFO [io.quarkus] (main) qjf 1.0.0-SNAPSHOT (running on Quarkus 1.0.0.CR1) started in 0.001s.
2019-11-07 15:33:07,322 INFO [io.quarkus] (main) Profile prod activated.
2019-11-07 15:33:07,322 INFO [io.quarkus] (main) Installed features: []
...hangs....
^C
2019-11-07 15:33:09,139 INFO [io.quarkus] (main) qjf stopped in 0.000s
Is this a configuration thing? Is it a feature or a bug? After some googling around the Quarkus guides I consider this a bug, hence this issue. Thank you for feedback.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Building applications with Maven - Quarkus
Whether Quarkus should use the online registry to resolve extension catalogs. If this is set to false, the extension catalog will be narrowed...
Read more >quarkus-maven-plugin does not add implementation-entries to ...
It seems to me that the quarkus-maven-plugin is ignoring that line since maven-jar-plugin is working perfectly fine (I used this in a ...
Read more >Developing and compiling your Quarkus applications with ...
Quarkus Maven plug-in ( quarkus-maven-plugin ): Enables Maven to create Quarkus ... Configure the Quarkus Maven repository --> <profile> ...
Read more >Run a Java Class from Maven made simple - Mastertheboss
In order to run a Java main class from your Maven project you can ... If you prefer, you can add the Maven...
Read more >Quarkus | IntelliJ IDEA Documentation - JetBrains
Run the Quarkus application. IntelliJ IDEA creates a Quarkus run configuration that executes the necessary Maven goal or Gradle task.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Last version when
qjf
worked was 0.25.0This should not be a problem now we have command mode support.