OpenJFX Maven archetype does not exist?

Viewed 2878

I tried to create a JavaFX maven project following the official doc (chapter IntelliJ with maven, non modular project). I replaced as outlined the archtype artififact id as : javafx-archetype-simple but when I try to create a project using the archtype, I still get the following error :

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.openjfx:maven-archetype-quickstart:0.0.1)

Any clue of what I did wrong ?

1 Answers

After spending a lot of time on this, I realized that I wasn't indicating "javafx-version" in the properties tab.

I set that property to 12 and it worked for me. Here's a pic.

screenshot of the menu

Also, as @JosePereda noted, make sure to choose the correct archetypeArtifactId

Related