Install and configure maven, ant (Jenkins)
System (need to install and configure JDK first)
two。 Download maven http://maven.apache.org/download.cgi
3. Extract to disk C (no installation required)
4. Configure environment variables
4.1 user environment variable MAVEN_HOME (decompression path)
4.2 system environment variables
Verify whether the environment variable is configured successfully. Type mvn-version under the cmd command line and press enter. The following information indicates that the installation is successful.
2. Install and configure ant
Download http://ant.apache.org/ choose to download installation files
two。 Decompress to disk C.
3. Configure environment variables
3.1 configure user environment variables
3.2 configure the system environment variable C:\ apache-ant-1.9.9\ bin
3.3 configure the environment variable C:\ apache-ant-1.9.9\ lib
3.4 enter ant in cmd command mode, and the following message indicates that the installation and configuration is successful, because ant runs the build.xml file by default, which requires us to establish
View version: ant-version
Configure maven and ant in Jenkins
Enter Global Tool Configuration (Global tool configuration)
two。 To configure JDK, click add JDK
2.1 remove the tick next to the automatic installation
2.2 after removing the tick
2.3 enter an alias (for yourself, at will), and enter the path to JAVA_HOME (the path you configured earlier)
3. Configure ant
3.1 Click "add ant"
3.2 similarly, uncheck the "auto install" box
Enter an alias and ANT_HOME, and do not report an error
4. Configure maven
4.1 Click "add maven"
4.2 uncheck the box next to "automatic installation"
4.3 enter alias and MAVEN_HOME, and do not report an error
5. Click "apply", then click "save"