99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

Maven包項(xiàng)目

2018-01-09 19:18 更新

Maven教程 - Maven包項(xiàng)目


因?yàn)槲覀円呀?jīng)創(chuàng)建了一個(gè)空項(xiàng)目,我們可以去C:\\ mvn_test \\ xmlFileEditor目錄并執(zhí)行以下mvn命令來(lái)編譯和打包項(xiàng)目。

c:\mvn_test\xmlFileEditor>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xmlFileEditor 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
...
...
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to c:\mvn_test\xmlFileEditor\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xmlFileEditor ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory c:\mvn_test\xmlFileEditor\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xmlFileEditor ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to c:\mvn_test\xmlFileEditor\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ xmlFileEditor ---
[INFO] Surefire report directory: c:\mvn_test\xmlFileEditor\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.java2s.ide.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ xmlFileEditor ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.354 s
[INFO] Finished at: 2014-11-03T16:14:01-08:00
[INFO] Final Memory: 25M/369M
[INFO] ------------------------------------------------------------------------
c:\mvn_test\xmlFileEditor>



注意

我們建立了我們的項(xiàng)目并創(chuàng)建了最終的jar文件。

null

從上面的命令我們可以看到兩個(gè)目標(biāo)可以結(jié)合起來(lái)一個(gè)命令。

首先,我們可以用 clean goal清除目標(biāo)目錄然后將項(xiàng)目構(gòu)建輸出打包為具有 package 目標(biāo)的jar。

打包的jar在xmlFileEditor \\ target文件夾中可用為 xmlFileEditor-1.0-SNAPSHOT.jar 。

測(cè)試報(bào)告可在xmlFileEditor \\ target \\ surefire-reports文件夾中找到。

Maven編譯源代碼文件,然后測(cè)試源代碼文件。然后Maven運(yùn)行測(cè)試用例。 最后Maven創(chuàng)建了包。

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)