pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.xingye</groupId>
  6. <artifactId>atswingtool</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>atswingtool</name>
  9. <description>atswingtool</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.apache.httpcomponents</groupId>
  16. <artifactId>httpclient</artifactId>
  17. <version>4.5.10</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.apache.httpcomponents</groupId>
  21. <artifactId>httpmime</artifactId>
  22. <version>4.5.10</version>
  23. </dependency>
  24. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
  25. <dependency>
  26. <groupId>org.eclipse.jetty</groupId>
  27. <artifactId>jetty-server</artifactId>
  28. <version>9.4.8.v20171121</version>
  29. </dependency>
  30. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-webapp -->
  31. <dependency>
  32. <groupId>org.eclipse.jetty</groupId>
  33. <artifactId>jetty-webapp</artifactId>
  34. <version>9.4.8.v20171121</version>
  35. </dependency>
  36. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-io -->
  37. <dependency>
  38. <groupId>org.eclipse.jetty</groupId>
  39. <artifactId>jetty-io</artifactId>
  40. <version>9.4.8.v20171121</version>
  41. </dependency>
  42. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
  43. <dependency>
  44. <groupId>org.eclipse.jetty</groupId>
  45. <artifactId>jetty-util</artifactId>
  46. <version>9.4.8.v20171121</version>
  47. </dependency>
  48. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-servlet -->
  49. <dependency>
  50. <groupId>org.eclipse.jetty</groupId>
  51. <artifactId>jetty-servlets</artifactId>
  52. <version>9.4.8.v20171121</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.google.code.gson</groupId>
  56. <artifactId>gson</artifactId>
  57. <version>2.8.0</version>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <sourceDirectory>src/main/java</sourceDirectory>
  62. <resources>
  63. <resource>
  64. <directory>src/main/profiles/${env}</directory>
  65. </resource>
  66. <resource>
  67. <directory>src/main/resources</directory>
  68. </resource>
  69. </resources>
  70. <plugins>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-shade-plugin</artifactId>
  74. <version>2.4</version>
  75. <executions>
  76. <execution>
  77. <phase>package</phase>
  78. <goals>
  79. <goal>shade</goal>
  80. </goals>
  81. <configuration>
  82. <filters>
  83. <filter>
  84. <artifact>*:*</artifact>
  85. </filter>
  86. </filters>
  87. <transformers>
  88. <transformer
  89. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  90. <resource>META-INF/spring.handlers</resource>
  91. </transformer>
  92. <transformer
  93. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  94. <resource>META-INF/spring.schemas</resource>
  95. </transformer>
  96. </transformers>
  97. <artifactSet>
  98. </artifactSet>
  99. <!--<outputFile>${project.build.directory}/${project.artifactId}-${project.version}.jar</outputFile>-->
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.eclipse.jetty</groupId>
  106. <artifactId>jetty-maven-plugin</artifactId>
  107. <version>9.3.0.M2</version>
  108. <configuration>
  109. <webAppConfig>
  110. <contextPath>/atswingtool</contextPath>
  111. </webAppConfig>
  112. <scanIntervalSeconds>0</scanIntervalSeconds>
  113. </configuration>
  114. <dependencies></dependencies>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-compiler-plugin</artifactId>
  119. <version>2.3.2</version>
  120. <configuration>
  121. <source>1.8</source>
  122. <target>1.8</target>
  123. <encoding>UTF-8</encoding>
  124. </configuration>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. </project>