pom.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.dzdy</groupId>
  7. <artifactId>dim-client</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <dependencies>
  10. <dependency>
  11. <groupId>com.dzdy</groupId>
  12. <artifactId>dim-common</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. </dependency>
  15. </dependencies>
  16. <build>
  17. <plugins>
  18. <plugin>
  19. <groupId>org.apache.maven.plugins</groupId>
  20. <artifactId>maven-compiler-plugin</artifactId>
  21. <version>3.7.0</version>
  22. <configuration>
  23. <source>1.8</source>
  24. <target>1.8</target>
  25. </configuration>
  26. </plugin>
  27. <!--<plugin>
  28. &lt;!&ndash; Build an executable JAR &ndash;&gt;
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-jar-plugin</artifactId>
  31. <version>3.0.2</version>
  32. <configuration>
  33. <archive>
  34. <manifest>
  35. <addClasspath>true</addClasspath>
  36. <classpathPrefix>lib/</classpathPrefix>
  37. <mainClass>com.dzdy.dim.NettyClient</mainClass>
  38. </manifest>
  39. </archive>
  40. </configuration>
  41. </plugin>-->
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-assembly-plugin</artifactId>
  45. <version>3.1.1</version>
  46. <configuration>
  47. <archive>
  48. <manifest>
  49. <mainClass>com.dzdy.dim.NettyClient</mainClass>
  50. </manifest>
  51. </archive>
  52. <descriptorRefs>
  53. <descriptorRef>jar-with-dependencies</descriptorRef>
  54. </descriptorRefs>
  55. </configuration>
  56. <executions>
  57. <execution>
  58. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  59. <phase>package</phase> <!-- 指定在打包节点执行jar包合并操作 -->
  60. <goals>
  61. <goal>single</goal>
  62. </goals>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. </plugins>
  67. </build>
  68. </project>