New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: BAM-952
Type: Support Request Support Request
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Chaimungkalanont [Atlassian]
Reporter: Andrew Perepelytsya
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Bamboo

Bamboo uses older m2 version even when maven 2.0.5 builder configured for the plan

Created: 02/Mar/07 01:02 PM   Updated: 03/May/07 06:17 AM
Component/s: Builders (Other)
Affects Version/s: 1.0
Fix Version/s: 1.1

Time Tracking:
Not Specified

Issue Links:
Reference
 

Internal Priority: 2. High
Participants: Andrew Perepelytsya and Mark Chaimungkalanont [Atlassian]
Since last comment: 1 year, 17 weeks ago
Company: gmail.com (Find related issues)
Internal Work Bucket: Info Gathering
Number of comments: 5
Labels:


 Description  « Hide
We've specified an addition Maven 2-type builder pointing to the Maven 2.0.5 installation on our server. Maven 2.0.4 failed to resolve dependencies properly in a complex build resulting in the dependency being excluded at all. This produced compilation errors (e.g. in JMS transport module in our case).

Upgrading to Maven 2.0.5 fixed the problem and it works fine from the command line and for our current build on the Luntbuild server. However, Bamboo still seems to be using an older maven version failing to compile the module. I have confirmed the plan is using maven 2.0.5.

The error can be reproduced at http://svn.codehaus.org/mule/trunk/mule/ as of r5398 , the JMS transport will be the first to fail the compilation when run from the root of the project.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Mark Chaimungkalanont [Atlassian] added a comment - 05/Mar/07 05:19 PM
Andrew,

Could you have a look in the "Logs" tab for the build that should be using 2.0.5. The first lines of the log should display exactly what command Bamboo is running. Is it trying to use 2.0.5 there?

Is there MAVEN2_HOME or a M2_HOME that may be pointing to the old Maven?

We'll try to reproduce it locally here and see if we can find out anything.

Cheers

Mark C


Andrew Perepelytsya added a comment - 05/Mar/07 05:55 PM
Mark,

It's using m2.0.5. There is no preconfigured M2_HOME for the user Bamboo is running under. There is however, another maven2 builder in Bamboo configured, using m2.0.4, if that matters.

Andrew


Mark Chaimungkalanont [Atlassian] added a comment - 07/Mar/07 05:45 PM
Andrew,

This is very strange. In the logs for each build there should be

Starting to build 'Confluence - Unit Tests'
... running command line: /opt/java/tools/maven2/bin/mvn clean test -Pcore,bamboo
... in : /opt/bamboo/xml-data/build-dir/CONF-MAIN
... using java: /usr/java/j2sdk/
... using environment variables: MAVEN_OPTS=-Xmx256M

which specifies exactly which executable is being run. (in the above case /opt/java/tools/maven2/bin/mvn). So if you've made sure that this is already pointing to 2.0.5, then I'm not 100% sure what may be going on here.

If you could run your Maven target and append the "-X" flag, which should output the version of the Maven executable, that may give us information. Could you attach the log (from the log tab of your build) to this issue after running it was the -X flag?

Cheers,

Mark C


Mark Chaimungkalanont [Atlassian] added a comment - 01/May/07 07:51 AM
Andrew,

Is this still a problem for you? Did you get any chance to run the debugging Maven command? If so, can you please attach the output to this issue?

Otherwise, we might close the issue.

Cheers,

Mark C


Mark Chaimungkalanont [Atlassian] added a comment - 03/May/07 06:17 AM
Any possible problems should now be avoided as we explicitly override MAVEN_HOME variable when running though Bamboo