利用maven进行项目管理

下面为maven项目管理的一个结构
首先pom是路径文件,我们在编译或是运行程序时调用到jdk或一些自己写的jar包时会需要指明物理路径,这里的pom是一样的道理,同时在maven的管理下多出来了一些仓库管理的扩展功能
从我们导入项目开始,maven根据pom.xml文件从远程仓库下载缺少的jar包依赖至本地仓库,以满足对外依赖,但是项目内部的各个模块之间的依赖无法满足
于是利用maven的install依次对各个模块进行编译、打包并部署到本地仓库
 
以module-policy模块为例
首先module-policy模块被所有次级模块的pom所继承的pom,被install到本地仓库
接下来policy-dao的pom为模块引入依赖(继承),项目被打成jar包,并部署于本地仓库
到了policy-client时,pom为模块引入依赖(继承),这个子pom同时引入了部署于本地仓库中的policy-dao.jar,项目被打成jar包,并部署于本地仓库
所有模块依次生成,构成整个项目(项目由多个模块组合而成,没有一个模块包含其他模块之说,模块本可以不分层,为了能够从外表上看出pom依赖的继承关系才如此排版)
模块的存在是相互独立的,在编译、运行时需要相互依赖(调用)
 
以下是项目的install日志
日志上显示了工程中每个项目依次的从起始到部署的一个过程
maven的package是将模块编译、打包于target下
clean是清除项目的target目录
install是将打包好的模块部署于本地仓库

