Today I started looking at Quarkus and following the Getting Started project. After created the project using maven:
mvn io.quarkus:quarkus-maven-plugin:1.9.2.Final:create \
-DprojectGroupId=org.acme \
-DprojectArtifactId=getting-started \
-DclassName="org.acme.getting.started.GreetingResource" \
-Dpath="/hello"
and import into Eclipse, I'm having two errors as:
Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: io.quarkus:quarkus-maven-plugin:1.9.2.Final:generate-code (execution: default, phase: generate-sources) pom.xml /getting-started line 57 Maven Project Build Lifecycle Mapping Problem
The error is pointing to the build section of the pom file and the tag execution is highlighted as red:
io.quarkus
quarkus-maven-plugin
${quarkus-plugin.version}
generate-code
generate-code-tests
build
maven-compiler-plugin
${compiler-plugin.version}
maven-surefire-plugin
${surefire-plugin.version}
org.jboss.logmanager.LogManager
${maven.home}
I tried to include the 'pluginManagement' between the plugins tag as below and the error disappeared:
io.quarkus
quarkus-maven-plugin
${quarkus-plugin.version}
generate-code
generate-code-tests
build
maven-compiler-plugin
${compiler-plugin.version}
maven-surefire-plugin
${surefire-plugin.version}
org.jboss.logmanager.LogManager
${maven.home}
but when running the app as:
./mvnw compile quarkus:dev
It's not running. I had to remove the PluginManagement and everything back to work but with the same error in red