Cannot Create Plan Using Maven POM

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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)

Cause

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

Resolution

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

Last modified on Jun 13, 2013

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.