pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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>hello.world</groupId>
  7. <artifactId>hello-blade</artifactId>
  8. <version>1.0.0-BUILD-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  12. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  13. <java.version>1.8</java.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.bladejava</groupId>
  18. <artifactId>blade-mvc</artifactId>
  19. <version>2.0.7-beta2</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.bladejava</groupId>
  23. <artifactId>blade-jdbc</artifactId>
  24. <version>0.2.2-RELEASE</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>io.netty</groupId>
  28. <artifactId>netty-transport-native-epoll</artifactId>
  29. <version>4.1.22.Final</version>
  30. <classifier>linux-x86_64</classifier>
  31. </dependency>
  32. <dependency>
  33. <groupId>mysql</groupId>
  34. <artifactId>mysql-connector-java</artifactId>
  35. <version>5.1.47</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.zaxxer</groupId>
  39. <artifactId>HikariCP</artifactId>
  40. <version>2.7.8</version>
  41. </dependency>
  42. </dependencies>
  43. <repositories>
  44. <repository>
  45. <id>oss-releases</id>
  46. <url>https://oss.sonatype.org/content/repositories/releases</url>
  47. <releases>
  48. <enabled>true</enabled>
  49. </releases>
  50. <snapshots>
  51. <enabled>false</enabled>
  52. </snapshots>
  53. </repository>
  54. </repositories>
  55. <build>
  56. <resources>
  57. <resource>
  58. <directory>src/main/java</directory>
  59. <filtering>false</filtering>
  60. <excludes>
  61. <exclude>**/*.java</exclude>
  62. </excludes>
  63. </resource>
  64. </resources>
  65. <extensions>
  66. <extension>
  67. <groupId>kr.motd.maven</groupId>
  68. <artifactId>os-maven-plugin</artifactId>
  69. <version>1.5.0.Final</version>
  70. </extension>
  71. </extensions>
  72. <plugins>
  73. <plugin>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <configuration>
  76. <source>1.8</source>
  77. <target>1.8</target>
  78. <encoding>UTF-8</encoding>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <artifactId>maven-assembly-plugin</artifactId>
  83. <configuration>
  84. <appendAssemblyId>false</appendAssemblyId>
  85. <descriptors>
  86. <descriptor>package.xml</descriptor>
  87. </descriptors>
  88. <outputDirectory>${project.build.directory}/dist/</outputDirectory>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <id>make-assembly</id>
  93. <phase>package</phase>
  94. <goals>
  95. <goal>single</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-jar-plugin</artifactId>
  103. <version>2.4</version>
  104. <configuration>
  105. <archive>
  106. <manifest>
  107. <mainClass>hello.Application</mainClass>
  108. <classpathPrefix>lib/</classpathPrefix>
  109. <addClasspath>true</addClasspath>
  110. </manifest>
  111. <manifestEntries>
  112. <!-- Add the path to the configuration file under Class-Path -->
  113. <Class-Path>resources/</Class-Path>
  114. </manifestEntries>
  115. </archive>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. </project>