javafx 8 - How to make Maven Clean Install build JavaFX8? -


Every time I try to run my JavaFX8 project, I need to install a clean install with Maven, then create a project with eclipse. Only installing clean will result in an exception.

How can I install a Megan and execute Eclipse Build in one command. If I want to add it to my pom.xml, should I put it in my parents pom.xml or her children?

Thank you!

I finally got my work done, I added this line of code to my parents pom.xml Have given.

  & lt; Build & gt; & Lt; Plugins & gt; & Lt ;! - All your dependencies will be copied to target / target Libs, which will be taken by the ant function below - & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-dependency-plugin & lt; / ArtifactId> & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Copy & lt; / Id & gt; & Lt; Step & gt; Ready package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Copy-dependence & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; OutputDirectory & gt; $ {Project.build.directory} / libs & lt; / OutputDirectory & gt; & Lt; IncludeScope & gt; Collection & lt; / IncludeScope & gt; & Lt; IncludeScope & gt; Sequence & lt; / IncludeScope & gt; & Lt; ExcludeArtifactIds & gt; JavaFX & lt; / ExcludeArtifactIds & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-antrun-plugin & lt; / ArtifactId> & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Create-JavaFX-packages & lt; / Id & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Run & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; Target xmlns: fx = "javafx: com.sun.javafx.tools.ant" & gt; & Lt; Taskdef uri = "javafx: com.sun.javafx.tools.ant" resource = "com / sun / javafx / tools / ant / antlib.xml" squarepath = "$ {javafx.tools.ant.jar}" /> ; & Lt; Fx: application id = "fxApp" name = "$ {project.name}" key class = "$ {project.main.class}" /> & Lt ;! - Note: This will overwrite the JAR produced by Maven-jar-plugin, if you do not want it - & gt; & Lt; Fx: jar destfile = "$ {project.build.directory} /../../$ {project.build.finalName}" & gt; & Lt; Fx: app refilled = "fxApp" /> & Lt; "Target = class" & Lt; Fx: resources & gt; & Lt; Fx: fileset dir = "$ {project.build.directory} /../ .." includes "= libs / * .jar" /> & lt; / Fx: resources & gt; & Lt; / Fx: jar & gt; & Lt; Fx: Deployed Outdoor = "$ {project.build.directory} /../../javafx-output" Outfile = "$ {project.build.finalName}" Basic Bundle = "All" & gt; & Lt; Fx: app refilled = "fxApp" /> & Lt; Fx: resources & gt; & Lt ;! - If you & lt; Fx: jar & gt; Do not forget to modify the bottom line, above - & gt; & Lt; Fx: fileset dir = "$ {project.build.directory} /../ .." includes = "$ {project.build.finalName} .jar" /> & Lt; Fx: fileset dir = "$ {project.build.directory} /../ .." includes "= libs / * .jar" /> & lt; / Fx: resources & gt; & Lt; / Fx: deployed & gt; & Lt; / Target & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Create & gt; & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Com.oracle & lt; / Group & gt; & Lt; ArtifactId & gt; JavaFX & lt; / ArtifactId> & Lt; Version & gt; $ {Javafx.version} & lt; / Edition & gt; & Lt; Scope & gt; System & lt; / Scope & gt; & Lt; SystemPath & gt; $ {Java.home} /lib/ext/jfxrt.jar</systemPath> & Lt; / Dependencies & gt; & Lt; / Dependencies & gt;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -