Hi I'm using Bamboo Specs for creating plans in automated manner. So how can I add maven 3.x configuration in Tasks using Java code.
This can be achieved with the Task: Maven Bamboo Specs syntax for Java, for example:
<span>MavenTask</span> <span>mavenTask</span> <span>=</span> <span>new</span> <span>MavenTask</span><span>()</span> <span>.</span><span>goal</span><span>(</span><span>"clean install"</span><span>)</span> <span>.</span><span>hasTests</span><span>(</span><span>false</span><span>)</span> <span>.</span><span>version3</span><span>()</span> <span>.</span><span>jdk</span><span>(</span><span>"JDK 1.8"</span><span>)</span> <span>.</span><span>executableLabel</span><span>(</span><span>"Maven 3.2"</span><span>);</span>
Hi,
Thanks for the assistance. When I'm using this it throws error like
Maven task: Can't find executable by label: 'Maven 3.x'. Available values: []
How can I resolve this in code?
The best way is to define executables from the UI as described here.
Go to *Overview -> Executables* and check if the respective agent's Maven installation location is defined right.
Thanks, it works!!! Is there any alternative to set executables from code?
Hello, does Bamboo have a plugin for the Laravel framework?
It looks like you're new here. Sign in or register to get started.