title: Javafx maven project deployment with Intellij IDEA
body: <p>I Started a JavaFX maven project in Intellij IDEA. 
  The programme run perfectly inside Intellij IDEA.
  I have Included javafx-maven-plugin in order to deploy the my project.
  After executing the javafx-maven-plugin:jfx:build-jar. i got this error log : </p>
  
  <pre><code>"C:\Program Files\Java\jdk1.8.0_51\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.1 --debug -T X org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
  Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
  Maven home: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\plugins\maven\lib\maven3
  Java version: 1.8.0_51, vendor: Oracle Corporation
  Java home: C:\Program Files\Java\jdk1.8.0_51\jre
  Default locale: fr_FR, platform encoding: UTF-8
  OS name: "windows 8", version: "6.2", arch: "amd64", family: "dos"
  [INFO] Error stacktraces are turned on.
  [DEBUG] Reading global settings from C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\plugins\maven\lib\maven3\conf\settings.xml
  [DEBUG] Reading user settings from C:\Users\computerPCNRU\.m2\settings.xml
  [DEBUG] Using local repository at C:\Users\computerPCNRU\.m2\repository
  [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\computerPCNRU\.m2\repository
  [INFO] Scanning for projects...
  [DEBUG] Extension realms for project com.abdo.EntrepriseLimted:EntrepriseLimited:jar:1.0: (none)
  [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
  [WARNING] 
  [WARNING] Some problems were encountered while building the effective model for com.abdo.EntrepriseLimted:EntrepriseLimited:jar:1.0
  [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 11, column 21
  [WARNING] 
  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  [WARNING] 
  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  [WARNING] 
  [DEBUG] === REACTOR BUILD PLAN ================================================
  [DEBUG] Project: com.abdo.EntrepriseLimted:EntrepriseLimited:jar:1.0
  [DEBUG] Tasks:   [org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy]
  [DEBUG] Style:   Regular
  [DEBUG] =======================================================================
  [WARNING] Couldn't parse thread count, will default to 1.0: X
  [DEBUG] Thread pool size: 1
  [INFO] Building with 1 threads
  [DEBUG] Scheduling: MavenProject: com.abdo.EntrepriseLimted:EntrepriseLimited:1.0 @ D:\Projects\6.Project SI limted\2 nd iteration\2. Object Oriented design\pom.xml
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building EntrepriseLimited 1.0
  [INFO] ------------------------------------------------------------------------
  [DEBUG] Lifecycle default -&gt; [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
  [DEBUG] Lifecycle clean -&gt; [pre-clean, clean, post-clean]
  [DEBUG] Lifecycle site -&gt; [pre-site, site, post-site, site-deploy]
  [DEBUG] === PROJECT BUILD PLAN ================================================
  [DEBUG] Project:       com.abdo.EntrepriseLimted:EntrepriseLimited:1.0
  [DEBUG] Dependencies (collect): []
  [DEBUG] Dependencies (resolve): []
  [DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)]
  [DEBUG] Repositories (plugins)     : [central (http://repo.maven.apache.org/maven2, releases)]
  [DEBUG] -----------------------------------------------------------------------
  [DEBUG] Goal:          org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-cli)
  [DEBUG] Style:         Regular
  [DEBUG] Configuration: &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;altDeploymentRepository&gt;${altDeploymentRepository}&lt;/altDeploymentRepository&gt;
    &lt;artifact default-value="${project.artifact}"/&gt;
    &lt;attachedArtifacts default-value="${project.attachedArtifacts}"/&gt;
    &lt;localRepository default-value="${localRepository}"/&gt;
    &lt;offline default-value="${settings.offline}"/&gt;
    &lt;packaging default-value="${project.packaging}"/&gt;
    &lt;pomFile default-value="${project.file}"/&gt;
    &lt;project default-value="${project}"/&gt;
    &lt;retryFailedDeploymentCount default-value="1"&gt;${retryFailedDeploymentCount}&lt;/retryFailedDeploymentCount&gt;
    &lt;skip default-value="false"&gt;${maven.deploy.skip}&lt;/skip&gt;
    &lt;updateReleaseInfo default-value="false"&gt;${updateReleaseInfo}&lt;/updateReleaseInfo&gt;
  &lt;/configuration&gt;
  [DEBUG] =======================================================================
  [INFO] 
  [INFO] --- maven-deploy-plugin:2.7:deploy (default-cli) @ EntrepriseLimited ---
  [DEBUG] Created new class realm maven.api
  [DEBUG] Importing foreign packages into class realm maven.api
  [DEBUG]   Imported: org.apache.maven.cli &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.lifecycle &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.lifecycle &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.repository &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.personality &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.usability &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.configuration &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.version &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.* &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.artifact &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.* &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.project &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.repository &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.impl &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.exception &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.plugin &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.collection &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.* &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.logging &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.profiles &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.metadata &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.spi &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.* &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.graph &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.rtinfo &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.installation &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.monitor &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.transfer &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.context &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.observers &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.resource &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.deployment &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.model &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.artifact &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.toolchain &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.settings &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.authorization &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.events &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.authentication &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.reporting &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.repository &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.configuration &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.classworlds &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.classworlds &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.classrealm &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.resolution &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.execution &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.proxy &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.container &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.component &lt; plexus.core
  [DEBUG] Populating class realm maven.api
  [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:2.7:
  [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
  [DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
  [DEBUG]       org.apache.maven:maven-settings:jar:2.0.6:compile
  [DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
  [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
  [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
  [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
  [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
  [DEBUG]          junit:junit:jar:3.8.1:compile
  [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
  [DEBUG]    org.apache.maven:maven-model:jar:2.0.6:compile
  [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
  [DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
  [DEBUG] Created new class realm plugin&gt;org.apache.maven.plugins:maven-deploy-plugin:2.7
  [DEBUG] Importing foreign packages into class realm plugin&gt;org.apache.maven.plugins:maven-deploy-plugin:2.7
  [DEBUG]   Imported:  &lt; maven.api
  [DEBUG] Populating class realm plugin&gt;org.apache.maven.plugins:maven-deploy-plugin:2.7
  [DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
  [DEBUG]   Included: junit:junit:jar:3.8.1
  [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.6
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
  [DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
  [DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
  [DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.6
  [DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.6
  [DEBUG] Configuring mojo org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm ClassRealm[plugin&gt;org.apache.maven.plugins:maven-deploy-plugin:2.7, parent: sun.misc.Launcher$AppClassLoader@6d06d69c]
  [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator --&gt;
  [DEBUG]   (f) artifact = com.abdo.EntrepriseLimted:EntrepriseLimited:jar:1.0
  [DEBUG]   (f) attachedArtifacts = []
  [DEBUG]   (s) localRepository =        id: local
        url: file:///C:/Users/computerPCNRU/.m2/repository/
     layout: none
  
  [DEBUG]   (f) offline = false
  [DEBUG]   (f) packaging = jar
  [DEBUG]   (f) pomFile = D:\Projects\6.Project SI limted\2 nd iteration\2. Object Oriented design\pom.xml
  [DEBUG]   (f) project = MavenProject: com.abdo.EntrepriseLimted:EntrepriseLimited:1.0 @ D:\Projects\6.Project SI limted\2 nd iteration\2. Object Oriented design\pom.xml
  [DEBUG]   (f) retryFailedDeploymentCount = 1
  [DEBUG]   (f) skip = false
  [DEBUG]   (f) updateReleaseInfo = false
  [DEBUG] -- end configuration --
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.095s (Wall Clock)
  [INFO] Finished at: Sun Feb 28 23:48:32 WAT 2016
  [INFO] Final Memory: 4M/61M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-cli) on project EntrepriseLimited: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-cli) on project EntrepriseLimited: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
      at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
      at org.apache.maven.plugin.deploy.DeployMojo.getDeploymentRepository(DeployMojo.java:235)
      at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:118)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 11 more
  [ERROR] 
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  
  Process finished with exit code 1
  </code></pre>
  
  <p>Her is the pom.xml file : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.abdo.EntrepriseLimted&lt;/groupId&gt;
      &lt;artifactId&gt;EntrepriseLimited&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.zenjava&lt;/groupId&gt;
                  &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;8.2.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;mainClass&gt;main&lt;/mainClass&gt;
                      &lt;bundler&gt;EXE&lt;/bundler&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.abdo.EntrepriseLimted&lt;/groupId&gt;
              &lt;artifactId&gt;EntrepriseLimited&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>