2017-05-03 9 views
0

내부 넥서스 저장소에 배포하려고합니다. mvn installmvn clean deploy을 수행 할 수있는 maven 프로젝트를 구성했습니다. 이상한 점은 버전에서 SNAPSHOT을 제거하면 404이됩니다.maven deploy는 스냅 샷과 작동하지만 릴리스는 404입니다

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3:deploy (injected-nexus-deploy) on project explicit-staging-example: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3:deploy failed: Nexus connection problem to URL [http://nexus.mycompany.com:8000/repository/maven-releases/ ]: 404 - Not Found -> [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/PluginExecutionException 

그들은 모두 넥서스에서 사용할 수 있습니다 : 나는이 오류가 <version>1.0-SNAPSHOT</version>

<version>1.0</version>에 변경하면

<project> 
    <modelVersion>4.0.0</modelVersion> 

    <groupId>MavenExample</groupId> 
    <artifactId>com.mycompany</artifactId> 
    <version>1.0-SNAPSHOT</version> 

    <distributionManagement> 
    <repository> 
     <id>nexus</id> 
     <url>http://nexus.mycompany.com:8000/repository/maven-releases/</url> 
    </repository> 
    <snapshotRepository> 
     <id>nexus</id> 
     <url>http://nexus.mycompany.com:8000/repository/maven-snapshots/</url> 
    </snapshotRepository> 
    </distributionManagement> 

    <build> 
    <plugins> 
     <plugin> 
     <groupId>org.sonatype.plugins</groupId> 
     <artifactId>nexus-staging-maven-plugin</artifactId> 
     <version>1.6.3</version> 
     <extensions>true</extensions> 
     <configuration> 
      <serverId>nexus</serverId> 
      <nexusUrl>http://nexus.mycompany.com:8000/repository/maven-releases/</nexusUrl> 
      <!-- update this to the correct id! --> 
      <stagingProfileId>myid</stagingProfileId> 
     </configuration> 
     </plugin> 
    </plugins> 
    </build> 
</project> 

: 여기

SNAPSHOTS 작동 제의 pom.xml이다 :

maven

다른 플러그인을 추가하려했지만 행운이 없었습니다. 나는 아무런 도움도없이 대단히 감사 할 것입니다.

+0

Nexus 커뮤니티 버전을 사용 중입니까? 스테이징을 지원한다고 생각하지 않습니다. –

+0

@SteveC 예, OSS 3.3.0-01입니다. 이것은 단지 일시적인 것입니다. –

+0

그래,하지만 OSS 버전이 스테이징을 지원한다고 생각지 않아'넥서스 - 스테이징 - 메이븐 플러그인 '을 실행하는 동안 실패했다. –

답변

1

지금 Nexus 커뮤니티 버전을 사용 중이므로이 기능을 지원하지 않으므로 준비 릴리스를 배포 할 수 없습니다. 대한

지금 당신은 당신의 pom.xml에서 nexus-staging-maven-plugin 구성을 제거 할 필요가 정규

mvn clean deploy 

"그냥 작동"합니다 (그러나 준비없이).