Why is my logging output getting swallowed running tasks?

When I run "mvn compiler:testCompile" at a command line for my project, I see errors:

C:\...>mvn compiler:testCompile

[INFO] Scanning for projects...


[INFO] ------------------------------------------------------------------------

[INFO] Building Personal Experience Portal

[INFO] task-segment: [compiler:testCompile]

[INFO] ------------------------------------------------------------------------

[INFO] [compiler:testCompile {execution: default-cli}]

[INFO] Compiling 673 source files to C:\...\test-classes

[INFO] ------------------------------------------------------------------------


[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

C:\....\VacationContainer.java:[540,15] cannot find symbol

symbol : variable LINK_LOCATOR

location: class page.helper....VacationContainer

However, when I do the same thing as a Maven task in a stage, I get no logging output ...

03-Feb-2012 09:49:38 Starting task 'Maven 2.x'
03-Feb-2012 09:49:38
Beginning to execute external process for build Static Analysis
... running command line:
... in: /data/remote-agent-data/xml-data/build-dir/../main
... using extra environment variables:
03-Feb-2012 09:49:39 Failing task since return code was -1 while expected 0
03-Feb-2012 09:49:39 Finished task 'Maven 2.x'

I also tried a <javac> from within an Ant task, and I get the same problem ... I only see "Failing task since return code was -1 while expected 0"

2 answers

0 vote

What result do you get if you export all these variables and run the same command line that Bamboo does?

the -1 would seem to mean that the command itself was unable to execute ... in this case because the directory path to the pom.xml was wrong

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,816 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