pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.yiidata.mvc</groupId>
  5. <artifactId>jetty-simple-mvc</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>jar</packaging>
  8. <name>yiidata mvc</name>
  9. <url>http://www.yiidata.com/jetty-simple-mvc</url>
  10. <properties>
  11. <jetty.version>6.1.26</jetty.version>
  12. <java.main.class>com.yiidata.mvc.Booster</java.main.class>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.google.inject</groupId>
  17. <artifactId>guice</artifactId>
  18. <version>4.1.0</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>joda-time</groupId>
  22. <artifactId>joda-time</artifactId>
  23. <version>2.9.9</version>
  24. <optional>true</optional>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.slf4j</groupId>
  28. <artifactId>slf4j-api</artifactId>
  29. <version>1.7.5</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.slf4j</groupId>
  33. <artifactId>slf4j-log4j12</artifactId>
  34. <version>1.7.5</version>
  35. <optional>true</optional>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.alibaba</groupId>
  39. <artifactId>fastjson</artifactId>
  40. <version>1.2.40</version>
  41. <optional>true</optional>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.mortbay.jetty</groupId>
  45. <artifactId>jetty</artifactId>
  46. <version>${jetty.version}</version>
  47. <optional>true</optional>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.mortbay.jetty</groupId>
  51. <artifactId>jetty-util</artifactId>
  52. <version>${jetty.version}</version>
  53. <optional>true</optional>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.google.guava</groupId>
  57. <artifactId>guava</artifactId>
  58. <version>23.0</version>
  59. <exclusions>
  60. <exclusion>
  61. <groupId>com.google.code.findbugs</groupId>
  62. <artifactId>jsr305</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.freemarker</groupId>
  68. <artifactId>freemarker</artifactId>
  69. <version>2.3.23</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>commons-lang</groupId>
  73. <artifactId>commons-lang</artifactId>
  74. <version>2.6</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>commons-fileupload</groupId>
  78. <artifactId>commons-fileupload</artifactId>
  79. <version>1.3.2</version>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <plugins>
  84. <plugin>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <configuration>
  87. <source>1.8</source>
  88. <target>1.8</target>
  89. <encoding>UTF-8</encoding>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.codehaus.mojo</groupId>
  94. <artifactId>exec-maven-plugin</artifactId>
  95. <version>1.2.1</version>
  96. <configuration>
  97. <!-- 简单启动,exec:java -->
  98. <mainClass>${java.main.class}</mainClass>
  99. <!-- 定制参数启动, exec:exec -->
  100. <!--
  101. <executable>java</executable>
  102. <arguments>
  103. <argument>-Xmx512m</argument>
  104. <argument>-classpath</argument>
  105. <classpath/>
  106. <argument>${java.main.class}</argument>
  107. </arguments>
  108. -->
  109. </configuration>
  110. <executions>
  111. <execution>
  112. <goals>
  113. <goal>java</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. </project>