pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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.jpsoft.uniview</groupId>
  7. <artifactId>uniview-mini-server</artifactId>
  8. <version>1.0.0</version>
  9. <description>宇视迷你服务器</description>
  10. <packaging>jar</packaging>
  11. <properties>
  12. <netty-all.version>4.1.6.Final</netty-all.version>
  13. <lombok.version>1.16.12</lombok.version>
  14. <fastjson.version>1.2.29</fastjson.version>
  15. <junit.version>4.12</junit.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>io.netty</groupId>
  20. <artifactId>netty-all</artifactId>
  21. <version>${netty-all.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.apache.commons</groupId>
  25. <artifactId>commons-lang3</artifactId>
  26. <version>3.11</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.projectlombok</groupId>
  30. <artifactId>lombok</artifactId>
  31. <version>${lombok.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.slf4j</groupId>
  35. <artifactId>slf4j-api</artifactId>
  36. <version>1.7.25</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.slf4j</groupId>
  40. <artifactId>slf4j-log4j12</artifactId>
  41. <version>1.7.25</version>
  42. <!-- <scope>test</scope> -->
  43. </dependency>
  44. <dependency>
  45. <groupId>cn.hutool</groupId>
  46. <artifactId>hutool-all</artifactId>
  47. <version>5.0.6</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>junit</groupId>
  51. <artifactId>junit</artifactId>
  52. <version>${junit.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>joda-time</groupId>
  56. <artifactId>joda-time</artifactId>
  57. <version>2.10.5</version>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-compiler-plugin</artifactId>
  65. <version>2.5.1</version>
  66. <configuration>
  67. <source>1.8</source>
  68. <target>1.8</target>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-dependency-plugin</artifactId>
  74. <executions>
  75. <execution>
  76. <id>copy-dependencies</id>
  77. <phase>package</phase>
  78. <goals>
  79. <goal>copy-dependencies</goal>
  80. </goals>
  81. <configuration>
  82. <outputDirectory>target/lib</outputDirectory>
  83. <excludeTransitive>false</excludeTransitive>
  84. <stripVersion>false</stripVersion>
  85. <includeScope>runtime</includeScope>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-maven-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <goals>
  96. <goal>repackage</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. <configuration>
  101. <layout>ZIP</layout>
  102. <includes>
  103. <!-- 设置没有jar包,-Dloader.path=lib/-->
  104. <include>
  105. <groupId>nothing</groupId>
  106. <artifactId>nothing</artifactId>
  107. </include>
  108. </includes>
  109. <mainClass>com.jpsoft.uniview.MainApplication</mainClass>
  110. </configuration>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </project>