【发布时间】:2020-03-11 06:32:39
【问题描述】:
我在 jenkins 中构建我的 java maven 项目时遇到了麻烦。 在我的项目中,很少有像这样包含在 pom 中的自定义 jar
<dependency>
<groupId>SMSGatewayClient</groupId>
<artifactId>SMSGatewayClient</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}\lib\SMSGatewayClient.jar</systemPath>
</dependency>
但是詹金斯抛出异常
“找不到工件 SMSGatewayClient:SMSGatewayClient:jar:1.0 at 指定路径 /var/lib/jenkins/workspace/DEV-metal-auc/MetalBusiness_mvn\lib\SMSGatewayClient.jar"
然后构建停止。
如何使用该自定义 jar 以使 jenkins 成功构建?
【问题讨论】:
标签: jenkins