First, install and configure Maven
1. Unzip the Apache-maven compressed package uploaded by the TA.
2. Configuring Maven_home Environment variables
First, modify the ". Bash_profile" file to edit the file in the terminal input "vim. Bash_profile" and add "/bin" after "Maven_home" according to the experimental requirements. Results
Then, enter "source. Bash_profile" To make the configuration file effective.
3. Enter "Mvn-version" in the terminal to check if the configuration is successful.
MAVEN configuration succeeded.
4. Create a MAVEN project
First, open IntelliJ idea and check if IntelliJ idea supports maven:
, you can see the Maven tab, stating that IntelliJ idea supports the creation of MAVEN projects.
Then, create a new MAVEN project:
Click: Next
Input GroupID and Artifactid
Edit the Pom.xml file to add JUnit dependencies.
Second, install SVN server and client.
Previously, Git was installed in the group lesson, so skip the experiment in this step.
The process of installing Git has been documented in detail in the following URLs, which are not repeated here.
Address: http://git.oschina.net/moonfire/computer-composition-principle-2013-person/wikis/3013212086- Zhao Junting-First time assignment -15.10.11
Third, install and configure Jenkins
1. Follow the experimental instructions: put Jenkins.war into Tomcat's WebApp directory, launch tomcat: Enter into the Tomcat-apache directory, enter in the terminal: "bin/startup.sh". Access Http://127.0.0.18080/jenkins. The results are as follows:
2. Download and install git Plugin and Github Plugin: Click Manage Plugins on the left of system management.
The installation interface is as follows:
3. Click System settings on the left side of system management:
To configure the JDK's home directory:
Configure MAVEN's home directory and Git's file path:
4. Create a new Integration task:
First, create a new MAVEN project
Enter the URL for git:https://github.com/CindyZJT/lab1.git Click Save, Build now. Results
The first failure is due to less uploading of files. After re-add commit, error resolved, upload succeeded.
Software project Management hw2-Continuous Integration experiment