Build artifact jar failing for osm2world java code in intellij

when i try to compile the artifact jar by setting viewer class as main class the build is failing with annotations error. please suggest if any new settings need inn intellij for the compilation to happen in osm2world app.

1 Like

Can you try the following?

  • Go to View > Tool windows > Maven

  • In the Maven window, select OSM2World > Lifecycle > install

  • click on Run Maven Build (The green arrow)

This should compile and package the JAR.

If you still get messages about annotations, you could also try this:

  • Go to File > Settings > Build, Execution, Deployment > Build Tools > Maven > Importing and enable Annotations under Automatically download

  • Then right-click on the pom.xml in the source tree and choose Maven > Reload project from the context menu

1 Like