Problem
The Maven capability is not detected automatically on Windows Agent. It works normally on Linux hosts.
The issue is caused by the absence of the bin\mvn.bat script on later versions of Maven 3.3+. The bin\mvn.bat file is used by the Bamboo Remote Agent to detect the capability automatically. More information about that decision from Apache Maven can be found here:
Environment
- Apache Maven version 3.3 and later
- Bamboo Data Center
- Bamboo Remote Agents running on Windows
Steps to Reproduce
- Configure a Bamboo Agent on Windows
- Install Maven 3.3+, for example C:\Build\tools\apache-maven-3.9.9
- Include that location to the system PATH environment variable and add MAVEN_HOME pointing to that location
- Start the Bamboo Remote Agent
- Check if "Maven 3 (Maven 3.x) >> C:\Build\tools\apache-maven-3.9.9 >> Automatically detected" appears as and autodetected capability on the Agent Properties menu on the Bamboo Server UI
Expected Results
- Bamboo should recognise the Maven capability automatically on that Windows Remote Agent
Actual Results
- No capabilities are detected
Workaround
- Option 1: Use Maven 3.2 or earlier
- Option 2: On your latest MAVEN_HOME copy the contents of the bin\mvn.cmd to bin\mvn.bat and restart the Remote Agent
Notes
Maven capability is not being detected automatically on Windows Remote Agents
Problem
The Maven capability is not detected automatically on Windows Agent. It works normally on Linux hosts.
The issue is caused by the absence of the bin\mvn.bat script on later versions of Maven 3.3+. The bin\mvn.bat file is used by the Bamboo Remote Agent to detect the capability automatically. More information about that decision from Apache Maven can be found here:
Environment
- Apache Maven version 3.3 and later
- Bamboo Data Center
- Bamboo Remote Agents running on Windows
Steps to Reproduce
- Configure a Bamboo Agent on Windows
- Install Maven 3.3+, for example C:\Build\tools\apache-maven-3.9.9
- Include that location to the system PATH environment variable and add MAVEN_HOME pointing to that location
- Start the Bamboo Remote Agent
- Check if "Maven 3 (Maven 3.x) >> C:\Build\tools\apache-maven-3.9.9 >> Automatically detected" appears as and autodetected capability on the Agent Properties menu on the Bamboo Server UI
Expected Results
- Bamboo should recognise the Maven capability automatically on that Windows Remote Agent
Actual Results
- No capabilities are detected
Workaround
- Option 1: Use Maven 3.2 or earlier
- Option 2: On your latest MAVEN_HOME copy the contents of the bin\mvn.cmd to bin\mvn.bat and restart the Remote Agent