question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quarkus maven plugin seems to ignore my mainClass setting

See original GitHub issue

It 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:

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rsvobodacommented, Nov 7, 2019

It seems that at some point between versions 0.22.0 and 1.0.0.CR1

Last version when qjf worked was 0.25.0

0reactions
stuartwdouglascommented, Jun 16, 2020

This should not be a problem now we have command mode support.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found