Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

203 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you