Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install and configure maven, ant (Jenkins)

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report