平时项目大多用到的是war包,今天实现了一个简单功能,无需部署到web服务器上,只需本地跑java代码即可,因此只要生成一个jar包。那么怎么让maven项目打成一个可以使用java命令跑的jar包呢?这里通过maven插件实现:
首先修改pom.xml文件,这里需要新增build节点,在build里加入plugins节点:一个用来
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inspur.chinanet</groupId>
<artifactId>point-circle</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>point-circle</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>4.3.12.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.inspur.chinanet.point.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
上面的pom文件里有两个plugin,第一个是在jar包中的META-INF/MANIFEST.MF中指定Main-Class,指定lib库的jar包依赖classpath;第二个是把依赖到的lib库jar包都复制到配置的classpathPrefix目录下,这一步不做的话运行打出来的jar包会报错,因为相关依赖的jar包虽然配置了classpath但其实该classpath下并没有真实的jar包存在。addClasspath为true说明需要在MANIFEST.MF加上classpath并配置依赖包,classpathPrefix指定依赖包所在的目录,mainClass指定MANIFEST.MF中的Main-Class。${project.build.directory}这变量是maven内置的,系统会自动寻找,其实就编译class的目录target,这里配置的${project.build.directory}/lib,在我本机就是E:\workspace\point-circle\target\lib。每次修改完pom配置文件之后,记得在Eclipse右击项目,点击Update Project让修改生效。
执行maven打包命令:
E:\workspace\point-circle>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building point-circle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ point-circle ---
[INFO] Deleting E:\workspace\point-circle\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\point-circle\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to E:\workspace\point-circle\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\point-circle\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\workspace\point-circle\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ point-circle ---
[INFO] Surefire report directory: E:\workspace\point-circle\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.inspur.chinanet.point.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ point-circle ---
[INFO] Building jar: E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy) @ point-circle ---
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.pom (2 KB at 4.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia/1.0-alpha-10/doxia-1.0-alpha-10.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia/1.0-alpha-10/doxia-1.0-alpha-10.pom (9 KB at 48.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/6/maven-parent-6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/6/maven-parent-6.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.pom (2 KB at 10.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia/1.0/doxia-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia/1.0/doxia-1.0.pom (10 KB at 224.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/10/maven-parent-10.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/10/maven-parent-10.pom (31 KB at 475.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.pom (5 KB at 75.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.pom (3 KB at 32.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.5.7/plexus-utils-1.5.7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.5.7/plexus-utils-1.5.7.pom (8 KB at 121.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.pom (5 KB at 69.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sitetools/1.0/doxia-sitetools-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sitetools/1.0/doxia-sitetools-1.0.pom (10 KB at 170.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.pom (2 KB at 9.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom (3 KB at 81.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.pom (2 KB at 17.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-20/plexus-container-default-1.0-alpha-20.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-20/plexus-container-default-1.0-alpha-20.pom (3 KB at 53.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-20/plexus-containers-1.0-alpha-20.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-20/plexus-containers-1.0-alpha-20.pom (2 KB at 16.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.3/plexus-utils-1.3.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.3/plexus-utils-1.3.pom (2 KB at 7.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom (3 KB at 32.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom (8 KB at 96.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/velocity/velocity/1.5/velocity-1.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/velocity/velocity/1.5/velocity-1.5.pom (8 KB at 113.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-collections/commons-collections/3.1/commons-collections-3.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-collections/commons-collections/3.1/commons-collections-3.1.pom (6 KB at 102.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.pom (4 KB at 38.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.pom (3 KB at 16.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-modules/1.0/doxia-modules-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-modules/1.0/doxia-modules-1.0.pom (3 KB at 30.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.pom (3 KB at 31.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.pom (3 KB at 22.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.pom (2 KB at 15.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.pom (6 KB at 114.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/11/maven-shared-components-11.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/11/maven-shared-components-11.pom (9 KB at 148.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-io/commons-io/1.4/commons-io-1.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-io/commons-io/1.4/commons-io-1.4.pom (13 KB at 313.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/commons/commons-parent/7/commons-parent-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/commons/commons-parent/7/commons-parent-7.pom (18 KB at 159.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.pom (9 KB at 88.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom (346 B at 9.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.pom (4 KB at 78.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.pom (3 KB at 18.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/3.0.9/plexus-utils-3.0.9.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/3.0.9/plexus-utils-3.0.9.pom (4 KB at 44.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.pom (4 KB at 66.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.pom (4 KB at 82.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/8/maven-shared-components-8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/8/maven-shared-components-8.pom (3 KB at 39.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/7/maven-parent-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/7/maven-parent-7.pom (21 KB at 345.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.2/maven-artifact-2.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.2/maven-artifact-2.0.2.pom (765 B at 10.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.2/maven-2.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.2/maven-2.0.2.pom (13 KB at 194.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.2/maven-artifact-manager-2.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.2/maven-artifact-manager-2.0.2.pom (2 KB at 10.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.2/maven-repository-metadata-2.0.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.2/maven-repository-metadata-2.0.2.pom (2 KB at 8.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom (588 B at 7.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon/1.0-alpha-6/wagon-1.0-alpha-6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon/1.0-alpha-6/wagon-1.0-alpha-6.pom (7 KB at 80.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.pom (3 KB at 19.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.pom (6 KB at 89.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm/3.3.1/asm-3.3.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm/3.3.1/asm-3.3.1.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm-parent/3.3.1/asm-parent-3.3.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm-parent/3.3.1/asm-parent-3.3.1.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.5/maven-project-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.5/maven-project-2.0.5.pom (2 KB at 15.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.5/maven-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.5/maven-2.0.5.pom (6 KB at 66.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.5/maven-settings-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.5/maven-settings-2.0.5.pom (2 KB at 12.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.5/maven-model-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.5/maven-model-2.0.5.pom (3 KB at 35.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.5/maven-profile-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.5/maven-profile-2.0.5.pom (2 KB at 12.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.5/maven-artifact-manager-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.5/maven-artifact-manager-2.0.5.pom (2 KB at 18.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.5/maven-repository-metadata-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.5/maven-repository-metadata-2.0.5.pom (2 KB at 12.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.5/maven-artifact-2.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.5/maven-artifact-2.0.5.pom (727 B at 9.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.2.0/maven-project-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.2.0/maven-project-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.2.0/maven-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.2.0/maven-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.2.0/maven-settings-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.2.0/maven-settings-2.2.0.pom (3 KB at 14.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.2.0/maven-model-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.2.0/maven-model-2.2.0.pom (4 KB at 43.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.2.0/maven-profile-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.2.0/maven-profile-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.2.0/maven-artifact-manager-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.2.0/maven-artifact-manager-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.2.0/maven-repository-metadata-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.2.0/maven-repository-metadata-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.2.0/maven-artifact-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.2.0/maven-artifact-2.2.0.pom (2 KB at 11.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.2.0/maven-plugin-registry-2.2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.2.0/maven-plugin-registry-2.2.0.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.pom (2 KB at 14.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether/0.9.0.M2/aether-0.9.0.M2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether/0.9.0.M2/aether-0.9.0.M2.pom (28 KB at 353.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.8/maven-artifact-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.8/maven-artifact-2.0.8.pom (2 KB at 15.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.8/maven-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.8/maven-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.8/maven-model-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.8/maven-model-2.0.8.pom (4 KB at 63.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.8/maven-project-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.8/maven-project-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.8/maven-settings-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.8/maven-settings-2.0.8.pom (3 KB at 22.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.8/maven-profile-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.8/maven-profile-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.8/maven-artifact-manager-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.8/maven-artifact-manager-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.8/maven-repository-metadata-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.8/maven-repository-metadata-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.0.8/maven-plugin-registry-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.0.8/maven-plugin-registry-2.0.8.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.8/maven-plugin-api-2.0.8.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.8/maven-plugin-api-2.0.8.pom (2 KB at 15.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.pom (5 KB at 105.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-io/commons-io/1.4/commons-io-1.4.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar (54 KB at 616.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar (21 KB at 99.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar (89 KB at 397.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar (38 KB at 137.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-io/commons-io/1.4/commons-io-1.4.jar (107 KB at 383.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/commons-digester/commons-digester/1.6/commons-digester-1.6.jar (165 KB at 514.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar (107 KB at 321.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar (10 KB at 25.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/velocity/velocity/1.5/velocity-1.5.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar (8 KB at 15.7 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar (11 KB at 21.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-doxia-tools/1.0.2/maven-doxia-tools-1.0.2.jar (41 KB at 79.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/velocity/velocity/1.5/velocity-1.5.jar (383 KB at 647.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar (46 KB at 71.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar (19 KB at 25.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.jar (183 KB at 232.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/3.0.9/plexus-utils-3.0.9.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar (28 KB at 31.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/3.0.9/plexus-utils-3.0.9.jar (227 KB at 258.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar (22 KB at 23.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar (48 KB at 51.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar (57 KB at 56.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar (46 KB at 41.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm/3.3.1/asm-3.3.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/asm/asm/3.3.1/asm-3.3.1.jar (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar (37 KB at 31.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar (131 KB at 106.8 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.jar (27 KB at 20.9 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar (42 KB at 31.7 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar (39 KB at 29.0 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar (29 KB at 20.3 KB/sec)
[INFO] Copying commons-dbcp-1.2.2.jar to E:\workspace\point-circle\target\lib\commons-dbcp-1.2.2.jar
[INFO] Copying spring-expression-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-expression-4.3.12.RELEASE.jar
[INFO] Copying jts-1.8.jar to E:\workspace\point-circle\target\lib\jts-1.8.jar
[INFO] Copying commons-pool-1.3.jar to E:\workspace\point-circle\target\lib\commons-pool-1.3.jar
[INFO] Copying hamcrest-core-1.3.jar to E:\workspace\point-circle\target\lib\hamcrest-core-1.3.jar
[INFO] Copying spring-aop-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-aop-4.3.12.RELEASE.jar
[INFO] Copying spring-web-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-web-4.3.12.RELEASE.jar
[INFO] Copying junit-4.12.jar to E:\workspace\point-circle\target\lib\junit-4.12.jar
[INFO] Copying commons-logging-1.2.jar to E:\workspace\point-circle\target\lib\commons-logging-1.2.jar
[INFO] Copying spring-jdbc-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-jdbc-4.3.12.RELEASE.jar
[INFO] Copying spring-webmvc-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-webmvc-4.3.12.RELEASE.jar
[INFO] Copying spring-core-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-core-4.3.12.RELEASE.jar
[INFO] Copying spring-context-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-context-4.3.12.RELEASE.jar
[INFO] Copying ojdbc14-10.2.0.2.0.jar to E:\workspace\point-circle\target\lib\ojdbc14-10.2.0.2.0.jar
[INFO] Copying spring-beans-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-beans-4.3.12.RELEASE.jar
[INFO] Copying spring-context-support-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-context-support-4.3.12.RELEASE.jar
[INFO] Copying spring-tx-4.3.12.RELEASE.jar to E:\workspace\point-circle\target\lib\spring-tx-4.3.12.RELEASE.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ point-circle ---
[INFO] Installing E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.jar
[INFO] Installing E:\workspace\point-circle\pom.xml to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.180 s
[INFO] Finished at: 2018-01-25T21:13:38+08:00
[INFO] Final Memory: 23M/196M
[INFO] ------------------------------------------------------------------------
看下我们打出来的jar包里的MANIFEST.MF目录和内容:point-circle-0.0.1-SNAPSHOT.jar\META-INF\MANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Built-By: wulf
Class-Path: lib/spring-core-4.3.12.RELEASE.jar lib/commons-logging-1.2
.jar lib/spring-context-support-4.3.12.RELEASE.jar lib/spring-beans-4
.3.12.RELEASE.jar lib/spring-context-4.3.12.RELEASE.jar lib/spring-ao
p-4.3.12.RELEASE.jar lib/spring-expression-4.3.12.RELEASE.jar lib/spr
ing-web-4.3.12.RELEASE.jar lib/spring-webmvc-4.3.12.RELEASE.jar lib/s
pring-jdbc-4.3.12.RELEASE.jar lib/spring-tx-4.3.12.RELEASE.jar lib/jt
s-1.8.jar lib/commons-dbcp-1.2.2.jar lib/commons-pool-1.3.jar lib/ojd
bc14-10.2.0.2.0.jar
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_102
Main-Class: com.inspur.chinanet.point.App
上面列出了classpath里所依赖到的jar包列表、主class。最后打开命令行界面执行jar包:
E:\>cd E:\workspace\point-circle\target
E:\workspace\point-circle\target>java -jar point-circle-0.0.1-SNAPSHOT.jar
Exception in thread "main" java.lang.NullPointerException
at com.inspur.chinanet.point.App.main(App.java:39)
空指针是spring的注入问题,这里说明可执行jar包出炉了。但如果我把这个新鲜烤出来的jar包复制到另一个地方,比如E盘,再执行就报找不到依赖的jar包了:
E:\>java -jar point-circle-0.0.1-SNAPSHOT.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/vividsolutions/jts/io/ParseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: com.vividsolutions.jts.io.ParseException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
maven-assembly-plugin这个plugin,改后的pom文件:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inspur.chinanet</groupId>
<artifactId>point-circle</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>point-circle</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>4.3.12.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.inspur.chinanet.point.App</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
再次执行打包命令:
E:\workspace\point-circle>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building point-circle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ point-circle ---
[INFO] Deleting E:\workspace\point-circle\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\point-circle\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to E:\workspace\point-circle\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\point-circle\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\workspace\point-circle\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ point-circle ---
[INFO] Surefire report directory: E:\workspace\point-circle\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.inspur.chinanet.point.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ point-circle ---
[INFO] Building jar: E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ point-circle ---
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.1/maven-common-artifact-filters-1.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.1/maven-common-artifact-filters-1.1.pom (3 KB at 6.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.pom (7 KB at 18.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/7/maven-shared-components-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/7/maven-shared-components-7.pom (3 KB at 8.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-core/2.0/maven-core-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-core/2.0/maven-core-2.0.pom (6 KB at 17.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0/maven-settings-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0/maven-settings-2.0.pom (2 KB at 3.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-parameter-documenter/2.0/maven-plugin-parameter-documenter-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-parameter-documenter/2.0/maven-plugin-parameter-documenter-2.0.pom (2 KB at 4.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-api/2.0/maven-reporting-api-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting-api/2.0/maven-reporting-api-2.0.pom (2 KB at 2.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting/2.0/maven-reporting-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/reporting/maven-reporting/2.0/maven-reporting-2.0.pom (504 B at 1.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.pom (2 KB at 2.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-error-diagnostics/2.0/maven-error-diagnostics-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-error-diagnostics/2.0/maven-error-diagnostics-2.0.pom (812 B at 2.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.0/maven-plugin-registry-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-registry/2.0/maven-plugin-registry-2.0.pom (2 KB at 3.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-monitor/2.0/maven-monitor-2.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-monitor/2.0/maven-monitor-2.0.pom (400 B at 1.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.2/plexus-utils-1.4.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.2/plexus-utils-1.4.2.pom (2 KB at 17.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom (2 KB at 8.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom (2 KB at 15.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom (767 B at 9.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus/1.0.5/plexus-1.0.5.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus/1.0.5/plexus-1.0.5.pom (6 KB at 65.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-interpolation/1.7/plexus-interpolation-1.7.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-interpolation/1.7/plexus-interpolation-1.7.pom (3 KB at 8.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.pom (2 KB at 16.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.pom (2 KB at 11.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.1/file-management-1.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.1/file-management-1.1.pom (3 KB at 8.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/4/maven-shared-components-4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/4/maven-shared-components-4.pom (3 KB at 6.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/4/maven-parent-4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-parent/4/maven-parent-4.pom (0 B at 0.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.0/maven-shared-io-1.0.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-io/1.0/maven-shared-io-1.0.pom (3 KB at 9.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-active-collections/1.0-beta-2/plexus-active-collections-1.0-beta-2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-active-collections/1.0-beta-2/plexus-active-collections-1.0-beta-2.pom (3 KB at 8.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-22/plexus-container-default-1.0-alpha-22.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-22/plexus-container-default-1.0-alpha-22.pom (3 KB at 9.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-22/plexus-containers-1.0-alpha-22.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-22/plexus-containers-1.0-alpha-22.pom (2 KB at 5.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.pom (643 B at 2.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.4/maven-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven/2.0.4/maven-2.0.4.pom (12 KB at 37.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.pom (2 KB at 5.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.pom (2 KB at 4.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.pom (3 KB at 8.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.pom (2 KB at 4.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.pom (2 KB at 3.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.pom (2 KB at 4.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.pom (765 B at 2.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.pom (4 KB at 46.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-11/plexus-archiver-1.0-alpha-11.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-11/plexus-archiver-1.0-alpha-11.pom (2 KB at 20.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-15/plexus-container-default-1.0-alpha-15.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-container-default/1.0-alpha-15/plexus-container-default-1.0-alpha-15.pom (2 KB at 18.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-15/plexus-containers-1.0-alpha-15.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-15/plexus-containers-1.0-alpha-15.pom (2 KB at 19.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-component-api/1.0-alpha-15/plexus-component-api-1.0-alpha-15.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-component-api/1.0-alpha-15/plexus-component-api-1.0-alpha-15.pom (948 B at 25.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-classworlds/1.2-alpha-6/plexus-classworlds-1.2-alpha-6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-classworlds/1.2-alpha-6/plexus-classworlds-1.2-alpha-6.pom (3 KB at 66.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-3/plexus-io-1.0-alpha-3.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-3/plexus-io-1.0-alpha-3.pom (2 KB at 17.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom (3 KB at 23.0 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom (2 KB at 21.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.pom (3 KB at 41.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.pom (4 KB at 10.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.pom (4 KB at 8.6 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.0-alpha-1/maven-common-artifact-filters-1.0-alpha-1.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.0-alpha-1/maven-common-artifact-filters-1.0-alpha-1.pom (2 KB at 4.7 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/6/maven-shared-components-6.pom
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-shared-components/6/maven-shared-components-6.pom (4 KB at 8.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.1/maven-common-artifact-filters-1.1.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-interpolation/1.7/plexus-interpolation-1.7.jar
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.1/file-management-1.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.jar (173 KB at 1857.8 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.2/maven-artifact-manager-2.0.2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar (32 KB at 60.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.2/maven-repository-metadata-2.0.2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-repository-metadata/2.0.2/maven-repository-metadata-2.0.2.jar (20 KB at 18.2 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-active-collections/1.0-beta-2/plexus-active-collections-1.0-beta-2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-interpolation/1.7/plexus-interpolation-1.7.jar (50 KB at 45.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/file-management/1.1/file-management-1.1.jar (31 KB at 21.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-common-artifact-filters/1.1/maven-common-artifact-filters-1.1.jar (30 KB at 19.9 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact-manager/2.0.2/maven-artifact-manager-2.0.2.jar (49 KB at 32.1 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-active-collections/1.0-beta-2/plexus-active-collections-1.0-beta-2.jar (21 KB at 12.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.jar (48 KB at 27.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.jar (107 KB at 59.5 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar (20 KB at 10.4 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.jar (9 KB at 4.3 KB/sec)
Downloading: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.jar
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.jar (30 KB at 14.7 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.jar (217 KB at 101.0 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.jar (79 KB at 33.4 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.jar (79 KB at 33.2 KB/sec)
Downloaded: http://211.140.17.101:8031/nexus/content/groups/group_migu/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.jar (23 KB at 9.2 KB/sec)
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/scheduling/ already added, skipping
[INFO] org/springframework/ui/ already added, skipping
[INFO] org/springframework/cache/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/remoting/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/web/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/apache/ already added, skipping
[INFO] org/apache/commons/ already added, skipping
[INFO] META-INF/NOTICE.txt already added, skipping
[INFO] META-INF/LICENSE.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/apache/ already added, skipping
[INFO] org/apache/commons/ already added, skipping
[INFO] META-INF/NOTICE.txt already added, skipping
[INFO] META-INF/LICENSE.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] Building jar: E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/scheduling/ already added, skipping
[INFO] org/springframework/ui/ already added, skipping
[INFO] org/springframework/cache/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/remoting/ already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] org/springframework/web/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/springframework/ already added, skipping
[INFO] META-INF/spring.tooling already added, skipping
[INFO] META-INF/spring.schemas already added, skipping
[INFO] META-INF/spring.handlers already added, skipping
[INFO] META-INF/notice.txt already added, skipping
[INFO] META-INF/license.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/apache/ already added, skipping
[INFO] org/apache/commons/ already added, skipping
[INFO] META-INF/NOTICE.txt already added, skipping
[INFO] META-INF/LICENSE.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] org/ already added, skipping
[INFO] org/apache/ already added, skipping
[INFO] org/apache/commons/ already added, skipping
[INFO] META-INF/NOTICE.txt already added, skipping
[INFO] META-INF/LICENSE.txt already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ point-circle ---
[INFO] Installing E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.jar
[INFO] Installing E:\workspace\point-circle\pom.xml to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.pom
[INFO] Installing E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT-jar-with-dependencies.jar to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.621 s
[INFO] Finished at: 2018-01-26T11:17:05+08:00
[INFO] Final Memory: 29M/230M
[INFO] ------------------------------------------------------------------------
这次生成的jar包里多了很多东西,而且名称也变了:point-circle-0.0.1-SNAPSHOT-jar-with-dependencies.jar。我们把它复制到E盘执行,这次没问题了:
C:\Users\wulf>e:
E:\>java -jar point-circle-0.0.1-SNAPSHOT-jar-with-dependencies.jar
Exception in thread "main" java.lang.NullPointerException
at com.inspur.chinanet.point.App.main(App.java:39)
还可以用另外一个插件maven-shade-plugin来代替maven-assembly-plugin,修改后的pom文件如下:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inspur.chinanet</groupId>
<artifactId>point-circle</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>point-circle</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>4.3.12.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.inspur.chinanet.point.App</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
执行maven打包:
E:\workspace\point-circle>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building point-circle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ point-circle ---
[INFO] Deleting E:\workspace\point-circle\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to E:\workspace\point-circle\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ point-circle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\point-circle\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ point-circle ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\workspace\point-circle\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ point-circle ---
[INFO] Surefire report directory: E:\workspace\point-circle\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.inspur.chinanet.point.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ point-circle ---
[INFO] Building jar: E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-shade-plugin:2.4.1:shade (default) @ point-circle ---
[INFO] Including org.springframework:spring-core:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including commons-logging:commons-logging:jar:1.2 in the shaded jar.
[INFO] Including org.springframework:spring-context-support:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-beans:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-context:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-aop:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-expression:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-web:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-webmvc:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-jdbc:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including org.springframework:spring-tx:jar:4.3.12.RELEASE in the shaded jar.
[INFO] Including com.vividsolutions:jts:jar:1.8 in the shaded jar.
[INFO] Including commons-dbcp:commons-dbcp:jar:1.2.2 in the shaded jar.
[INFO] Including commons-pool:commons-pool:jar:1.3 in the shaded jar.
[INFO] Including com.oracle:ojdbc14:jar:10.2.0.2.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar with E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: E:\workspace\point-circle\dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at: E:\workspace\point-circle\dependency-reduced-pom.xml
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ point-circle ---
[INFO] Installing E:\workspace\point-circle\target\point-circle-0.0.1-SNAPSHOT.jar to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.jar
[INFO] Installing E:\workspace\point-circle\dependency-reduced-pom.xml to E:\Users\wulf\.m2\repository\com\inspur\chinanet\point-circle\0.0.1-SNAPSHOT\point-circle-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.557 s
[INFO] Finished at: 2018-01-26T16:33:45+08:00
[INFO] Final Memory: 28M/195M
[INFO] ------------------------------------------------------------------------
注意这里会生成两个jar,一个带original前缀一个没带,我们要用的是没带的。