mpusher 源码编译 for windows X64

对于java我是小白,通过一步步的摸索,将经验总结下来,给更多码友提供入门的帮助。一个人的摸索是很困难的,本教程感谢 【MPush开源消息推送系统 114583699】杭州-夜色(251939168) 的帮助,也希望MPush在开源理念的帅领下会做的更好。

教程中科普的部分可以跳过,直接看编译的部分。

一、下载源码

https://github.com/mpusher/

解压到d:/mpusher/mpusher 目录

二,下载 ideaIU-2016.3.4

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 ProjectMake 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 支持常见的几种编译器:JavacEclipseAjc 等。默认是Javac,也推荐使用 Javac
  • Project bytecode version 针对项目字节码编译版本,一般选择的是当前项目主 JDK 的版本。
  • Per-module bytecode version 可以针对 Project 下各个 Module 的特殊需求单独设置不同的bytecode version,前提是电脑上必须有安装对应的 JDK 版本。

说了一堆的废话,mpush 项目全部生成的是jar包,下面就进行打包,

Maven是一个优秀的构建工具(类似于 Ant, 但比 Ant 更加方便使用),能帮助我们自动化构建过程,从清理、编译、测试到生成报告,再到打包和部署。只需要输入简单的命令,Maven就可以帮我们处理构建过程中的繁琐任务。

  四、编译项目:

  1. 下载Maven的安装包,下载链接:http://maven.apache.org/download.cgi

    如图所示,点击 apache-maven-3.3.9-bin.zip 链接下载 3.3.9 版本的mavn包。

  2. 下载后的文件为apache-maven-3.3.9-bin.zip 压缩包,将其解压到一个固定的文件夹。我的是解压到 D:\Program Files\apache-maven-3.3.9 目录下,更新Maven时只需要下载新的Maven包,解压到此目录并按照第三步修改环境变量即可。

     
  3. 修改环境变量。打开系统属性面板(在桌面上右击"我的电脑" ->"属性"->"高级系统设置"),然后点击"环境变量" ->"新建"->输入"M2_HOME"和Maven解压后的根目录路径(我解压到D:\Program Files\apache-maven-3.3.9下所以完整的路径就是D:\Program Files\apache-maven-3.3.9),然后点击确定,再然后找到名为Path的系统变量,单击选中后点击"编辑",将 %M2_HOME%\bin; 添加到变量值的开头(注意最后的分号也是要添加的)。

     
     
  4. 验证是否安装成功。点击windows左下角的"开始",在搜索框中输入cmd,然后回车就可以打开windows的命令提示符窗口,然后输入 echo %M2_HOME% 命令查看设置的环境变量,输入mvn -v 查看maven的版本,如果安装成功则显示如下所示:

    Microsoft Windows [版本 6.3.]
    (c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>echo %M2_HOME%
    D:\Program Files\apache-maven-3.3. C:\Users\Administrator>mvn -v
    Apache Maven 3.3. (bb52d8502b132ec0a5a3f4c09453c07478323dc5; --11T00::
    +:)
    Maven home: D:\Program Files\apache-maven-3.3.
    Java version: 1.8.0_121, vendor: Oracle Corporation
    Java home: C:\Program Files\Java\jdk1..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>
  5. 生成Maven本地仓库。在Maven项目中,用户无需像以前一样自己下载依赖的jar包再放入项目中,只需要定义项目的 pom.xml 文件,对项目使用Maven命令时,Maven会自动从网络上下载相应的包到本地仓库,项目就可以直接使用本地仓库的包。第一次安装Maven时在windows的命令提示符窗口输入 mvn help:system 命令然后回车,等其执行完后就可以在 C:\Users\Administrator\.m2\repository 看到 Maven 下载的一些文件。

    注: 本步必须在联网情况下执行。

     
  6. 用户自定义配置。Maven有一个全局配置文件为 Maven根目录/conf/settings.xml 文件(比如我的就是D:\Program Files\apache-maven-3.3.9\conf\settings.xml),Maven默认是使用此配置文件,所有用户共享此配置。但是推荐每一个用户配置自己的配置文件,防止无意思影响系统中其他用户,只需要将全局的配置文件复制到用户目录下的 .m2 文件夹即可(我的当前用户是 Administrator, 所以复制后为 C:\Users\Administrator\.m2\settings.xml )。(如果没有 .m2 文件夹 请先执行上一步,maven会在当前用户的目录下生成 .m2 文件夹)。

     
  7. 编译Maven项目生成jar文件。本文以编译样例Maven项目包 mpush 为例。本机DOS环境下cd至源文件所在目录,即 D:\mpush\mpush

  1. 执行编译命令 mvn clean install 或 mvn clean package -Pzip (mpush官方推荐的命令)
  2. 生成的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..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: --26T16::+:
[INFO] Final Memory: 41M/1009M
[INFO] ------------------------------------------------------------------------ D:\mpush\mpush>

 备注

使用IDE编译 生成的jar包默认是在项目根目录的 out 目录下,

使用 Maven 编译 生成的jar包默认是在每个项目的 target  目录下

Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s
hared-io/1.0/maven-shared-io-1.0.pom ( KB at 6.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac
t/2.0./maven-artifact-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact
/2.0./maven-artifact-2.0..pom ( B at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.2/m
aven-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.2/ma
ven-2.0..pom ( 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 ( B at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac
t-manager/2.0./maven-artifact-manager-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact
-manager/2.0./maven-artifact-manager-2.0..pom ( KB at 3.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposit
ory-metadata/2.0./maven-repository-metadata-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposito
ry-metadata/2.0./maven-repository-metadata-2.0..pom ( KB at 2.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-p
rovider-api/1.0-alpha-/wagon-provider-api-1.0-alpha-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-pr
ovider-api/1.0-alpha-/wagon-provider-api-1.0-alpha-.pom ( B at 1.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1
.-alpha-/wagon-1.0-alpha-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1.
-alpha-/wagon-1.0-alpha-.pom ( 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 ( B at 1.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0
./plexus-1.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0.
/plexus-1.0..pom ( 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 ( KB at 8.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-
shared-components//maven-shared-components-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s
hared-components//maven-shared-components-.pom ( KB at 5.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/
/maven-parent-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/7
/maven-parent-.pom ( 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 ( KB at 12.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-
shared-components//maven-shared-components-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s
hared-components//maven-shared-components-.pom ( KB at 11.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/
/maven-parent-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/2
/maven-parent-.pom ( 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 ( 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 ( KB at 10.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti
ls/3.0./plexus-utils-3.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util
s/3.0./plexus-utils-3.0..pom ( 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 ( KB at 2.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti
ls/3.0./plexus-utils-3.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util
s/3.0./plexus-utils-3.0..pom ( 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 ( KB at 9.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-
shared-components//maven-shared-components-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-s
hared-components//maven-shared-components-.pom ( KB at 11.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/
/maven-parent-.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/2
/maven-parent-.pom ( 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 ( KB at 32.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac
t/2.0./maven-artifact-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact
/2.0./maven-artifact-2.0..pom ( B at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/m
aven-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/ma
ven-2.0..pom ( KB at 8.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifac
t-manager/2.0./maven-artifact-manager-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact
-manager/2.0./maven-artifact-manager-2.0..pom ( KB at 3.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposit
ory-metadata/2.0./maven-repository-metadata-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-reposito
ry-metadata/2.0./maven-repository-metadata-2.0..pom ( KB at 3.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project
/2.0./maven-project-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/
2.0./maven-project-2.0..pom ( KB at 4.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-setting
s/2.0./maven-settings-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings
/2.0./maven-settings-2.0..pom ( 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..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.
0.4/maven-model-2.0..pom ( KB at 5.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile
/2.0./maven-profile-2.0..pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/
2.0./maven-profile-2.0..pom ( 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 ( KB at 8.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.
/commons-codec-1.6.pom
Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6
/commons-codec-1.6.pom ( 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./plexus-archiver-3.0..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 ( 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 ( KB at 40.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-p
rovider-api/1.0-alpha-/wagon-provider-api-1.0-alpha-.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-pr
ovider-api/1.0-alpha-/wagon-provider-api-1.0-alpha-.jar ( 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 ( 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 ( 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 ( 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 ( KB at 34.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-uti
ls/3.0./plexus-utils-3.0..jar
Downloaded: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commo
ns-io-2.2.jar ( 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
./plexus-io-2.6.jar ( KB at 29.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.
/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 ( 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 ( KB at 52.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-arch
iver/3.0./plexus-archiver-3.0..jar ( KB at 120.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util
s/3.0./plexus-utils-3.0..jar ( KB at 72.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6
/commons-codec-1.6.jar ( 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..tar.gz [INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mpush-client 0.7.
[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 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mpush-client --
-
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 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.\barchart-udt-bundle-2.3..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.: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..jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mpush-test 0.7.
[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 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mpush-test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 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.\barchart-udt-bundle-2.3..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.: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..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: --26T16::+:
[INFO] Final Memory: 41M/1009M
[INFO] ------------------------------------------------------------------------ D:\mpush\mpush>

mpusher 源码编译 for windows X64的更多相关文章

  1. 使用 Redis 源码编译发布 Windows 版 Redis For Windows 发行包

    Redis 是个高性能的键值数据库,现在日常项目开发过程中,目前个人开发项目基本都会用到 Redis,主要是用来做 缓存 和 分布式锁 的底层支持,个人喜欢用 .NET 技术体系,所以一般部署也是用 ...

  2. flink源码编译(windows环境)

    前言 最新开始捣鼓flink,fucking the code之前,编译是第一步. 编译环境 win7 java maven 编译步骤 https://ci.apache.org/projects/f ...

  3. HBase-2.2.3源码编译-Windows版

    源码环境一览 windows: 7 64Bit Java: 1.8.0_131 Maven:3.3.9 Git:2.24.0.windows.1 HBase:2.2.3 Hadoop:2.8.5 下载 ...

  4. MongoDB源码编译

    MongoDB源码编译 本人编译的版本编译的版本为mongodb2.6分支,目前MongoDB3.0已经发布,编译步骤和2.6的差不多,不过3.0版本要求编译器支持c++11标准,所以如果是在Linu ...

  5. [Android Pro] Android源码编译之Nexus5真机编译

    reference to : http://blog.csdn.net/liu1075538266/article/details/51272398 1.   前言 在Android安全的研究工作中, ...

  6. World Wind .NET源码编译问题处理

    World  Wind  .NET源码编译问题处理 下载了World_Wind_1.4.0_Source源码(http://worldwindcentral.com/wiki/NASA_World_W ...

  7. 烂泥:mysql5.5数据库cmake源码编译安装

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 以前也写过一篇有关mysql5.0源码编译的文章,该文章为<烂泥:mysql5.0数据库源码编译安装>.但是MySQL自5.5版本以后,就开 ...

  8. Centos7.X 源码编译安装subversion svn1.8.x

    说明:SVN(subversion)的运行方式有两种:一种是基于Apache的http.https网页访问形式:还有一种是基于svnserve的独立服务器模式.SVN的数据存储方式也有两种:一种是在B ...

  9. DevExpress 14.2.3源码编译 z

    一.准备 1.准备一台Windows 8.1机器,安装VS2013 2.准备一台Windows 8.1机器,安装VS2010    XP的系统肯定不行,因为有不少的运行库不支持     Windows ...

随机推荐

  1. UVALive 7045 Last Defence

    ProblemK. Last Defence Description Given two integersA and B. Sequence S is defined as follow: • S0 ...

  2. 关于Response.redirect和Response.End出现线程中止异常的处理

    最近做了一个项目其中使用了多线程获取POST过来的数据后再Response回复,但由于是多线程,在Response.End()的时候报出了异常: 2013-10-20 10:05:31,606 res ...

  3. 配置Server Side TAF

    实验环境:Oracle 11.2.0.4 RAC 参考MOS文档: How To Configure Server Side Transparent Application Failover (文档 ...

  4. 数据库-增删改查操作SQL实现

    一.数据插入-Insert 1. 插入单条记录 insert into 表名(字段名,字段名,字段名) //当插入所有字段时,字段名可以省略 values('值1','值2','值3'); 2. 插入 ...

  5. 关于 jquery html 动态添加的元素绑定事件——On()

    Ajax动态生成的数据,动作绑定需要重新执行 $(document).on('click','.btn1',function(){}); 替换: $('btn1').on('click') = fun ...

  6. JQuery OOP 及 OOP思想的简易理解

    在项目维护的时候,看到通篇的function实际上是非常费(痛)劲(苦),个人对于前端也不是特别熟悉,就想着JQuery能否也建立OOP的写法? 目的便于日后代码维护管理,就算不为了自己,日后交接后也 ...

  7. js/jQuery中load()、onload()、ready()的区别

    一.两大事件 load事件:指页面包含图片等文件在内的所有元素都加载完毕后执行的事件. ready事件:表示文档结构已加载完成(不包括图片等非文字媒体文件) 浏览器页面渲染的过程 - 寸寸君 - 博客 ...

  8. R处理大数据集

    R会把所有的对象读存入虚拟内存中.对我们大多数用户来说,这种设计可以提高与R相互的速度,但是当分析大数据集时,这种设计会降低程序运行速度有时还会产生跟内存相关的错误. 内存限制主要取决于R的build ...

  9. PHP语言开发微信公众平台(订阅号)之开启基本功能及获得可用的服务器地址(2)

    1.开启群发功能(单击功能菜单里的"群发功能",并在右侧页面中点击"同意以上声明") 2.(1)在开启开发者模式之前需要完善个人资料(完成头像上传即可) (2) ...

  10. oracle监听(lsnrctl)详解解读

    (总结)Oracle监听服务lsnrctl参数及查询状态详解   lsnrctl命令常用参数详解: lsnrctlstart启动指定的监听器 stop关闭指定的监听器 status显示监听器的状态.s ...