pom.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>cn.vbdsm</groupId>
  6. <artifactId>vbdsm-common</artifactId>
  7. <version>2.1.0</version>
  8. </parent>
  9. <artifactId>vbdsm-api</artifactId>
  10. <name>${project.artifactId}</name>
  11. <dependencies>
  12. <dependency>
  13. <groupId>javax.persistence</groupId>
  14. <artifactId>persistence-api</artifactId>
  15. </dependency>
  16. </dependencies>
  17. <build>
  18. <finalName>${project.artifactId}</finalName>
  19. <plugins>
  20. <plugin>
  21. <artifactId>maven-compiler-plugin</artifactId>
  22. <version>2.3.2</version>
  23. <configuration>
  24. <source>1.6</source>
  25. <target>1.6</target>
  26. <encoding>UTF-8</encoding>
  27. </configuration>
  28. </plugin>
  29. <plugin>
  30. <artifactId>maven-resources-plugin</artifactId>
  31. <version>2.5</version>
  32. <executions>
  33. <execution>
  34. <id>copy-resources</id>
  35. <!-- here the phase you need -->
  36. <phase>validate</phase>
  37. <goals>
  38. <goal>copy-resources</goal>
  39. </goals>
  40. <configuration>
  41. <encoding>UTF-8</encoding>
  42. <outputDirectory>${basedir}/target/classes</outputDirectory>
  43. <resources>
  44. <resource>
  45. <directory>src/main/resources/${package.environment}</directory>
  46. <includes>
  47. <include>**/*.*</include>
  48. </includes>
  49. <filtering>true</filtering>
  50. </resource>
  51. </resources>
  52. </configuration>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <artifactId>maven-assembly-plugin</artifactId>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <version>2.2-beta-2</version>
  60. <configuration>
  61. <finalName>${project.artifactId}</finalName>
  62. <descriptors>
  63. <descriptor>src/main/assembly/distribution.xml</descriptor>
  64. </descriptors>
  65. </configuration>
  66. <executions>
  67. <execution>
  68. <id>make-assembly</id>
  69. <phase>package</phase>
  70. <goals>
  71. <goal>single</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-source-plugin</artifactId>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>jar</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. </plugins>
  88. </build>
  89. </project>