+ /usr/local/maven/bin/mvn package -DskipTests -f /var/jenkins_home/workspace/ChinaskillProject
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.piggymetrics:config:1.0.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 14, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:monitoring:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:registry:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:gateway:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:auth-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:account-service:1.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:statistics-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:notification-service:1.0.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
@
[ERROR] The build could not read 8 projects -> [Help 1]
[ERROR]
[ERROR] The project com.piggymetrics:config:1.0.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/config/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:config:1.0.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 14, column 10: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:monitoring:0.0.1-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/monitoring/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:monitoring:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:registry:0.0.1-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/registry/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:registry:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:gateway:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/gateway/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:gateway:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:auth-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/auth-service/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:auth-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:account-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/account-service/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:account-service:1.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10: Unknown host repo.maven.apache.org -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:statistics-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/statistics-service/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:statistics-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.piggymetrics:notification-service:1.0.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/notification-service/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.piggymetrics:notification-service:1.0.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Jenkins 中文社区
没联网的情况下,需要配置一个私服,不然maven打包时不知道依赖的jar包去哪里下载。联网的情况下它会自动去中央仓库下载。建议熟悉一下maven的jar管理模式。
1、jenkins打包.如果打包命令没有额外设置,会根据jenkins引人的maven插件中的setting.xml配置,决定是否需访问在线maven地址,以及在线maven的地址
2、解决方式,若仓库中已经包含相应的jar,则在打包时指定maven离线即可
mvn clean package --offline -Dmaven.test.skip=true