IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25928

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

      1. Configure a Bamboo Agent on Windows
      2. Install Maven 3.3+, for example C:\Build\tools\apache-maven-3.9.9
      3. Include that location to the system PATH environment variable and add MAVEN_HOME pointing to that location
      4. Start the Bamboo Remote Agent
      5. 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

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Bamboo Data Center'
            1. Bamboo Data Center
            2. BAM-25928

            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

                1. Configure a Bamboo Agent on Windows
                2. Install Maven 3.3+, for example C:\Build\tools\apache-maven-3.9.9
                3. Include that location to the system PATH environment variable and add MAVEN_HOME pointing to that location
                4. Start the Bamboo Remote Agent
                5. 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

                        661435e617fd Vani
                        73868399605e Eduardo Alvarenga
                        Affected customers:
                        0 This affects my team
                        Watchers:
                        1 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                            661435e617fd Vani
                            73868399605e Eduardo Alvarenga
                            Affected customers:
                            0 Vote for this issue
                            Watchers:
                            1 Start watching this issue

                              Created:
                              Updated:
                              Resolved: