Cannot Create Plan Using Maven POM

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

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

The following error occurs:

1 2 3 4 5 6 7 8 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

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.