pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>io.netty</groupId>
  21. <artifactId>netty-all</artifactId>
  22. <version>${netty-all.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.apache.commons</groupId>
  26. <artifactId>commons-lang3</artifactId>
  27. <version>3.11</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <version>${lombok.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.slf4j</groupId>
  36. <artifactId>slf4j-api</artifactId>
  37. <version>1.7.25</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.slf4j</groupId>
  41. <artifactId>slf4j-log4j12</artifactId>
  42. <version>1.7.25</version>
  43. <!-- <scope>test</scope> -->
  44. </dependency>
  45. <dependency>
  46. <groupId>cn.hutool</groupId>
  47. <artifactId>hutool-all</artifactId>
  48. <version>5.0.6</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>junit</groupId>
  52. <artifactId>junit</artifactId>
  53. <version>${junit.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>joda-time</groupId>
  57. <artifactId>joda-time</artifactId>
  58. <version>2.10.5</version>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <plugins>
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <version>2.5.1</version>
  67. <configuration>
  68. <source>1.8</source>
  69. <target>1.8</target>
  70. </configuration>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>copy-dependencies</id>
  78. <phase>package</phase>
  79. <goals>
  80. <goal>copy-dependencies</goal>
  81. </goals>
  82. <configuration>
  83. <outputDirectory>target/lib</outputDirectory>
  84. <excludeTransitive>false</excludeTransitive>
  85. <stripVersion>false</stripVersion>
  86. <includeScope>runtime</includeScope>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-maven-plugin</artifactId>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>repackage</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. <configuration>
  102. <layout>ZIP</layout>
  103. <includes>
  104. <!-- 设置没有jar包,-Dloader.path=lib/-->
  105. <include>
  106. <groupId>nothing</groupId>
  107. <artifactId>nothing</artifactId>
  108. </include>
  109. </includes>
  110. <mainClass>com.jpsoft.uniview.MainApplication</mainClass>
  111. </configuration>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>