pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. <groupId>cn.vbdsm</groupId>
  5. <artifactId>vbdsm-api</artifactId>
  6. <version>2.0.0</version>
  7. <distributionManagement>
  8. <repository>
  9. <id>vbpdsm-releases</id>
  10. <name>Releases</name>
  11. <url>http://shvber.com:8881/repository/vbpdsm-releases/</url>
  12. </repository>
  13. <snapshotRepository>
  14. <id>vbpdsm-snapshots</id>
  15. <name>Snapshot</name>
  16. <url>http://shvber.com:8881/repository/vbpdsm-snapshots/</url>
  17. </snapshotRepository>
  18. </distributionManagement>
  19. <repositories>
  20. <repository>
  21. <id>vbpdsm</id>
  22. <name>vbpdsm Repository</name>
  23. <url>http://shvber.com:8881/repository/vbpdsm/</url>
  24. <snapshots>
  25. <enabled>true</enabled>
  26. </snapshots>
  27. </repository>
  28. </repositories>
  29. <profiles>
  30. <profile>
  31. <id>local</id>
  32. <activation>
  33. <activeByDefault>false</activeByDefault>
  34. </activation>
  35. <properties>
  36. <package.environment>local</package.environment>
  37. </properties>
  38. </profile>
  39. <profile>
  40. <id>test</id>
  41. <activation>
  42. <activeByDefault>true</activeByDefault>
  43. </activation>
  44. <properties>
  45. <package.environment>test</package.environment>
  46. </properties>
  47. </profile>
  48. <profile>
  49. <id>product</id>
  50. <activation>
  51. <activeByDefault>false</activeByDefault>
  52. </activation>
  53. <properties>
  54. <package.environment>product</package.environment>
  55. </properties>
  56. </profile>
  57. </profiles>
  58. <properties>
  59. <core.common.version>1.0</core.common.version>
  60. <spring.version>3.1.2.RELEASE</spring.version>
  61. </properties>
  62. <dependencies>
  63. <dependency>
  64. <groupId>javax.persistence</groupId>
  65. <artifactId>persistence-api</artifactId>
  66. <version>1.0</version>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <finalName>${artifactId}</finalName>
  71. <plugins>
  72. <plugin>
  73. <artifactId>maven-compiler-plugin</artifactId>
  74. <version>2.3.2</version>
  75. <configuration>
  76. <source>1.6</source>
  77. <target>1.6</target>
  78. <encoding>UTF-8</encoding>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <artifactId>maven-resources-plugin</artifactId>
  83. <version>2.5</version>
  84. <executions>
  85. <execution>
  86. <id>copy-resources</id>
  87. <!-- here the phase you need -->
  88. <phase>validate</phase>
  89. <goals>
  90. <goal>copy-resources</goal>
  91. </goals>
  92. <configuration>
  93. <encoding>UTF-8</encoding>
  94. <outputDirectory>${basedir}/target/classes</outputDirectory>
  95. <resources>
  96. <resource>
  97. <directory>src/main/resources/${package.environment}</directory>
  98. <includes>
  99. <include>**/*.*</include>
  100. </includes>
  101. <filtering>true</filtering>
  102. </resource>
  103. </resources>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. <plugin>
  109. <artifactId>maven-assembly-plugin</artifactId>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <version>2.2-beta-2</version>
  112. <configuration>
  113. <finalName>${project.artifactId}</finalName>
  114. <descriptors>
  115. <descriptor>src/main/assembly/distribution.xml</descriptor>
  116. </descriptors>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>make-assembly</id>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>single</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-source-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <goals>
  134. <goal>jar</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. </project>