How to configure Maven installation in Jenkins per individual Slave node?

后端 未结 4 1527
长情又很酷
长情又很酷 2021-01-01 12:03

Symptom

If I create a Maven job in Jenkins (New Item => Maven project, using the maven plugin) with all defaults and run it, I get this error:

4条回答
  •  春和景丽
    2021-01-01 12:52

    If you do NOT add Maven to the Master configuration and you just install it on every slave with their own possibly different environment variables (example with version 3.2.5)

    M2_HOME=C:\apache-maven-3.2.5
    M2=C:\apache-maven-3.2.5\bin
    Path+=;C:\apache-maven-3.2.5\bin
    

    then every Jenkins slave will just use Maven with local settings.

提交回复
热议问题