quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Multiple Application error with ignore-application-classes set to true

Open mikethecalamity opened this issue 2 years ago • 5 comments

Describe the bug

I'm running quarkusDev, and I set quarkus.resteasy.ignore-application-classes=true. But I still get an error that More than one Application class exists. With that config property set, shouldn't that error not be possible?

Expected behavior

Successful startup with no Application classes.

Actual behavior

RuntimeException: More than one Application class: [my.services.service1.Service1Application, my.services.service2.Service2Application]

How to Reproduce?

  1. Create 2 projects with Application classes
  2. Reference one project from another as a dependency
    • quarkusDev project(':service2')
  3. ./gradlew service1:quarkusDev
  4. Error

Output of uname -a or ver

No response

Output of java -version

Temurin JDK 17.0.3

GraalVM version (if different from Java)

No response

Quarkus version or git rev

Quarkus 2.11.2

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

Gradle 7.4.2

Additional information

No response

mikethecalamity avatar Aug 31 '22 18:08 mikethecalamity

What extensions are you using?

geoand avatar Sep 01 '22 06:09 geoand

@geoand

implementation 'io.quarkus:quarkus-config-yaml'
implementation 'io.quarkus:quarkus-resteasy'
implementation 'io.quarkus:quarkus-resteasy-jackson'
implementation 'io.quarkus:quarkus-smallrye-context-propagation'
implementation 'io.quarkus:quarkus-smallrye-health'
implementation 'io.quarkus:quarkus-smallrye-openapi'
implementation 'io.quarkus:quarkus-undertow'
implementation 'org.amqphub.quarkus:quarkus-qpid-jms'

mikethecalamity avatar Sep 01 '22 15:09 mikethecalamity

Understood, thanks.

Can you please attach a sample project that exhibits the problematic behavior?

geoand avatar Sep 02 '22 05:09 geoand

Attempting to isolate the issue in a reproducer.

mikethecalamity avatar Sep 09 '22 04:09 mikethecalamity

@mweber03 where you able to come up with a sample application?

geoand avatar Oct 14 '22 15:10 geoand

Closing as we did not received feedback.

Feel free to comment and / or reopen if a reproducer becomes available.

geoand avatar Oct 25 '22 08:10 geoand