找不到工件com.vico:com.vico.spring.boot.starter.service

时间:2017-08-19 06:58:59

标签: spring maven jenkins spring-boot

我正在使用jenkins 2创建新工作,我在编译阶段遇到以下错误:

[INFO] --------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------
[INFO] Total time: 33.893s
[INFO] Finished at: Sat Aug 19 08:38:57 CEST 2017
[INFO] Final Memory: 13M/111M
[INFO] --------------------------------
[ERROR] Failed to execute goal on project xy: Could not resolve dependencies for project xy:jar:0.0.1-SNAPSHOT: Could not find artifact com.vico:com.vico.spring.boot.starter.service:jar:1.0.0-SNAPSHOT in jcenter-snapshots (https://jcenter.bintray.com/) -> [Help 1]

我不明白为什么编译代码时遇到问题(它不在我的旧jenkins中,也不在我的语言环境中)

stage('Compile Stage') {
    sh 'mvn clean compile'
}

我的pom条目如下:

<name>xy</name>
<url>http://maven.apache.org</url>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.3.RELEASE</version>
</parent>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>3.16</version>
    </dependency>
    <!-- Spring Boot -->
    <dependency>
        <groupId>com.vico</groupId>
        <artifactId>com.vico.spring.boot.starter.service</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
etc....

有谁知道问题是什么?

THX

1 个答案:

答案 0 :(得分:2)

尝试在两个服务器中使用-x选项运行mvn,也许settings.xml不一样