Unable to Execute/Import Bamboo Spec from Exports

I am getting started with Bamboo specs and I've run into a problem pretty much immediately.   IntelliJ reports a ton of libraries missing:

Error:(5, 60) java: package com.atlassian.bamboo.specs.api.builders.notification does not exist
Error:(6, 60) java: package com.atlassian.bamboo.specs.api.builders.notification does not exist
Error:(7, 58) java: package com.atlassian.bamboo.specs.api.builders.permission does not exist
Error:(8, 58) java: package com.atlassian.bamboo.specs.api.builders.permission does not exist
Error:(9, 58) java: package com.atlassian.bamboo.specs.api.builders.permission does not exist
Error:(18, 66) java: package com.atlassian.bamboo.specs.api.builders.plan.configuration does not exist
Error:(19, 66) java: package com.atlassian.bamboo.specs.api.builders.plan.configuration does not exist
Error:(21, 56) java: package com.atlassian.bamboo.specs.builders.notification does not exist

 I cannot find these jars on the web and I am unable to add them as Maven dependencies.  What is the correct way to resolve these dependencies?  I am working from a project generated via the Maven command in Atlassian's documentation here:   

https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-specs-894743911.html  

Running Bamboo 6.1, Windows 10, JDK 8

 

1 answer

0 vote

You are missing com.atlassian.bamboo:bamboo-specs-api:6.1.0 dependency, this one:  https://maven.atlassian.com/#nexus-search;gav~com.atlassian.bamboo~bamboo-specs-api~6.1.0~~

your generated pom.xml should look like:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-parent</artifactId>
<version>6.1.0</version>
</parent>

<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<!-- run 'mvn test' to perform offline validation of the plan -->
<!-- run 'mvn -Ppublish-specs' to upload the plan to your Bamboo server -->
</project>

can you try running

mvn clean install

to see if maven can download those dependencies?

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,561 views 0 6
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