Cannot Create Plan Using Maven POM

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Unable to create plan using the project's pom.xml file.

The following error occurs:

2010-02-15 15:27:12,027 INFO [29333976@qtp-10711912-3] [AccessLogFilter] sw1 http://build.inteco.ch/admin/importMavenPlanExecutePomCheckout.action 171100kb
2010-02-15 15:27:18,486 ERROR [29333976@qtp-10711912-3] [FiveOhOh] 500 Exception was thrown.
java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method.
	at org.apache.maven.embedder.MavenEmbedder.createMavenSettings(MavenEmbedder.java:699)
	at org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:628)
	at com.atlassian.bamboo.ww2.actions.admin.ImportMavenPlanCheckoutPomAction.parsePom(ImportMavenPlanCheckoutPomAction.java:219)
	at com.atlassian.bamboo.ww2.actions.admin.ImportMavenPlanCheckoutPomAction.doExecute(ImportMavenPlanCheckoutPomAction.java:118)
	at com.atlassian.bamboo.ww2.BambooActionSupport.execute(BambooActionSupport.java:705)

原因

According to MNGECLIPSE-116 and MNGECLIPSE-124 the bamboo server needs a local m2 repository ~/.m2 in the user's HOME directory.

ソリューション

You can fix this issue by logging in as the user and run a maven build locally on the bamboo server.

Double check your M2_HOME environment variable. On a linux based system it is usually usr/share/maven

最終更新日 2013 年 6 月 13 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.