|
@@ -2,21 +2,70 @@
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
- <parent>
|
|
|
- <artifactId>dim</artifactId>
|
|
|
- <groupId>dzdy</groupId>
|
|
|
- <version>1.0-SNAPSHOT</version>
|
|
|
- </parent>
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
-
|
|
|
+ <groupId>com.dzdy</groupId>
|
|
|
<artifactId>dim-client</artifactId>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
- <groupId>dzdy</groupId>
|
|
|
+ <groupId>com.dzdy</groupId>
|
|
|
<artifactId>dim-common</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.7.0</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!--<plugin>
|
|
|
+ <!– Build an executable JAR –>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <version>3.0.2</version>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <classpathPrefix>lib/</classpathPrefix>
|
|
|
+ <mainClass>com.dzdy.dim.NettyClient</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ </configuration>
|
|
|
+ </plugin>-->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>3.1.1</version>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <mainClass>com.dzdy.dim.NettyClient</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id> <!-- this is used for inheritance merges -->
|
|
|
+ <phase>package</phase> <!-- 指定在打包节点执行jar包合并操作 -->
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
</project>
|