【发布时间】:2013-03-18 16:13:59
【问题描述】:
当我在 Jenkins 中运行构建时,它成功了,我也能够部署它。 但我在我的 Maven 存储库私有/发布位置找不到我的 jar 文件
https://repository-ram-cloud.forge.cloudbees.com/release/
这是 Jenkins 控制台输出
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: com.uhg.jcoe:osa-common:1.0.0 @ /scratch/jenkins/workspace/osa-common build/pom.xml]
[JENKINS] Archiving /scratch/jenkins/workspace/osa-common build/pom.xml to /home/ram-cloud/hudson_home/jobs/osa-common build/modules/com.uhg.jcoe$osa-common/builds/2013-03-16_19-13-30/archive/com.uhg.jcoe/osa-common/1.0.0/osa-common-1.0.0.pom
[JENKINS] Archiving /scratch/jenkins/workspace/osa-common build/target/osa-common-1.0.0.jar to /home/ram-cloud/hudson_home/jobs/osa-common build/modules/com.uhg.jcoe$osa-common/builds/2013-03-16_19-13-30/archive/com.uhg.jcoe/osa-common/1.0.0/osa-common-1.0.0.jar
Waiting for Jenkins to finish collecting data
channel stopped
[cloudbees-deployer] Deploying as (jenkins) to the ram-cloud account
看到它说它已部署到 ram-cloud 帐户,但我看不到它,这就是我的其他项目失败的原因,因为它们有这个 jar 依赖项。
【问题讨论】:
-
你能发布更完整的日志吗? BUILD SUCCESS 之前的行。正在运行什么 mvn 命令?
-
你告诉 Jenkins 构建的 Maven 目标是什么?
-
当然。 [信息] 将 /scratch/jenkins/workspace/osa-common build/target/osa-common-1.0.0.jar 安装到 /home/jenkins/.m2/repository/com/uhg/jcoe/osa-common/1.0。 0/osa-common-1.0.0.jar [INFO] 安装 /scratch/jenkins/workspace/osa-common build/pom.xml 到 /home/jenkins/.m2/repository/com/uhg/jcoe/osa-common /1.0.0/osa-common-1.0.0.pom mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install) projectSucceeded com.uhg.jcoe:osa-common:1.0。 0 会话结束
-
执行 Maven:-B -f /scratch/jenkins/workspace/osa-common build/pom.xml install [INFO] 扫描项目...
-
[debug] 执行 contextualize [INFO] 使用 'UTF-8' 编码复制过滤的资源。 [INFO] 复制 1 个资源 mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.5(default-resources) mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-compile) [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ osa-common ---
标签: maven repository local cloudbees