"C:\Program Files\Java\jdk1.8.0_131\bin\java" -Dmaven.multiModuleProjectDirectory=D:\IdeaProjects\risk-sentry -Dmaven.home=D:\maven\apache-maven-3.5.0 -Dclassworlds.conf=D:\maven\apache-maven-3.5.0\bin\m2.conf "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\lib\idea_rt.jar=55640:D:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\bin" -Dfile.encoding=UTF-8 -classpath D:\maven\apache-maven-3.5.0\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2017.1.4 -s D:\maven\apache-maven-3.5.0\conf\fqgj\settings.xml -DskipTests=true install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] risk-sentry
[INFO] sentry-common
[INFO] sentry-infras
[INFO] sentry-modules
[INFO] module-policy
[INFO] policy-dao
[INFO] policy-client
[INFO] policy-server
[INFO] module-manage
[INFO] manage-dao
[INFO] manage-client
[INFO] manage-server
[INFO] sentry-admin
[INFO] admin-rest
[INFO] sentry-api
[INFO] api-rest
[INFO] api-biz
[INFO] policy-engine
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building risk-sentry 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ risk-sentry ---
[INFO] Installing D:\IdeaProjects\risk-sentry\pom.xml to E:\.m2\repository\com\fqgj\risk-sentry\1.0-SNAPSHOT\risk-sentry-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentry-common 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sentry-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-common\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-common\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sentry-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to D:\IdeaProjects\risk-sentry\sentry-common\target\classes
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[3,16] sun.misc.BASE64Decoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[4,16] sun.misc.BASE64Encoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[3,16] sun.misc.BASE64Decoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[4,16] sun.misc.BASE64Encoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[3,16] sun.misc.BASE64Decoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[4,16] sun.misc.BASE64Encoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[51,32] sun.misc.BASE64Encoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/utils/AESUtils.java:[67,31] sun.misc.BASE64Decoder是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/response/ApiOutput.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-common/src/main/java/com/fqgj/sentry/common/response/ApiOutput.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sentry-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-common\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sentry-common ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sentry-common ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ sentry-common ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-common\target\sentry-common-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sentry-common ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-common\target\sentry-common-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\sentry-common\1.0-SNAPSHOT\sentry-common-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-common\pom.xml to E:\.m2\repository\com\fqgj\sentry-common\1.0-SNAPSHOT\sentry-common-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentry-infras 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sentry-infras ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-infras\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-infras\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sentry-infras ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sentry-infras ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-infras\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sentry-infras ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sentry-infras ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ sentry-infras ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-infras\target\sentry-infras-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sentry-infras ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-infras\target\sentry-infras-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\sentry-infras\1.0-SNAPSHOT\sentry-infras-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-infras\pom.xml to E:\.m2\repository\com\fqgj\sentry-infras\1.0-SNAPSHOT\sentry-infras-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentry-modules 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sentry-modules ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\pom.xml to E:\.m2\repository\com\fqgj\sentry-modules\1.0-SNAPSHOT\sentry-modules-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building module-policy 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ module-policy ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\pom.xml to E:\.m2\repository\com\fqgj\module-policy\1.0-SNAPSHOT\module-policy-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building policy-dao 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ policy-dao ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\src\main\resources
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ policy-dao ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 36 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\target\classes
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-modules/module-policy/policy-dao/src/main/java/com/fqgj/sentry/policy/dao/impl/PcRuleDaoImpl.java: D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\src\main\java\com\fqgj\sentry\policy\dao\impl\PcRuleDaoImpl.java使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-modules/module-policy/policy-dao/src/main/java/com/fqgj/sentry/policy/dao/impl/PcRuleDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ policy-dao ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ policy-dao ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ policy-dao ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ policy-dao ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\target\policy-dao-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ policy-dao ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\target\policy-dao-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\policy-dao\1.0-SNAPSHOT\policy-dao-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-dao\pom.xml to E:\.m2\repository\com\fqgj\policy-dao\1.0-SNAPSHOT\policy-dao-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building policy-client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ policy-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ policy-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 25 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ policy-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ policy-client ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ policy-client ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ policy-client ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\target\policy-client-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ policy-client ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\target\policy-client-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\policy-client\1.0-SNAPSHOT\policy-client-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-client\pom.xml to E:\.m2\repository\com\fqgj\policy-client\1.0-SNAPSHOT\policy-client-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building policy-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ policy-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ policy-server ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ policy-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ policy-server ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ policy-server ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ policy-server ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\target\policy-server-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ policy-server ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\target\policy-server-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\policy-server\1.0-SNAPSHOT\policy-server-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-policy\policy-server\pom.xml to E:\.m2\repository\com\fqgj\policy-server\1.0-SNAPSHOT\policy-server-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building module-manage 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ module-manage ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\pom.xml to E:\.m2\repository\com\fqgj\module-manage\1.0-SNAPSHOT\module-manage-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building manage-dao 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ manage-dao ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\src\main\resources
[INFO] Copying 20 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ manage-dao ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\target\classes
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-modules/module-manage/manage-dao/src/main/java/com/fqgj/sentry/manage/dao/impl/McApplicationDaoImpl.java: D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\src\main\java\com\fqgj\sentry\manage\dao\impl\McApplicationDaoImpl.java使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-modules/module-manage/manage-dao/src/main/java/com/fqgj/sentry/manage/dao/impl/McApplicationDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ manage-dao ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ manage-dao ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ manage-dao ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ manage-dao ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\target\manage-dao.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ manage-dao ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\target\manage-dao.jar to E:\.m2\repository\com\fqgj\manage-dao\1.0-SNAPSHOT\manage-dao-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-dao\pom.xml to E:\.m2\repository\com\fqgj\manage-dao\1.0-SNAPSHOT\manage-dao-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building manage-client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ manage-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ manage-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ manage-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ manage-client ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ manage-client ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ manage-client ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\target\manage-client-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ manage-client ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\target\manage-client-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\manage-client\1.0-SNAPSHOT\manage-client-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-client\pom.xml to E:\.m2\repository\com\fqgj\manage-client\1.0-SNAPSHOT\manage-client-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building manage-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ manage-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ manage-server ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ manage-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ manage-server ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ manage-server ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ manage-server ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\target\manage-server-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ manage-server ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\target\manage-server-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\manage-server\1.0-SNAPSHOT\manage-server-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-modules\module-manage\manage-server\pom.xml to E:\.m2\repository\com\fqgj\manage-server\1.0-SNAPSHOT\manage-server-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentry-admin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sentry-admin ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-admin\pom.xml to E:\.m2\repository\com\fqgj\sentry-admin\1.0-SNAPSHOT\sentry-admin-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building admin-rest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ admin-rest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ admin-rest ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 100 source files to D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\target\classes
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-admin/admin-rest/src/main/java/com/fqgj/sentry/biz/pc/PolicySetBusiness.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-admin/admin-rest/src/main/java/com/fqgj/sentry/biz/pc/PolicySetBusiness.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ admin-rest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ admin-rest ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\target\test-classes
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-admin/admin-rest/src/test/java/com/fqgj/sentry/controller/mc/RestApplicationTest.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/sentry-admin/admin-rest/src/test/java/com/fqgj/sentry/controller/mc/RestApplicationTest.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ admin-rest ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ admin-rest ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\target\risk-admin.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.4.RELEASE:repackage (default) @ admin-rest ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ admin-rest ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\target\risk-admin.jar to E:\.m2\repository\com\fqgj\admin-rest\1.0-SNAPSHOT\admin-rest-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-admin\admin-rest\pom.xml to E:\.m2\repository\com\fqgj\admin-rest\1.0-SNAPSHOT\admin-rest-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentry-api 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sentry-api ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-api\pom.xml to E:\.m2\repository\com\fqgj\sentry-api\1.0-SNAPSHOT\sentry-api-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building api-rest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ api-rest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-rest\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-rest\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ api-rest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ api-rest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-rest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ api-rest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ api-rest ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ api-rest ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-api\api-rest\target\api-rest-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ api-rest ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-api\api-rest\target\api-rest-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\api-rest\1.0-SNAPSHOT\api-rest-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-api\api-rest\pom.xml to E:\.m2\repository\com\fqgj\api-rest\1.0-SNAPSHOT\api-rest-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building api-biz 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ api-biz ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-biz\src\main\resources
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-biz\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ api-biz ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ api-biz ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\sentry-api\api-biz\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ api-biz ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ api-biz ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ api-biz ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: D:\IdeaProjects\risk-sentry\sentry-api\api-biz\target\api-biz-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ api-biz ---
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-api\api-biz\target\api-biz-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\api-biz\1.0-SNAPSHOT\api-biz-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\sentry-api\api-biz\pom.xml to E:\.m2\repository\com\fqgj\api-biz\1.0-SNAPSHOT\api-biz-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building policy-engine 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ policy-engine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ policy-engine ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 27 source files to D:\IdeaProjects\risk-sentry\policy-engine\target\classes
[WARNING] /D:/IdeaProjects/risk-sentry/policy-engine/src/main/java/com/fqgj/sentry/policy/engine/resolver/Parser.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /D:/IdeaProjects/risk-sentry/policy-engine/src/main/java/com/fqgj/sentry/policy/engine/resolver/Parser.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ policy-engine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\IdeaProjects\risk-sentry\policy-engine\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ policy-engine ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ policy-engine ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ policy-engine ---
[INFO] Building jar: D:\IdeaProjects\risk-sentry\policy-engine\target\policy-engine-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ policy-engine ---
[INFO] Installing D:\IdeaProjects\risk-sentry\policy-engine\target\policy-engine-1.0-SNAPSHOT.jar to E:\.m2\repository\com\fqgj\policy-engine\1.0-SNAPSHOT\policy-engine-1.0-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\risk-sentry\policy-engine\pom.xml to E:\.m2\repository\com\fqgj\policy-engine\1.0-SNAPSHOT\policy-engine-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] risk-sentry ........................................ SUCCESS [ 1.375 s]
[INFO] sentry-common ...................................... SUCCESS [ 13.107 s]
[INFO] sentry-infras ...................................... SUCCESS [ 0.972 s]
[INFO] sentry-modules ..................................... SUCCESS [ 0.090 s]
[INFO] module-policy ...................................... SUCCESS [ 0.080 s]
[INFO] policy-dao ......................................... SUCCESS [ 3.781 s]
[INFO] policy-client ...................................... SUCCESS [ 2.739 s]
[INFO] policy-server ...................................... SUCCESS [ 3.163 s]
[INFO] module-manage ...................................... SUCCESS [ 0.031 s]
[INFO] manage-dao ......................................... SUCCESS [ 2.780 s]
[INFO] manage-client ...................................... SUCCESS [ 1.681 s]
[INFO] manage-server ...................................... SUCCESS [ 2.022 s]
[INFO] sentry-admin ....................................... SUCCESS [ 0.031 s]
[INFO] admin-rest ......................................... SUCCESS [ 35.417 s]
[INFO] sentry-api ......................................... SUCCESS [ 0.044 s]
[INFO] api-rest ........................................... SUCCESS [ 1.838 s]
[INFO] api-biz ............................................ SUCCESS [ 0.907 s]
[INFO] policy-engine ...................................... SUCCESS [ 7.153 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:20 min
[INFO] Finished at: 2017-08-12T16:42:56+08:00
[INFO] Final Memory: 78M/379M
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

posted @ 2017-08-12 16:57  小z同学  阅读(7260)  评论(1编辑  收藏  举报