First, the configuration commands
(1) Common Commands
name | base direct |
Goals |
Explanation |
mvn clean |
$ {Project_loc} |
clean |
Clear target directory (target directory) |
mvn clean install |
$ {Project_loc} |
clean install |
Construction of the workpiece into the local repository |
mvn clean package |
$ {Project_loc} |
clean package |
Jar file is generated under the project |
mvn tomcat7-run-war |
$ {Project_loc} |
tomcat7:run-war |
Start tomcat (pom.xml file to add tomcat plug-in) |
mvn clean test |
$ {Project_loc} |
clean test |
Run unit test project |
mvn clean deploy |
$ {Project_loc} |
clean deploy |
Construction of a workpiece to be deployed to the remote repository |
(2) disposed in the eclipse
(3) will be configured to add command
Second, run the business program
After the applications are packaged only in the target to find the directory appStart.bat script to start the program, more trouble.
By the following configuration, make menu command, combined Maven packaging commands, automate, reduce manual operation.
(1) command
Configurator startup command |
|
Name |
appStart |
Location |
C:\Windows\System32\cmd.exe |
Working Directory |
$ {Project_loc} |
Arguments |
/C start ${project_loc}\target\${project_name}\bin\appStart.bat |
Configure the program to Debug Start command mode |
|
Name |
appDebug |
Location | C:\Windows\System32\cmd.exe |
Working Directory | $ {Project_loc} |
Arguments | /C start ${project_loc}\target\${project_name}\bin\appDebug.bat |
(2) Configuration