I am attempting to build a JIRA plugin with Bamboo. I have created my build plan and pointed the Maven 2 Capability for Bamboo to the one bundled with the Atlassian SDK.
I am able to build the plugin when using the "atlas-mvn clean test" from the command line. When running 'clean test' in the bamboo task - i get the following error messages.
Could not find test result reports in the D:\bamboo-home\xml-data\build-dir\PROD-AG-JOB1 directory. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) jta:jta:jar:1.0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.cprime.jira.widget:burn-up:atlassian-plugin:1.0-SNAPSHOT 2) com.atlassian.jira:jira-core:jar:6.1 3) jta:jta:jar:1.0.1 2) jndi:jndi:jar:1.2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jndi -DartifactId=jndi -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jndi -DartifactId=jndi -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.cprime.jira.widget:burn-up:atlassian-plugin:1.0-SNAPSHOT 2) com.atlassian.jira:jira-core:jar:6.1 3) jndi:jndi:jar:1.2.1 ---------- 2 required artifacts are missing. for artifact: com.cprime.jira.widget:burn-up:atlassian-plugin:1.0-SNAPSHOT from the specified remote repositories: atlassian-plugin-sdk (file://${env.ATLAS_HOME}/repository), central (http://repo1.maven.org/maven2), atlassian-public (https://maven.atlassian.com/repository/public) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch
Community moderators have prevented the ability to post new answers.
I found a solution/workaround:
After this the errors went away. Presumably this would work for all maven builds missing these dependencies...?
Did you ever find a solution for this issue?
I imported a mavenized groovy script project into eclipse with m2e and ended up missing these exact two artifacts.
Querying maven central for jta reveals these two possibilities:
Querying maven central for jndi revealse this candidate:
I tried downloading the javax.* artifacts manually, with the plan of "mvn install:install-file" those artifacts in the local repository, with a modified groupId.
However the javax.* weren't downloadable (jta:jta:jar:1.0.1b depended on javax.transaction:jta:jar:1.0.1B which wasn't downloadable from maven central) so that approach failed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.