openshift-labs / learn-katacoda

The OpenShift learning portal, powered by Katacoda
https://learn.openshift.com
159 stars 266 forks source link

Malformed POM in /root/projects/kogito/knapsack-optaplanner-quarkus #862

Open dylanlt opened 3 years ago

dylanlt commented 3 years ago

[ERROR] The project com.redhat:knapsack-optaplanner-quarkus:1.0-SNAPSHOT (/root/projects/kogito/knapsack-optaplanner-quarkus/pom.xml) has 1 error [ERROR] Malformed POM /root/projects/kogito/knapsack-optaplanner-quarkus/pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...ties>\n ${maven_repositories}${maven_plugin_repositories}\n <d... @23:7) @ /root/projects/kogito/knapsack-optaplanner-quarkus/pom.xml, line 23, column 7 -> [Help 2]

karstengresch commented 3 years ago

@dylanlt -thanks!

As a workaround, you can try w/ v. 1.7.0 of the quarkus-maven-plugin:

mvn io.quarkus:quarkus-maven-plugin:1.7.0.Final:create \
-DprojectGroupId=com.redhat \
-DprojectArtifactId=knapsack-optaplanner-quarkus  \
-DclassName="com.redhat.knapsackoptaplanner.solver.KnapsackResource"  \
-Dpath="/knapsack" \
-Dextensions="optaplanner-quarkus,optaplanner-quarkus-jackson,quarkus-resteasy-jackson,quarkus-smallrye-openapi"

NB - extension names changed from quarkus-optaplanner to optaplanner-quarkus.

I just went through the entire lab and it's working (including OpenShift deployment).