Failed to create Quarkus application with Maven 3.8.5
Issue
- When I create a Quarkus application with Maven 3.8.5, following error is thrown:
$ mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:create \
> -DprojectGroupId=org.acme \
> -DprojectArtifactId=getting-started \
> -DplatformGroupId=com.redhat.quarkus.platform \
> -DplatformVersion=2.2.5.Final-redhat-00007 \
> -DclassName="org.acme.quickstart.GreetingResource" \
> -Dpath="/hello"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.2.5.Final-redhat-00007:create (default-cli) @ standalone-pom ---
[INFO] Looking for the newly published extensions in registry.quarkus.io
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.037 s
[INFO] Finished at: 2022-05-19T05:28:39Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:create (default-cli) on project standalone-pom: Execution default-cli of goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:create failed: An API incompatibility was encountered while executing com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:create: java.lang.NoSuchMethodError: 'org.apache.maven.model.profile.activation.FileProfileActivator org.apache.maven.model.profile.activation.FileProfileActivator.setPathTranslator(org.apache.maven.model.path.PathTranslator)'
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Environment
- Red Hat Build of Quarkus (RHBQ) 2.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.