Bamboo: import a Maven project not using settings.xml ?!

Hi, I have a bamboo server behind a proxy. Maven on this server is configured to use our nexus repository as configured in the system wide settings.xml. But if I try to import a maven project. It fails trying to connect to extern maven repositories. So it seems to me it doesn't take the settings.xml into account... If I create the plan manually, setting a maven task, it builds ok. Is it the normal behavior ? thanks.

2 answers

This widget could not be displayed.

Generally in this case I would add a profile to the settings.xml on your bamboo server that specifies to use your nexus repository. Then if you are building other maven built projects that you don't want to change their pom.xml (i.e adding your nexus repo in there as well) then just specify the profile in the build setup in bamboo for that project. i.e. -P ProfileName

It should then find the profile defined in your settings.xml and use the maven servers there to fetch dependencies

Yes, This is more or less what I do.

But here, I'm talking about the import of a Maven project feature .

When I point the import process to our maven project (which builds fine when creating the maven task manually), the import process fails and in the errors I see it tried to connect directly to maven cerntral and other external maven repositories.

The question is then, why doesn't he use the maven settings ?

This widget could not be displayed.

Specifically, use an EBS Snapshot attached to your image, as described here:
https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS

It even automatically will copy over the .m2/settings.xml for you.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 10 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

52 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you