English 中文(简体)
Jenkins(hudson)插件开发与maven enforcer插件:1.1-SNAPSHOT问题
原标题:Jenkins (hudson) plugin development meet maven-enforcer-plugin:1.1-SNAPSHOT issue

我尝试开发一个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有基本的了解。

最佳回答

我通过做两件事自己解决了这个问题。

1.添加了此处进入我的nexus repo组,除了教程

2.我的本地maven repo似乎也搞砸了,所以我可以清理它并从nexus重新加载。

它仍然使用<code>maven enforcer插件:pom:1.1-SNAPSHOT</code>插件。

希望它也能帮助你。

问题回答

暂无回答




相关问题
JavaFX with Maven [closed]

I recently started a JavaFX project, and I d like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven?

How to upload jar to respository?

I have jar files that cannot be found on Maven Central repository. I would like to add the jar so I can just include extra tag in my pom.xml file and other developer can use the jar. What are the ...

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. ...

Could Free Pascal benefit of something like Apache Maven?

Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it ...

Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn t seem to work.

Uploading a directory using sftp with Maven

How can I upload a directory - Eclipse update site - using sftp with public key authentication in Maven? For background information: I m using tycho to build an Eclipse plugin and want to get the ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java ...

热门标签