Ich habe Probleme während der Bereitstellung und hier ist die Fehlermeldung, die ich bekomme. Ich habe mein Projekt überprüft Zielordner wurde noch nicht erstellt.MVN-Bereitstellung schlägt fehl
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ LoanCalculator ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.010 s
[INFO] Finished at: 2017-09-21T16:10:39+05:30
[INFO] Final Memory: 27M/283M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project LoanCalculator: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
Prozess beendet mit Exit-Code 1
ich im Internet überprüft und nicht in der Lage, die Lösung für dieses Problem zu finden. Ich denke, es hängt mit pom.xml zusammen. Hier sind die dazugehörigen Teile pom.xml:
<properties>
<spring.version>4.3.5.RELEASE</spring.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.jfxtras</groupId>
<artifactId>jfxtras-agenda</artifactId>
<version>8.0-r1</version>
</dependency>
<dependency>
<groupId>org.wildfly.swarm</groupId>
<artifactId>javafx</artifactId>
<version>2016.10.0</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>javafx</artifactId>
<version>2.2.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/jfxrt.jar</systemPath>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- Spring AOP dependency -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2</version>
</dependency>
Ich bin nicht in der Lage die richtige Abhängigkeit zu finden.
Mögliche Duplikat [Maven: Repository-Element nicht in der POM innerhalb distribution angegeben wurde] (https://stackoverflow.com/questions/5910037/maven-repository-element-was-not-specified-in -the-pom-inside-distributionmanage) – jfs
mit diesem https://Stackoverflow.com/a/13314394/1746118 als Antwort. – nullpointer
Eigentlich habe ich keinen Zielordner in meinem Projekt, weil es nicht einmal ausgeführt wird. – Garima