我尝试开发一个jenkins(又名hudson)插件,并遵循教程,并在mvn-cpu-hpi:create
命令后生成源代码树。
而当我做“mvn包”时,它会报告如下错误
[INFO] Building Unnamed - com.example.jenkins:redmine2:hpi:1.0-SNAPSHOT
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project s POM).
Project ID: org.apache.maven.plugins:maven-enforcer-plugin
Reason: Error getting POM for org.apache.maven.plugins:maven-enforcer-plugin from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact s metadata.
org.apache.maven.plugins:maven-enforcer-plugin:pom:1.1-SNAPSHOT
from the specified remote repositories:
nexus (http://maven.nexus.local:8888/nexus/content/groups/public)
for project org.apache.maven.plugins:maven-enforcer-plugin
从我的nexus服务器上,它有maven enforcer插件:只有1.0
版本,但这个依赖关系默认是从jenkins生成的,有人能帮我解决吗?
- (How) Can I change to plugin-1.0 version.
- what can I add in nexus server
我只是对maven有基本的了解。