Drashti Pandya
Drashti Pandya

Reputation: 358

How can I install maven repository into your pom.xml file in netbeans 8.0.2?

Should I manually install maven in netbeans 8.0.2?I have try to find pom.xml but i can not find it!In my netbeans services show maven repository.how can i add dependency in maven?

Upvotes: 0

Views: 963

Answers (1)

ItachiUchiha
ItachiUchiha

Reputation: 36742

You do not need a JavaFX FXML Application while you are creating a Maven based JavaFX application using Netbeans. Since JavaFX (i.e. jfxrt.jar) is already present in the default classpath with JDK 8, you do not need any external modification to run a JavaFX application.

Few things that may come in handy :

  • Just make sure that your project is running on JDK 8, you add a maven-compiler-plugin and set the source/target to 1.8.

  • Maven will not pick your fxml files if you add them in src/main/java. Always add your java files in the said directory and all the FMXL files must go inside src/main/resources.

  • If you need further help for packaging and deploying your application you can use the javafx-maven-plugin. A short tutorial can be found in this answer.

Upvotes: 1

Related Questions