pom.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.techempower</groupId>
  4. <artifactId>netty-example</artifactId>
  5. <version>0.1</version>
  6. <packaging>jar</packaging>
  7. <dependencies>
  8. <dependency>
  9. <groupId>io.netty</groupId>
  10. <artifactId>netty-codec-http</artifactId>
  11. <version>4.0.0.CR1</version>
  12. </dependency>
  13. <dependency>
  14. <groupId>com.fasterxml.jackson.core</groupId>
  15. <artifactId>jackson-databind</artifactId>
  16. <version>2.1.1</version>
  17. </dependency>
  18. </dependencies>
  19. <build>
  20. <plugins>
  21. <plugin>
  22. <inherited>true</inherited>
  23. <groupId>org.apache.maven.plugins</groupId>
  24. <artifactId>maven-compiler-plugin</artifactId>
  25. <version>2.3.2</version>
  26. <configuration>
  27. <source>1.7</source>
  28. <target>1.7</target>
  29. <optimize>true</optimize>
  30. <debug>false</debug>
  31. </configuration>
  32. </plugin>
  33. <plugin>
  34. <artifactId>maven-assembly-plugin</artifactId>
  35. <configuration>
  36. <archive>
  37. <manifest>
  38. <mainClass>hello.HelloWebServer</mainClass>
  39. </manifest>
  40. </archive>
  41. <descriptorRefs>
  42. <descriptorRef>jar-with-dependencies</descriptorRef>
  43. </descriptorRefs>
  44. </configuration>
  45. <executions>
  46. <execution>
  47. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  48. <phase>package</phase> <!-- bind to the packaging phase -->
  49. <goals>
  50. <goal>single</goal>
  51. </goals>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. </plugins>
  56. </build>
  57. </project>