1つのjenkins(別名hudson)プラグインを開発し、チュートリアルに従い、コマンドの後にソースコードツリーを生成しようとしていmvn -cpu hpi:create
ます。
「mvnpackage」を実行すると、次のようなエラーが報告されます。
[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
私のネクサスサーバーからはmaven-enforcer-plugin:1.0
バージョンのみがありますが、この依存関係はデフォルトでjenkinsから生成されます、誰でも私がそれを解決するのを手伝ってくれますか?
- (方法)plugin-1.0バージョンに変更できますか?
- ネクサスサーバーに何を追加できますか
私はMavenの基本的な知識を持っています。