pom.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.techempower</groupId>
  7. <artifactId>jetty-servlet-example</artifactId>
  8. <version>0.1</version>
  9. <dependencies>
  10. <!-- Web server -->
  11. <dependency>
  12. <groupId>org.eclipse.jetty</groupId>
  13. <artifactId>jetty-servlet</artifactId>
  14. <version>9.1.0.v20131115</version>
  15. </dependency>
  16. <dependency>
  17. <groupId>org.eclipse.jetty</groupId>
  18. <artifactId>jetty-util-ajax</artifactId>
  19. <version>9.1.0.v20131115</version>
  20. </dependency>
  21. </dependencies>
  22. <build>
  23. <plugins>
  24. <plugin>
  25. <inherited>true</inherited>
  26. <groupId>org.apache.maven.plugins</groupId>
  27. <artifactId>maven-compiler-plugin</artifactId>
  28. <version>2.3.2</version>
  29. <configuration>
  30. <source>1.7</source>
  31. <target>1.7</target>
  32. <optimize>true</optimize>
  33. <debug>false</debug>
  34. </configuration>
  35. </plugin>
  36. <plugin>
  37. <artifactId>maven-assembly-plugin</artifactId>
  38. <configuration>
  39. <archive>
  40. <manifest>
  41. <mainClass>hello.HelloWebServer</mainClass>
  42. </manifest>
  43. </archive>
  44. <descriptorRefs>
  45. <descriptorRef>jar-with-dependencies</descriptorRef>
  46. </descriptorRefs>
  47. </configuration>
  48. <executions>
  49. <execution>
  50. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  51. <phase>package</phase> <!-- bind to the packaging phase -->
  52. <goals>
  53. <goal>single</goal>
  54. </goals>
  55. </execution>
  56. </executions>
  57. </plugin>
  58. </plugins>
  59. </build>
  60. </project>