maven 3.1 executable not available in bamboo 5.5.1?
Asked by MarianoG:

Hi there.

Need to add or enable Maven 3.1 within my Bamboo 5.5.1 installation as my task requires it:

\[ERROR\] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) on project: The plugin com.github.eirslett:frontend-maven-plugin:0.0.23 requires Maven version 3.1.0

Is that possible? Thanks!


Answers:
author: ThiagoBomfim
body: Hi Mariano

I think what you're after is to define/add a new server capability pointing to Maven so the agent will be ready to run the task. Have a look at the doc below:

* [Defining a new executable capability](https://confluence.atlassian.com/display/BAMBOO/Defining+a+new+executable+capability)

Best,  
Thiago  

comments: author: ThiagoBomfim
body: Hi Mariano:You need to install Maven 3.1.1 on the system where the agent is running and then add it as a remote capability. To install this version of Maven: <http://maven.apache.org/docs/3.1.1/release-notes.html>


author: rsperafico
body: Hello Mariano,

Thank you for your question.

First of all, you need to determine where the build will be running on, if Bamboo server or Bamboo remote agent. Once you determine that, please go to the Bamboo box where the build will be running on and download and install the Maven you require.

Lets say your build requires Maven v3.3.3, latest version available, at present:

```
# download Maven v3.3.3wget ftp://mirror.reverse.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz?# extract Maven v3.3.3tar -zxvf apache-maven-3.3.3-bin.tar.gz
```

Now, go to Bamboo and add the Maven above as a capability to the agent will be running your build:

* if **Bamboo server** , please add the capability under (*Bamboo administration \>\> Build resources \>\> Server capabilities*)
* if **Bamboo remote agent** , please add the capability under (*Bamboo administration \>\> Build resources \>\> Agents \>\> \<your agent\> \>\> Capabilities*) tab

Please, add the capability as per following:

bamboo.maven.capability.png

Please, notice in ***Path*** I have provided the location where ***apache-maven-3.3.3-bin.tar.gz*** has been extracted, in this case under (*/opt/maven*).

Now, go to your ***Plan configuration*** and add a ***Maven 3.x*** task where you will be able to select from the ***Executable*** drop-n-down menu the just added Maven (*Maven 3.3.3*) executable.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support  
[](https://community.atlassian.com/t5/Bamboo-questions/maven-3-1-executable-not-available-in-bamboo-5-5-1/qaq-p/202171?attachment-id=10224){#link_11725a3906218b}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6413/1/bamboo.maven.capability.png){#display_11725a3906218b_0}


author: MarianoG
body: Thanks Thiago.

I followed that documentation and the available Maven executables are 1.x 2.x and 3.x. I'd need 3.1 or higher.

So, how can I make 3.1 available?

Thanks!


Tags: bamboo-administration

bamboo-app

maven