pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.techempower</groupId>
  6. <artifactId>wildfly-ee7</artifactId>
  7. <version>0.1</version>
  8. <packaging>war</packaging>
  9. <properties>
  10. <database.host>localhost</database.host>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <version.compiler.plugin>3.1</version.compiler.plugin>
  13. <version.war.plugin>2.4</version.war.plugin>
  14. <version.wildfly>8.2.0.Final</version.wildfly>
  15. <version.mysql.connector>5.1.34</version.mysql.connector>
  16. <version.javaee.api>7.0</version.javaee.api>
  17. <version.jboss.spec.javaee.7.0>1.0.0.Final</version.jboss.spec.javaee.7.0>
  18. </properties>
  19. <repositories>
  20. <repository>
  21. <id>jboss-public-repository-group</id>
  22. <name>JBoss Public Maven Repository Group</name>
  23. <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
  24. <layout>default</layout>
  25. <releases>
  26. <enabled>true</enabled>
  27. <updatePolicy>never</updatePolicy>
  28. </releases>
  29. <snapshots>
  30. <enabled>true</enabled>
  31. <updatePolicy>never</updatePolicy>
  32. </snapshots>
  33. </repository>
  34. </repositories>
  35. <dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.jboss.spec</groupId>
  39. <artifactId>jboss-javaee-7.0</artifactId>
  40. <version>${version.jboss.spec.javaee.7.0}</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.wildfly</groupId>
  46. <artifactId>wildfly-dist-parent</artifactId>
  47. <version>${version.wildfly}</version>
  48. <type>pom</type>
  49. <scope>import</scope>
  50. </dependency>
  51. </dependencies>
  52. </dependencyManagement>
  53. <dependencies>
  54. <dependency>
  55. <groupId>javax</groupId>
  56. <artifactId>javaee-api</artifactId>
  57. <version>${version.javaee.api}</version>
  58. <scope>provided</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.jboss.spec.javax.servlet</groupId>
  62. <artifactId>jboss-servlet-api_3.1_spec</artifactId>
  63. <scope>provided</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.jboss.resteasy</groupId>
  67. <artifactId>resteasy-jaxrs</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.jboss.spec.javax.ejb</groupId>
  72. <artifactId>jboss-ejb-api_3.2_spec</artifactId>
  73. <scope>provided</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.jboss.logging</groupId>
  77. <artifactId>jboss-logging</artifactId>
  78. <scope>provided</scope>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <finalName>${project.artifactId}</finalName>
  83. <plugins>
  84. <plugin>
  85. <artifactId>maven-war-plugin</artifactId>
  86. <version>${version.war.plugin}</version>
  87. <configuration>
  88. <failOnMissingWebXml>false</failOnMissingWebXml>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <artifactId>maven-compiler-plugin</artifactId>
  93. <version>${version.compiler.plugin}</version>
  94. <configuration>
  95. <source>1.7</source>
  96. <target>1.7</target>
  97. <optimize>true</optimize>
  98. <debug>false</debug>
  99. </configuration>
  100. </plugin>
  101. </plugins>
  102. </build>
  103. <profiles>
  104. <profile>
  105. <id>benchmark</id>
  106. <build>
  107. <plugins>
  108. <plugin>
  109. <artifactId>maven-war-plugin</artifactId>
  110. <version>${version.war.plugin}</version>
  111. <configuration>
  112. <failOnMissingWebXml>false</failOnMissingWebXml>
  113. <outputDirectory>${project.build.directory}/wildfly-${version.wildfly}/standalone/deployments</outputDirectory>
  114. </configuration>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-dependency-plugin</artifactId>
  119. <version>2.8</version>
  120. <executions>
  121. <execution>
  122. <phase>initialize</phase>
  123. <id>unpack-wildfly-server</id>
  124. <goals>
  125. <goal>unpack</goal>
  126. </goals>
  127. <configuration>
  128. <artifactItems>
  129. <artifactItem>
  130. <groupId>org.wildfly</groupId>
  131. <artifactId>wildfly-dist</artifactId>
  132. <version>${version.wildfly}</version>
  133. <type>zip</type>
  134. <overWrite>false</overWrite>
  135. <outputDirectory>${project.build.directory}</outputDirectory>
  136. </artifactItem>
  137. </artifactItems>
  138. </configuration>
  139. </execution>
  140. <execution>
  141. <phase>initialize</phase>
  142. <id>copy-mysql-driver</id>
  143. <goals>
  144. <goal>copy</goal>
  145. </goals>
  146. <configuration>
  147. <artifactItems>
  148. <artifactItem>
  149. <groupId>mysql</groupId>
  150. <artifactId>mysql-connector-java</artifactId>
  151. <version>${version.mysql.connector}</version>
  152. <type>jar</type>
  153. <outputDirectory>${project.build.directory}/wildfly-${version.wildfly}/standalone/deployments</outputDirectory>
  154. </artifactItem>
  155. </artifactItems>
  156. </configuration>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <artifactId>maven-resources-plugin</artifactId>
  162. <version>2.6</version>
  163. <executions>
  164. <execution>
  165. <phase>initialize</phase>
  166. <id>copy-mysql-datasource</id>
  167. <goals>
  168. <goal>copy-resources</goal>
  169. </goals>
  170. <configuration>
  171. <outputDirectory>${project.build.directory}/wildfly-${version.wildfly}/standalone/deployments</outputDirectory>
  172. <resources>
  173. <resource>
  174. <directory>${basedir}/server-resources/datasources</directory>
  175. <filtering>true</filtering>
  176. </resource>
  177. </resources>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. </plugins>
  183. </build>
  184. </profile>
  185. </profiles>
  186. </project>