Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Bamboo Specs Failing With "cannot find symbol"

I started with a very simple plan with no jobs or tasks and that worked, but when I added tasks, I'm getting


"cannot find symbol" when you try to validate the spec file.


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project bamboo-specs: Compilation failure: Compilation failure:
[ERROR] /Users/thomasthi/source/adjudicationdocker/bamboo-specs/src/main/java/rxsense/[51,25] cannot find symbol
[ERROR] symbol: class Stage
[ERROR] location: class rxsense.PlanSpec
[ERROR] /Users/thomasthi/source/adjudicationdocker/bamboo-specs/src/main/java/rxsense/[52,39] cannot find symbol
[ERROR] symbol: class Job
[ERROR] location: class rxsense.PlanSpec
[ERROR] /Users/thomasthi/source/adjudicationdocker/bamboo-specs/src/main/java/rxsense/[54,49] cannot find symbol
[ERROR] symbol: class ScriptTask
[ERROR] location: class rxsense.PlanSpec
[ERROR] -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]



Plan Definition:

This was taken from the tutorial page.

Plan createPlan() { return new Plan(project(), "ContainerBuild", "PLAN") .description("Plan created from Bamboo Java Specs") .stages( new Stage("Stage 1") .jobs(new Job("Run", "RUN") .tasks( new ScriptTask().inlineBody("echo Hello world!")))); }




2 answers

I get the same error, straight from the tutorial page.  Haven't figured it out yet.

Turns out it's because the required imports aren't being made.

Make sure the src/main/java/tutorial/ file has the following added.



Additionally, I had to change the createPlan method to

public Plan createPlan() {

 I believe it was private before and mvn test complained.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 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