[英]Artifactory maven plugin fails to deploy
I'm tring to use the artifactory-maven-plugin
to upload a maven build to my artifactory server. 我正在尝试使用artifactory-maven-plugin
将一个maven构建上传到我的artifactory服务器。 Uploading with the jfrog cli works, so it seems not a permission problem. 使用jfrog cli进行上传有效,因此似乎不是权限问题。 Here is my pom.xml: 这是我的pom.xml:
<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>
The result of mvn deploy
is an IllegalArgutementException: 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
Is this a bug or do I do something wrong? 这是一个错误还是我做错了什么?
Artifactory version: Artifactory OSS 4.11.1 rev 40241 Artifactory版本:Artifactory OSS 4.11.1 rev 40241
I believe that your plugin configuration is missing the publisher tag. 我相信您的插件配置缺少发布商标签。 You can use the Maven Artifactory Plugin reference guide and also this example project: 您可以使用《 Maven Artifactory插件》参考指南以及以下示例项目:
https://github.com/JFrogDev/project-examples/tree/master/artifactory-maven-plugin-example https://github.com/JFrogDev/project-examples/tree/master/artifactory-maven-plugin-example
I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.