turn:
Eclipse ------ how the project will be compiled and packaged by maven
Right-click on the project "" "Click Debug As" "" Click Maven install compile the chart after successful compilation
2. Right-click the project "" "Click Debug As" "" Click Maven build will pop up a dialog box as shown below, enter clean compile package in the Goals, then click debug it
Note:
1 . First you have installed the eclipse Maven
2. Figure I must appear before the next step BUILD SUCCESS
Reprinted: HTTPS: // jingyan.baidu.com/article/295430f1e7c4b30c7e005095.html
。。。。。
Ultra-detailed: eclipse maven compile the project
Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Eclipse maven commonly used commands
Project Right -> run as run mode, select Maven build;
Common Goals commands are as follows:
clean 清除编译
compile 编译
test 编译并测试
install 打包并发送到本地仓库
package 打包成jar包,不会发送到本地仓库
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
Set Maven build environment 1.8
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14