mpusher 源码编译 for windows X64
mpusher 源码编译 for windows X64
对于java我是小白,通过一步步的摸索,将经验总结下来,给更多码友提供入门的帮助。一个人的摸索是很困难的,本教程感谢 【MPush开源消息推送系统 114583699】杭州-夜色(251939168) 的帮助,也希望MPush在开源理念的帅领下会做的更好。
教程中科普的部分可以跳过,直接看编译的部分。
一、下载源码
https://github.com/mpusher/
解压到d:/mpusher/mpusher 目录
https://www.jetbrains.com/idea/#chooseYourEdition
解压到 D:\Program Files\ideaIU-2016.3.4
运行 D:\Program Files\ideaIU-2016.3.4\bin\idea64.exe
程序启动类似一个欢迎界面的选择,在左下角
随后选择导入
三、导入项目
选择要导入的文件路径,刚才解压到的目录 d:/mpusher/mpusher
随后选择
一路默认下去,直到界面如图
看到上图界面不要急,等待一段时间就会看到如下图,然后就可以编辑项目的源码了
科普:编译方式介绍
在 IntelliJ IDEA 里,编译方式一共有三种:
- Compile:对选定的目标(Java 类文件),进行强制性编译,不管目标是否是被修改过。
- Rebuild:对选定的目标(Project),进行强制性编译,不管目标是否是被修改过,由于 Rebuild 的目标只有 Project,所以 Rebuild 每次花的时间会比较长。
- Make:使用最多的编译操作。对选定的目标(Project 或 Module)进行编译,但只编译有修改过的文件,没有修改过的文件不会编译,这样平时开发大型项目才不会浪费时间在编译过程中。
科普:编译触发按钮
- 如上图标注 1 所示,Compile 的操作有:
Compile
指定类 - 如上图标注 1 所示,Rebuild 的操作有:
Rebuild Project
- 如上图标注 1 所示,Make 的操作有:
Make Project
、Make Module
科普:运行之前的编译
- 如上图所示,IntelliJ IDEA 默认在运行 JUnit 之前会先进行
Make
操作。
- 如上图所示,IntelliJ IDEA 默认在运行 tomcat 之前会先进行
Make
操作。
科普:编译器的设置和选择
- 上图标注 1 所示,也是我们本文前面讲的,IntelliJ IDEA 是支持自动编译的,默认是不开启的,也建议不用开启,原因前面已经说了。
- 上图标注 2 所示,设置编译
heap
大小,默认是700
,建议使用 64 位的用户,在内存足够的情况下,建议改为1500
或以上。如果你在编译的时候出错,报:OutOfMemoryError
,一般也是要来改这个地方。 - 上图标注 3 所示,还可以设置编译时的
VM
参数,这个你可以根据需求进行设置,一般人是用不上的。
- 如上图标注 1 所示,可以添加目录 或 文件进行编译排除。
- 在项目中,如果有任何一个可编译的文件无法编译通过,则 IntelliJ IDEA 是无法运行起来的,必须等你全部问题解决,编译通过之后才可运行。但是可能开发过程中,某一个包目录的文件编译无法通过,但是我们又不急着改,那我们就可以考虑把该包加入到排除编译列表中,则项目就可以运行起来。
- 如上图动态 Gif 所示,IntelliJ IDEA 支持常见的几种编译器:
Javac
、Eclipse
、Ajc
等。默认是Javac
,也推荐使用Javac
。 Project bytecode version
针对项目字节码编译版本,一般选择的是当前项目主 JDK 的版本。Per-module bytecode version
可以针对Project
下各个Module
的特殊需求单独设置不同的bytecode version
,前提是电脑上必须有安装对应的 JDK 版本。
说了一堆的废话,mpush 项目全部生成的是jar包,下面就进行打包,
Maven是一个优秀的构建工具(类似于 Ant, 但比 Ant 更加方便使用),能帮助我们自动化构建过程,从清理、编译、测试到生成报告,再到打包和部署。只需要输入简单的命令,Maven就可以帮我们处理构建过程中的繁琐任务。
四、编译项目:
-
下载Maven的安装包,下载链接:http://maven.apache.org/download.cgi
如图所示,点击 apache-maven-3.3.9-bin.zip 链接下载 3.3.9 版本的mavn包。
-
-
-
Microsoft Windows [版本 6.3.9600] (c) 2013 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>echo %M2_HOME% D:\Program Files\apache-maven-3.3.9 C:\Users\Administrator>mvn -v Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:4 7+08:00) Maven home: D:\Program Files\apache-maven-3.3.9 Java version: 1.8.0_121, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_121\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows server 2012 r2", version: "6.3", arch: "amd64", family: "dos" C:\Users\Administrator>
-
注: 本步必须在联网情况下执行。
-
-
编译Maven项目生成jar文件。本文以编译样例Maven项目包 mpush 为例。本机DOS环境下
cd
至源文件所在目录,即 D:\mpush\mpush
- 执行编译命令
mvn clean install 或 mvn clean package -Pzip (mpush官方推荐的命令)
- 生成的jar文件会存放在Maven项目包所在目录的target文件夹中,即“{yourPath}\YourProjectName\target\YourProjectName-versionNO.jar”
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mpush-test --- [INFO] Building jar: D:\mpush\mpush\mpush-test\target\mpush-test-0.7.1.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] mpush .............................................. SUCCESS [ 0.570 s] [INFO] mpush-api .......................................... SUCCESS [ 1.828 s] [INFO] mpush-tools ........................................ SUCCESS [ 1.321 s] [INFO] mpush-netty ........................................ SUCCESS [ 0.430 s] [INFO] mpush-common ....................................... SUCCESS [ 0.446 s] [INFO] mpush-monitor ...................................... SUCCESS [ 0.364 s] [INFO] mpush-core ......................................... SUCCESS [ 0.703 s] [INFO] mpush-cache ........................................ SUCCESS [ 0.270 s] [INFO] mpush-zookeeper .................................... SUCCESS [ 0.567 s] [INFO] mpush-boot ......................................... SUCCESS [ 45.222 s] [INFO] mpush-client ....................................... SUCCESS [ 0.465 s] [INFO] mpush-test ......................................... SUCCESS [ 0.547 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 53.226 s [INFO] Finished at: 2017-02-26T16:09:22+08:00 [INFO] Final Memory: 41M/1009M [INFO] ------------------------------------------------------------------------ D:\mpush\mpush>
备注
使用IDE编译 生成的jar包默认是在项目根目录的 out 目录下,
使用 Maven 编译 生成的jar包默认是在每个项目的 target 目录下
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-io/1.0/maven-shared-io-1.0.pom (3 KB at 6.5 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac t/2.0.2/maven-artifact-2.0.2.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact /2.0.2/maven-artifact-2.0.2.pom (765 B at 1.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.2/m aven-2.0.2.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.2/ma ven-2.0.2.pom (13 KB at 28.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti ls/1.1/plexus-utils-1.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util s/1.1/plexus-utils-1.1.pom (767 B at 1.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac t-manager/2.0.2/maven-artifact-manager-2.0.2.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact -manager/2.0.2/maven-artifact-manager-2.0.2.pom (2 KB at 3.0 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposit ory-metadata/2.0.2/maven-repository-metadata-2.0.2.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposito ry-metadata/2.0.2/maven-repository-metadata-2.0.2.pom (2 KB at 2.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-p rovider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-pr ovider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom (588 B at 1.3 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1 .0-alpha-6/wagon-1.0-alpha-6.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1. 0-alpha-6/wagon-1.0-alpha-6.pom (7 KB at 8.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti ls/1.2/plexus-utils-1.2.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util s/1.2/plexus-utils-1.2.pom (767 B at 1.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0 .5/plexus-1.0.5.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0. 5/plexus-1.0.5.pom (6 KB at 4.3 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-io/1.1/maven-shared-io-1.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-io/1.1/maven-shared-io-1.1.pom (4 KB at 8.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-components/8/maven-shared-components-8.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-components/8/maven-shared-components-8.pom (3 KB at 5.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/ 7/maven-parent-7.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/7 /maven-parent-7.pom (21 KB at 44.9 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- filtering/1.3/maven-filtering-1.3.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-f iltering/1.3/maven-filtering-1.3.pom (7 KB at 12.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-components/20/maven-shared-components-20.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-components/20/maven-shared-components-20.pom (5 KB at 11.1 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/ 24/maven-parent-24.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/2 4/maven-parent-24.pom (37 KB at 45.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/14/apache-14 .pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/apache/14/apache-14. pom (15 KB at 30.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-utils/0.6/maven-shared-utils-0.6.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-utils/0.6/maven-shared-utils-0.6.pom (5 KB at 10.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti ls/3.0.18/plexus-utils-3.0.18.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util s/3.0.18/plexus-utils-3.0.18.pom (4 KB at 7.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-int erpolation/1.19/plexus-interpolation-1.19.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-inte rpolation/1.19/plexus-interpolation-1.19.pom (2 KB at 2.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti ls/3.0.21/plexus-utils-3.0.21.pom Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util s/3.0.21/plexus-utils-3.0.21.pom (4 KB at 8.3 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- repository-builder/1.0/maven-repository-builder-1.0.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-r epository-builder/1.0/maven-repository-builder-1.0.pom (5 KB at 9.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-components/21/maven-shared-components-21.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-components/21/maven-shared-components-21.pom (5 KB at 11.1 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/ 25/maven-parent-25.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/2 5/maven-parent-25.pom (37 KB at 76.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/15/apache-15 .pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/apache/15/apache-15. pom (15 KB at 32.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac t/2.0.4/maven-artifact-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact /2.0.4/maven-artifact-2.0.4.pom (765 B at 1.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/m aven-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/ma ven-2.0.4.pom (12 KB at 8.4 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac t-manager/2.0.4/maven-artifact-manager-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact -manager/2.0.4/maven-artifact-manager-2.0.4.pom (2 KB at 3.0 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposit ory-metadata/2.0.4/maven-repository-metadata-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposito ry-metadata/2.0.4/maven-repository-metadata-2.0.4.pom (2 KB at 3.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project /2.0.4/maven-project-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/ 2.0.4/maven-project-2.0.4.pom (2 KB at 4.0 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-setting s/2.0.4/maven-settings-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings /2.0.4/maven-settings-2.0.4.pom (2 KB at 3.5 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2 .0.4/maven-model-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2. 0.4/maven-model-2.0.4.pom (3 KB at 5.9 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile /2.0.4/maven-profile-2.0.4.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/ 2.0.4/maven-profile-2.0.4.pom (2 KB at 3.5 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-utils/0.3/maven-shared-utils-0.3.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-utils/0.3/maven-shared-utils-0.3.pom (4 KB at 8.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1. 6/commons-codec-1.6.pom Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6 /commons-codec-1.6.pom (11 KB at 23.5 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-arc hiver/3.0.1/plexus-archiver-3.0.1.jar Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-int erpolation/1.22/plexus-interpolation-1.22.jar Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-m anagement/1.1/file-management-1.1.jar Downloading: https://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/sna ppy-0.3.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-c ommon-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar (31 KB at 64.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-io/1.1/maven-shared-io-1.1.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-io/1.1/maven-shared-io-1.1.jar (39 KB at 40.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-p rovider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-pr ovider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar (42 KB at 29.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/comm ons-io-2.2.jar Downloaded: https://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snap py-0.3.jar (48 KB at 32.3 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- filtering/1.3/maven-filtering-1.3.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-f iltering/1.3/maven-filtering-1.3.jar (50 KB at 24.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- shared-utils/0.6/maven-shared-utils-0.6.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-ma nagement/1.1/file-management-1.1.jar (31 KB at 14.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/ 2.6/plexus-io-2.6.jar Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-inte rpolation/1.22/plexus-interpolation-1.22.jar (76 KB at 34.9 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti ls/3.0.21/plexus-utils-3.0.21.jar Downloaded: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commo ns-io-2.2.jar (170 KB at 71.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven- repository-builder/1.0/maven-repository-builder-1.0.jar Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2 .6/plexus-io-2.6.jar (83 KB at 29.1 KB/sec) Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1. 6/commons-codec-1.6.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-r epository-builder/1.0/maven-repository-builder-1.0.jar (22 KB at 7.6 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s hared-utils/0.6/maven-shared-utils-0.6.jar (161 KB at 52.2 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-arch iver/3.0.1/plexus-archiver-3.0.1.jar (373 KB at 120.0 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util s/3.0.21/plexus-utils-3.0.21.jar (240 KB at 72.9 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6 /commons-codec-1.6.jar (228 KB at 55.6 KB/sec) [INFO] Reading assembly descriptor: assembly.xml [INFO] Building tar: D:\mpush\mpush\mpush-boot\target\mpush-release-0.7.1.tar.gz [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mpush-client 0.7.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mpush-client --- [INFO] Deleting D:\mpush\mpush\mpush-client\target [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ mpush-client --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mpush-clie nt --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mpush-client -- - [INFO] Changes detected - recompiling the module! [INFO] Compiling 17 source files to D:\mpush\mpush\mpush-client\target\classes [WARNING] 读取C:\Users\Administrator\.m2\repository\com\barchart\udt\barchart-ud t-bundle\2.3.0\barchart-udt-bundle-2.3.0.jar时出错; invalid LOC header (bad sign ature) [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mp ush-client --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\mpush\mpush\mpush-client\src\test\ resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mpush-c lient --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mpush-client --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mpush-client --- [INFO] Building jar: D:\mpush\mpush\mpush-client\target\mpush-client-0.7.1.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mpush-test 0.7.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mpush-test --- [INFO] Deleting D:\mpush\mpush\mpush-test\target [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ mpush-test --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mpush-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mpush-test --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 25 source files to D:\mpush\mpush\mpush-test\target\classes [WARNING] 读取C:\Users\Administrator\.m2\repository\com\barchart\udt\barchart-ud t-bundle\2.3.0\barchart-udt-bundle-2.3.0.jar时出错; invalid LOC header (bad sign ature) [WARNING] 读取C:\Users\Administrator\.m2\repository\junit\junit\4.10\junit-4.10. jar时出错; invalid LOC header (bad signature) [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mp ush-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\mpush\mpush\mpush-test\src\test\re sources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mpush-t est --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mpush-test --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mpush-test --- [INFO] Building jar: D:\mpush\mpush\mpush-test\target\mpush-test-0.7.1.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] mpush .............................................. SUCCESS [ 0.570 s] [INFO] mpush-api .......................................... SUCCESS [ 1.828 s] [INFO] mpush-tools ........................................ SUCCESS [ 1.321 s] [INFO] mpush-netty ........................................ SUCCESS [ 0.430 s] [INFO] mpush-common ....................................... SUCCESS [ 0.446 s] [INFO] mpush-monitor ...................................... SUCCESS [ 0.364 s] [INFO] mpush-core ......................................... SUCCESS [ 0.703 s] [INFO] mpush-cache ........................................ SUCCESS [ 0.270 s] [INFO] mpush-zookeeper .................................... SUCCESS [ 0.567 s] [INFO] mpush-boot ......................................... SUCCESS [ 45.222 s] [INFO] mpush-client ....................................... SUCCESS [ 0.465 s] [INFO] mpush-test ......................................... SUCCESS [ 0.547 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 53.226 s [INFO] Finished at: 2017-02-26T16:09:22+08:00 [INFO] Final Memory: 41M/1009M [INFO] ------------------------------------------------------------------------ D:\mpush\mpush>