在Linux环境下配置Jenkins执行时,发现不能执行Maven,这个比较搞了。

 A Maven installation needs to be available for this project to be built.Either your server has no M

 

所以就网搜了下。

解决方案如下:

https://stackoverflow.com/questions/28387142/how-to-configure-maven-installation-in-jenkins-per-individual-slave-node

 

For me, the solution was to go to Manage Jenkins -> Global Tool Configuration, and set up maven there. You can access this via /configureTools (ex: http://your-ip:8080/jenkins/configureTools )

Example: Maven installations

  • Name: my_maven_3.3.9
  • MAVEN_HOME: /usr/share/maven

Additional configurations for other common tools at /configureTools :

Git installations

  • Name: my_git_2.11.0
  • Path to Git executable: /usr/bin/git

JDK installations

  • Name: my_jdk_1.8.0_161
  • JAVA_HOME: /opt/jdk/jdk1.8.0_161

相关文章:

  • 2021-05-07
  • 2022-02-26
  • 2021-05-17
  • 2022-12-23
  • 2021-04-18
  • 2021-04-19
  • 2021-05-22
猜你喜欢
  • 2021-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案