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 votes

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
Community showcase
Published an hour ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

15 views 0 1
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