Trouble building Bamboo 4.0 from Source

jmccarty August 27, 2012

In order to do some plugin developement, I downloaded the Bamboo 4.0 source from my.atlassian.com. However there is an issue with the build scripts that prevents the build from finishing. I receive the following error:

[INFO] ------------------------------------------------------------------------

[INFO] Building Atlassian Bamboo REST plugin

[INFO] task-segment: [clean, package]

[INFO] ------------------------------------------------------------------------

[INFO] [clean:clean]

Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.pom

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:pom:2.6.0-SEC2' in repository atlassian-proxy (https://m2proxy.atlassian.com/re

pository/public)

Downloading: https://maven.atlassian.com/repository/m1//com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.pom

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:pom:2.6.0-SEC2' in repository atlassian-m1-repository (https://maven.atlassian.

com/repository/m1/)

Downloading: http://repo1.maven.org/maven2/com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.pom

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:pom:2.6.0-SEC2' in repository central (http://repo1.maven.org/maven2)

Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.jar

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.0-SEC2' in repository atlassian-proxy (https://m2proxy.atlassian.com/re

pository/public)

Downloading: https://maven.atlassian.com/repository/m1//com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.jar

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.0-SEC2' in repository atlassian-m1-repository (https://maven.atlassian.

com/repository/m1/)

Downloading: http://repo1.maven.org/maven2/com/atlassian/plugins/rest/atlassian-rest-common/2.6.0-SEC2/atlassian-rest-common-2.6.0-SEC2.jar

[INFO] Unable to find resource 'com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.0-SEC2' in repository central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

Missing:

----------

1) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.0-SEC2

Try downloading the file manually from the project website.

Then, install it using the command:

mvn install:install-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.0-SEC2 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.0-SEC2 -Dpackaging=jar -Dfile=/path/to/file -

Durl=[url] -DrepositoryId=[id]

Path to dependency:

1) com.atlassian.bamboo.plugins:atlassian-bamboo-plugin-rest:jar:4.0

2) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.0-SEC2

----------

1 required artifact is missing.

for artifact:

com.atlassian.bamboo.plugins:atlassian-bamboo-plugin-rest:jar:4.0

from the specified remote repositories:

central (http://repo1.maven.org/maven2),

atlassian-m1-repository (https://maven.atlassian.com/repository/m1/),

atlassian-proxy (https://m2proxy.atlassian.com/repository/public)

I am not sure what the correct version to use for the REST api to resolve this issue.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
PiotrA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2012

Hello Justin,

I wonder if you could use not 4.0 sources, but something newer like 4.0.1 or 4.0.x - the reason I'm wondering is that if I recall correctly we had at some point released a Bamboo version that had borked source distribution. Maybe it was 4.0 and we fixed compilation problems with 4.0.1++?

jmccarty August 28, 2012

4.0.1 shares the same issue as 4.0. I would prefer to use 4.0.1 since it is currently what we have deployed but its look like that may not be possible.

TAGS
AUG Leaders

Atlassian Community Events