Last active
August 29, 2015 14:07
-
-
Save ChinaXing/16320a16889365a6a78e to your computer and use it in GitHub Desktop.
Create Jar ball and includes its dependencies to lib directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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.mogujie.nicolay</groupId> | |
<artifactId>mini-demo</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.mogujie.nicolay</groupId> | |
<artifactId>nicolay-client</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
</dependency> | |
</dependencies> | |
<properties> | |
<project.mainClass>com.witown.message.service.client.Launcher</project.mainClass> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> | |
<index>true</index> | |
<manifest> | |
<addClasspath>true</addClasspath> | |
<classpathPrefix>lib/</classpathPrefix> | |
<mainClass>${project.mainClass}</mainClass> | |
</manifest> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.alibaba.maven.plugins</groupId> | |
<artifactId>maven-autoconf-plugin</artifactId> | |
<version>0.3-alpha-8</version> | |
<executions> | |
<execution> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>config</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>2.5.3</version> | |
<executions> | |
<execution> | |
<id>make-assembly</id> | |
<!-- this is used for inheritance merges --> | |
<phase>package</phase> | |
<!-- bind to the packaging phase --> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<descriptors> | |
<descriptor>assembly.xml</descriptor> | |
</descriptors> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Author
ChinaXing
commented
Jan 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment