2016-12-12 27 views
0

)プロジェクトをNexus 3にプッシュしようとしていますが、同じ問題が発生するたびに(以下のログ)MavenプロジェクトをNexus 3にプッシュ(

構成: のpom.xml

<nexus.url>http://adress/#browse/browse/components:docker-image</nexus.url> 

<distributionManagement> 
    <snapshotRepository> 
     <id>nexus</id> 
     <url>${nexus.url}</url> 
    </snapshotRepository> 
</distributionManagement> 
... 
<plugins> 
     <plugin> 
      <groupId>org.sonatype.plugins</groupId> 
      <artifactId>nexus-staging-maven-plugin</artifactId> 
      <version>1.6.4</version> 
      <extensions>true</extensions> 
      <configuration> 
       <serverId>nexus</serverId> 
       <nexusUrl>${nexus.url}</nexusUrl> 
       <autoReleaseAfterClose>true</autoReleaseAfterClose> 
      </configuration> 
     </plugin> 

と私は、ファイルのsettings.xmlを持っている:

<servers> 
<server> 
    <id>nexus</id> 
    <username>login</username> 
    <password>password</password> 
</server> 
</servers> 

、私は "MVN展開" しようとすると、結果は次のとおりです。

[INFO] Deploying remotely... 
[INFO] * Bulk deploying locally gathered snapshot artifacts to URL http://adress/#browse/browse/components:docker-image 
Downloading: http://adress/#browse/browse/components:/myProjectSource/0.1-SNAPSHOT/maven-metadata.xml 
[WARNING] Checksum validation failed, expected <!DOCTYPE but is c90f8bc4e18b8c79c2df61e2ec9288e33fd8985f for http://adress/#browse/browse/components:/myProjectSource/0.1-SNAPSHOT/maven-metadata.xml 
[WARNING] Could not validate integrity of download from http://adress/#browse/browse/components:/myProjectSource/0.1-SNAPSHOT/maven-metadata.xml Checksum validation failed, expected <!DOCTYPE but is c90f8bc4e18b8c79c2df61e2ec9288e33fd8985f 
[WARNING] Checksum validation failed, expected <!DOCTYPE but is c90f8bc4e18b8c79c2df61e2ec9288e33fd8985f for http://adress/#browse/browse/components:/myProjectSource/0.1-SNAPSHOT/maven-metadata.xml 
Downloaded: http://adress/#browse/browse/components:/myProjectSource/0.1-SNAPSHOT/maven-metadata.xml (5 KB at 13.3 KB/sec) 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 01:56 min 
[INFO] Finished at: 2016-12-12T14:15:55+01:00 
[INFO] Final Memory: 75M/744M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.4:deploy (injected-nexus-deploy) on project someProject: 
Failed to update metadata myProjectSource:0.1-SNAPSHOT/maven-metadata.xml: 
Could not parse metadata /home/test/.m2/repository/myProjectSource/0.1-SNAPSHOT/maven-metadata-nexus.xml: entity reference names can not start with character '&' (position: START_TAG seen ...ascript">\n function progressMessage(msg) {\n  if (console &&... @33:21) -> [Help 1] 

あなたはどこに問題があるか知っていますか?

答えて

1

解決策が見つかりました。問題はネクサスのURLで問題だった。細かい作業

<nexus.url>http://adress/repository/image-docker/</nexus.url> 

:に

<nexus.url>http://adress/#browse/browse/components:docker-image</nexus.url> 

:私からURL

を変更 。

+1

これは間違いありません。ブラウザに表示されているURLをリポジトリに使用することはできません。各リポジトリの右側にあるRepository Admin画面のURLのリストが表示されます。これらのURLを使用したい場合は、 – DarthHater

+0

そうです。今は正しいです。 –

関連する問題