IDEA 2018 新版本功能翻译 (转载请注明)02 Maven

Maven Projects

Profiles

 

ProjectName  Lifecycle生命周期\ Plugins插件 \ Dependencies依赖

Lifecycle 生命周期

Clean     清理

Validate   

Compile  编译

Test         测试

Package  打包    

Verify    

扫描二维码关注公众号,回复: 2397715 查看本文章

Install      安装、部署

Site         站点

Deploy

Plugins      插件

Clean        清理

Compiler   编译

deploy

install        部署

jar

resources

site

surefire

Dependencies 依赖

Junit                 单元测试

 

 

说明

Maven Projects

头文件

-启动java程序  java.exe

-Dmaven.multiModuleProjectDirectory= 路径

-Dmaven.home=                       Maven 地址

-Dclassworlds.conf=                 Maven.配置    \maven3\bin\m2.conf

-javaagent:E:                       Idea的Java代理

-Dfile.encoding=UTF-8               文件编码设置

-classpath "                        类路径

–Didea.version=2018.1.4 compile    Idea编译版本

-f pom.xml                          生成项目信息描述文件  pom.xml

01  Compile     编译

[INFO] ------------------------------------------------------------------------

[扫描项目]               Scanning for projects...

[INFO] ------------------------------------------------------------------------

[构建项目]               Building ArtifactId Version

[INFO] ------------------------------------------------------------------------

[读取插件-读取资源]       maven-resources-plugin:3.0.2:resources (default-resources) @ qqqq

[按照编码格式,复制资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源文件夹]         skip non existing resourceDirectoryE:\software\q\src\main\resources

[读取插件-编译]          maven-compiler-plugin:3.7.0:compile (default-compile) @ qqqq

[重新编译模块]           Changes detected - recompiling the module!

[源文件生成目标文件]     Compiling 1 source file to [target\classes]

[INFO] ------------------------------------------------------------------------

[构建成功]               BUILD SUCCESS

 

02 Test           测试

[扫描项目] Scanning for projects...                                                                     

[INFO] ------------------------------------------------------------------------

[构建项目] Building qqqq 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[读取插件]           maven-resources-plugin:3.0.2:resources (default-resources)

[读取资源]           maven-resources-plugin:3.0.2:resources (default-resources) @ qqqq  

[根据编码,复制资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录]       skip non existing resourceDirectory E:\software\qqqq\src\main\resources

 

[读取插件-编译       maven-compiler-plugin:3.7.0:compile (default-compile) @ qqqq ---

[无更新-无需编译]    Nothing to compile - all classes are up to date

[测试资源]           maven-resources-plugin:3.0.2:testResources (default-testResources) @ qqqq  

[根据编码,复制资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录]      skip non existing resourceDirectory E:\software\qqqq\src\test\resources

 

[测试编译]      maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ qqqq ---

[无需编译]      Nothing to compile - all classes are up to date

[surefire]      maven-surefire-plugin:2.20.1:test (default-test) @ qqqq

[INFO] -------------------------------------------------------

[INFO]  T E S T S

[INFO] -------------------------------------------------------

[运行测试] Running qqq.AppTest

[测试] 运行\失败\错误\跳过\耗时

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 s - in qqq.AppTest

[结果集] Results:

[测试] 运行\失败\错误\跳过

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

[INFO] ------------------------------------------------------------------------

[构建成功] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

03 Install      注册\部署              [至服务器]

[扫描项目] Scanning for projects...                                                           

[INFO] ------------------------------------------------------------------------

[构建项目] Building qqqq 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[读取资源]               maven-resources-plugin:3.0.2:resources (default-resources) @ qqqq  

[按照编码格式,复制资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录]        skip non existing resourceDirectory E:\software\qqqq\src\main\resources

[编译]                  maven-compiler-plugin:3.7.0:compile (default-compile) @ qqqq  

[无需编译]              Nothing to compile - all classes are up to date

[资源测试]              maven-resources-plugin:3.0.2:testResources (default-testResources)  

[按照编码格式,复制资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录]        skip non existing resourceDirectory E:\software\qqqq\src\test\resources

[编译]                maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ qqqq

[重新编译模块]        Changes detected - recompiling the module!

[生成目标文件]        Compiling 1 source file to E:\software\qqqq\target\test-classes

[读取插件-surefire]   maven-surefire-plugin:2.20.1:test (default-test) @ qqqq ---

[INFO] -------------------------------------------------------

[测试]  T E S T S

[INFO] -------------------------------------------------------

[项目应用测试] Running ProjectName.AppTest

[测试情况]   运行\失败\错误\跳过\消耗时间

 

[结果]   Results:

[测试情况]   运行\失败\错误\跳过\消耗时间

[读取插件-jar]           maven-jar-plugin:3.0.2:jar (default-jar) @ ProjectName ---

[构建归档文件]           Building jar: E:\software\ ProjectName \target\ ProjectName-1.0.jar

[读取插件-install部署]   maven-install-plugin:2.5.2:install (default-install) @ ProjectName

[目标归档文件发送至仓库] Installing[jar] to [repository]

[项目信息文件发送至仓库] Installing [pom.xml] to [repository]

[INFO] ------------------------------------------------------------------------

[构建成功] BUILD SUCCESS

04 clean           清理

[扫描项目] Scanning for projects...   

[INFO]-----------------------------------------------------------------------                                                                

[构建项目]         Building ArtifactId Version-SNAPSHOT

[INFO]-----------------------------------------------------------------------

[读取插件-清理]    maven-clean-plugin:3.0.0:clean (default-clean) @ qqqq

[删除目标文件]     Deleting E:\software\qqqq\target

[INFO]-----------------------------------------------------------------------

[构建成功] BUILD SUCCESS  

05package     打包                          【至项目】

[扫描项目] Scanning for projects...                                                                      

[INFO] ------------------------------------------------------------------------

[构建项目] Building qfcommon 1.0

[INFO] ------------------------------------------------------------------------

[读取插件-读取资源]      maven-resources-plugin:3.0.2:resources (default-resources) @ qfcommon

[按照编码格式,拷贝资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录]           skip non existing resourceDirectory E:\software\FatherProject\qfcommon\src\main\resources

[读取插件-编译]          maven-compiler-plugin:3.7.0:compile (default-compile) @ qfcommon

[更改检查,重构模块]     Changes detected - recompiling the module!

[生成目标文件-源文件]    Compiling 2 source files to [\target\classes]

[读取插件-测试资源]      maven-resources-plugin:3.0.2:testResources (default-testResources)

[按照编码格式,拷贝资源] Using 'UTF-8' encoding to copy filtered resources.

[退出资源目录-测试资源]  skip non existing resourceDirectory \test\resources

[读取插件-测试编译]      maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @

[更改检测-重构模块]      Changes detected - recompiling the module!

[生成目标文件-测试文件]  Compiling 1 source file to [\target\test-classes]

[????? ]            maven-surefire-plugin:2.20.1:test (default-test) 

[INFO] -------------------------------------------------------

[INFO]  T E S T S

[INFO] -------------------------------------------------------

[INFO] Running com.qf.service.AppTest

[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.qf.service.AppTest

[INFO] Results:

[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[读取插件-xxx] --- maven-jar-plugin:3.0.2:jar (default-jar) @ qfcommon ---

[构建归档文件] Building jar: E:\software\FatherProject\qfcommon\target\qfcommon-1.0.jar

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

 

  

 

猜你喜欢

转载自blog.csdn.net/ddhmbbklyk2018/article/details/81183529
今日推荐