Advertisement
Guest User

pom.xml

a guest
Aug 17th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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.  
  5. <parent>
  6. <groupId>org.openmrs.module</groupId>
  7. <artifactId>formfilter</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10.  
  11. <artifactId>formfilter-omod</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Form Filter Module OMOD</name>
  14. <description>OMOD project for FormFilter</description>
  15.  
  16. <dependencies>
  17.  
  18. <!--
  19. Add other dependencies from parent's pom:
  20. <dependency>
  21. <groupId>org.other.library</groupId>
  22. <artifactId>library-name</artifactId>
  23. </dependency>
  24. -->
  25.  
  26. <!-- Begin OpenMRS modules -->
  27.  
  28. <dependency>
  29. <groupId>${project.parent.groupId}</groupId>
  30. <artifactId>${project.parent.artifactId}-api</artifactId>
  31. <version>${project.parent.version}</version>
  32. </dependency>
  33.  
  34.  
  35. <!-- End OpenMRS modules -->
  36.  
  37.  
  38. <!-- Begin OpenMRS core -->
  39.  
  40. <dependency>
  41. <groupId>org.openmrs.api</groupId>
  42. <artifactId>openmrs-api</artifactId>
  43. <type>jar</type>
  44. </dependency>
  45.  
  46. <dependency>
  47. <groupId>org.openmrs.web</groupId>
  48. <artifactId>openmrs-web</artifactId>
  49. <type>jar</type>
  50. </dependency>
  51.  
  52. <dependency>
  53. <groupId>org.openmrs.test</groupId>
  54. <artifactId>openmrs-test</artifactId>
  55. <type>jar</type>
  56. </dependency>
  57.  
  58.  
  59. <!-- End OpenMRS core -->
  60.  
  61. </dependencies>
  62.  
  63. <build>
  64. <finalName>${project.parent.artifactId}-${project.parent.version}</finalName>
  65.  
  66. <resources>
  67. <resource>
  68. <directory>src/main/resources</directory>
  69. <filtering>true</filtering>
  70. </resource>
  71. <resource>
  72. <directory>src/main/webapp</directory>
  73. <filtering>false</filtering>
  74. <excludes>
  75. <exclude>resources</exclude>
  76. </excludes>
  77. <targetPath>web/module</targetPath>
  78. </resource>
  79. <resource>
  80. <directory>src/main/webapp</directory>
  81. <filtering>false</filtering>
  82. <includes>
  83. <include>resources</include>
  84. </includes>
  85. <targetPath>web/module</targetPath>
  86. </resource>
  87. </resources>
  88.  
  89. <testResources>
  90. <testResource>
  91. <directory>src/test/resources</directory>
  92. <filtering>true</filtering>
  93. </testResource>
  94. </testResources>
  95.  
  96. <pluginManagement>
  97. <plugins>
  98. <plugin>
  99. <artifactId>maven-resources-plugin</artifactId>
  100. <configuration>
  101. <includeEmptyDirs>true</includeEmptyDirs>
  102. </configuration>
  103. </plugin>
  104. <!--This plugin's configuration is used to store Eclipse m2e settings
  105. only. It has no influence on the Maven build itself. -->
  106. <plugin>
  107. <groupId>org.eclipse.m2e</groupId>
  108. <artifactId>lifecycle-mapping</artifactId>
  109. <version>1.0.0</version>
  110. <configuration>
  111. <lifecycleMappingMetadata>
  112. <pluginExecutions>
  113. <pluginExecution>
  114. <pluginExecutionFilter>
  115. <groupId>org.openmrs.maven.plugins</groupId>
  116. <artifactId>maven-openmrs-plugin</artifactId>
  117. <versionRange>[1.0.1,)</versionRange>
  118. <goals>
  119. <goal>initialize-module</goal>
  120. </goals>
  121. </pluginExecutionFilter>
  122. <action>
  123. <ignore></ignore>
  124. </action>
  125. </pluginExecution>
  126. <pluginExecution>
  127. <pluginExecutionFilter>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-dependency-plugin</artifactId>
  130. <versionRange>[2.4,)</versionRange>
  131. <goals>
  132. <goal>unpack-dependencies</goal>
  133. </goals>
  134. </pluginExecutionFilter>
  135. <action>
  136. <ignore></ignore>
  137. </action>
  138. </pluginExecution>
  139. </pluginExecutions>
  140. </lifecycleMappingMetadata>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </pluginManagement>
  145.  
  146. <plugins>
  147. <plugin>
  148. <groupId>org.openmrs.maven.plugins</groupId>
  149. <artifactId>maven-openmrs-plugin</artifactId>
  150. <extensions>true</extensions>
  151. <executions>
  152. <execution>
  153. <id>init</id>
  154. <phase>initialize</phase>
  155. <goals>
  156. <goal>initialize-module</goal>
  157. </goals>
  158. </execution>
  159. <execution>
  160. <id>pack</id>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>package-module</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-dependency-plugin</artifactId>
  171. <executions>
  172. <execution>
  173. <id>Expand moduleApplicationContext and messages</id>
  174. <goals>
  175. <goal>unpack-dependencies</goal>
  176. </goals>
  177. <phase>generate-resources</phase>
  178. <configuration>
  179. <includeGroupIds>${project.parent.groupId}</includeGroupIds>
  180. <includeArtifactIds>${project.parent.artifactId}-api</includeArtifactIds>
  181. <excludeTransitive>true</excludeTransitive>
  182. <includes>**/*</includes>
  183. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  184. </configuration>
  185. </execution>
  186. </executions>
  187. </plugin>
  188.  
  189.  
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-surefire-plugin</artifactId>
  193. <version>2.9</version>
  194. <configuration>
  195. <excludes>
  196. <exclude>**/*.java</exclude>
  197. </excludes>
  198. </configuration>
  199. </plugin>
  200.  
  201. </plugins>
  202. </build>
  203.  
  204. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement