2016-09-30 95 views
1

我打算使用artifactory-maven-plugin將maven構建上傳到我的artifactory服務器。上傳與jfrog cli作品,所以它似乎不是一個權限問題。 這裏是我的pom.xml:Artifactory maven插件無法部署

 <plugin> 
      <groupId>org.jfrog.buildinfo</groupId> 
      <artifactId>artifactory-maven-plugin</artifactId> 
      <version>2.6.1</version> 
      <inherited>false</inherited> 
      <executions> 
       <execution> 
        <id>build-info</id> 
        <goals> 
         <goal>publish</goal> 
        </goals> 
        <configuration> 
         <deployProperties> 
          <gradle>awesome</gradle> 
          <review.team>qa</review.team> 
         </deployProperties> 
         <contextUrl>http://vserver1.craftwater.de:8081/artifactory</contextUrl> 
         <username>myUser</username>       
         <password>mySecret</password> 
         <excludePatterns>*-tests.jar</excludePatterns> 
         <repoKey>libs-release-local</repoKey> 
         <snapshotRepoKey>libs-snapshot-local</snapshotRepoKey> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 

mvn deploy結果是IllegalArgutementException:

Caused by: java.lang.IllegalArgumentException: Target repository cannot be empty 
at org.jfrog.build.client.DeployDetails$Builder.build(DeployDetails.java:119) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.addDeployableArtifact(BuildInfoRecorder.java:604) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.addArtifactsToCurrentModule(BuildInfoRecorder.java:533) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:477) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:464) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:392) 
at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:210) 
at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) 
at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) 
... 16 more 

這是一個錯誤還是我做錯了什麼?

Artifactory的版本:Artifactory的OSS 4.11.1修訂版40241

回答

相關問題