We are evaluating Bamboo as part of our OnDemand trial and are running up against an issue wth Bamboo.
I have imported one of our existing projects into SVN, and have created a build plan to build the project using Maven 2.2.x.
However, the build is failing because Maven cannot find a number of dependencies that reside in our own Maven repository. Normally, I would just point the settings.xml file to our repo, but cannot figure out a way to do this with OnDemand Bamboo and its Elastic instances.
Is this even possible?
Thanks!
Hey kyanring,
This isn't possible by default with Bamboo OnDemand's custom images. We do plan on making this available in the future though - please see this feature request:
https://studio.atlassian.com/browse/JST-2305
This may be possible with a custom-defined elastic image that you point Bamboo to, but we wouldn't be able to support it if you ran into problems.
-Simon
The issue you mentioned (now https://jira.atlassian.com/browse/AOD-2305) is about offering a Maven repository as part of the OnDemand suite. That's definitely nice, but an intermediate step would be to point a Bamboo plan to our own Maven repository instead. Is that planned?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It isn't planned for the immediate future... if we're going to implement it it would probably look like the feature request I linked earlier. Sorry, it's too far out to really know :(
Keep a watch and comment on that feature request though. The more votes and comments we get on it the more likely it will be planned for a future release.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is really no way to set up the maven settings.xml for Bamboo OnDemand? This makes Bamboo useless to me. If I can't get dependancies from our own maven repo, then I can't build my products. Additionally, I can't just put then info in our pom, because there are credentials to log into our maven repo that are better suited to live in the settings.xml. Also, I agree the referenced JIRA issue doesn't solve this issue at all. Even if you make a hosted maven repo available in OnDemand, you still have to be able to tell bamboo to configure maven to use it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So after I posted my comment, I discovered that you can create a custom elastic image. Basic steps:
That was basically all I had to do and now when I build my maven projects, they get their dependancies from our own nexus repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The other solution to this is using maven command line options. In your maven task add preferred option to the Goals field, then Maven on the next run should pick the options from the configuration file and use proper repositories. Note that you don't need to put absolute path there, path relative to the build directory should be enough.
$mvn --help
usage: mvn [options][<goal(s)>][<phase(s)>]
Options:
...
-gs,--global-settingsAlternate path for the global settings file
...
-s,--settingsAlternate path for the user settings file
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.