pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.zheng</groupId>
  8. <artifactId>zheng-demo</artifactId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <groupId>${project.parent.groupId}</groupId>
  12. <artifactId>zheng-demo-rpc-service</artifactId>
  13. <version>${project.parent.version}</version>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>${project.parent.groupId}</groupId>
  20. <artifactId>zheng-demo-rpc-api</artifactId>
  21. <version>1.0.0</version>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>org.apache.maven.plugins</groupId>
  28. <artifactId>maven-deploy-plugin</artifactId>
  29. <version>2.4</version>
  30. <configuration>
  31. <skip>true</skip>
  32. </configuration>
  33. </plugin>
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-jar-plugin</artifactId>
  37. <version>2.4</version>
  38. <configuration>
  39. <excludes>
  40. <exclude>**/*.properties</exclude>
  41. </excludes>
  42. </configuration>
  43. </plugin>
  44. <plugin>
  45. <artifactId>maven-assembly-plugin</artifactId>
  46. <configuration>
  47. <descriptor>src/main/assembly/assembly.xml</descriptor>
  48. </configuration>
  49. <executions>
  50. <execution>
  51. <id>make-assembly</id>
  52. <phase>package</phase>
  53. <goals>
  54. <goal>single</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <version>2.3.2</version>
  62. <configuration>
  63. <source>1.7</source>
  64. <target>1.7</target>
  65. <encoding>UTF-8</encoding>
  66. </configuration>
  67. <dependencies>
  68. <dependency>
  69. <groupId>org.codehaus.plexus</groupId>
  70. <artifactId>plexus-compiler-javac</artifactId>
  71. <version>1.8.1</version>
  72. </dependency>
  73. </dependencies>
  74. </plugin>
  75. <plugin>
  76. <artifactId>maven-resources-plugin</artifactId>
  77. <version>2.6</version>
  78. <configuration>
  79. <encoding>UTF-8</encoding>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-surefire-plugin</artifactId>
  85. <version>2.10</version>
  86. <configuration>
  87. <skip>true</skip>
  88. <testFailureIgnore>true</testFailureIgnore>
  89. </configuration>
  90. </plugin>
  91. </plugins>
  92. <resources>
  93. <resource>
  94. <directory>src/main/resources</directory>
  95. <includes>
  96. <include>**/*.sh</include>
  97. </includes>
  98. </resource>
  99. <resource>
  100. <directory>src/main/resources</directory>
  101. <includes>
  102. <include>**/*.bat</include>
  103. </includes>
  104. </resource>
  105. <resource>
  106. <directory>src/main/java</directory>
  107. <includes>
  108. <include>**/*.xml</include>
  109. </includes>
  110. </resource>
  111. <resource>
  112. <directory>src/main/resources</directory>
  113. <includes>
  114. <include>**/*.xml</include>
  115. <include>**/*.properties</include>
  116. </includes>
  117. </resource>
  118. <resource>
  119. <directory>src/main/resources</directory>
  120. <filtering>true</filtering>
  121. </resource>
  122. </resources>
  123. </build>
  124. </project>