2017-09-21 9 views
2

배포하는 동안 문제가 발생했습니다. 여기에 오류 메시지가 표시됩니다. 내 프로젝트 대상 폴더가 아직 생성되지 않았는지 확인했습니다.mvn deploy failed fail

[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 

프로세스 내가 인터넷에서 확인하고이 문제에 대한 해결책을 찾을 수없는 1

종료 코드로 마쳤다. 나는 그것이 pom.xml과 관련이 있다고 생각한다. 다음은 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> 

올바른 종속성을 찾을 수 없습니다.

+3

가능 중복 [메이븐은 : 저장소 소자 distributionManagement 내부 POM에 지정되지 않은 (https://stackoverflow.com/questions/5910037/maven-repository-element-was-not-specified-in -pom-inside-distributionmanage) – jfs

+0

이 답변으로이 https://stackoverflow.com/a/13314394/1746118. – nullpointer

+0

실제로 한 번 실행되지 않기 때문에 프로젝트에 대상 폴더가 없습니다. – Garima

답변

1

대상 폴더를 만들지 않은 경우 "mvn 새로 설치"를 먼저 수행하고 빌드가 제대로 실행되고 원하는 대상을 가진 "대상"폴더가 만들어 졌는지 확인할 수 있습니까?

distributionManagement 태그를 pom.xml에 추가하십시오 (예 : 아래 테스트 및 URL을 원하는 repo 관리자 구성/값으로 대체 한 다음 "mvn deploy"를 수행하십시오).

<distributionManagement> 
    <repository> 
      <id>test</id> 
      <url>Repo path</url> 
    </repository> 
</distributionManagement>