Guest User

Untitled

a guest
May 30th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 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>dependencyexample</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10.  
  11. <artifactId>dependencyexample-omod</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Dependency Example Module OMOD</name>
  14. <description>OMOD project for DependencyExample</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. <dependency>
  36.  
  37. <groupId>org.openmrs.module</groupId>
  38.  
  39. <artifactId>webservices.rest-omod-api</artifactId>
  40. <version>2.0</version>
  41. <scope>provided</scope>
  42.  
  43. </dependency>
  44.  
  45. <dependency>
  46.  
  47. <groupId>org.openmrs.module</groupId>
  48.  
  49. <artifactId>webservices.rest-omod-common-api</artifactId>
  50. <version>2.0</version>
  51. <scope>test</scope>
  52. </dependency>
  53.  
  54. <!-- End OpenMRS modules -->
  55.  
  56.  
  57. <!-- Begin OpenMRS core -->
  58.  
  59. <dependency>
  60. <groupId>org.openmrs.api</groupId>
  61. <artifactId>openmrs-api</artifactId>
  62. <type>jar</type>
  63. </dependency>
  64.  
  65. <dependency>
  66. <groupId>org.openmrs.web</groupId>
  67. <artifactId>openmrs-web</artifactId>
  68. <type>jar</type>
  69. </dependency>
  70.  
  71. <dependency>
  72. <groupId>org.openmrs.api</groupId>
  73. <artifactId>openmrs-api</artifactId>
  74. <type>test-jar</type>
  75. <scope>test</scope>
  76. </dependency>
  77.  
  78. <dependency>
  79. <groupId>org.openmrs.web</groupId>
  80. <artifactId>openmrs-web</artifactId>
  81. <type>test-jar</type>
  82. <scope>test</scope>
  83. </dependency>
  84.  
  85. <dependency>
  86. <groupId>org.openmrs.test</groupId>
  87. <artifactId>openmrs-test</artifactId>
  88. <type>pom</type>
  89. <scope>test</scope>
  90. </dependency>
  91.  
  92. <!-- End OpenMRS core -->
  93.  
  94. </dependencies>
  95.  
  96. <build>
  97. <finalName>${project.parent.artifactId}-${project.parent.version}</finalName>
  98. <resources>
  99. <resource>
  100. <directory>src/main/resources</directory>
  101. <filtering>true</filtering>
  102. </resource>
  103. <resource>
  104. <directory>src/main/webapp</directory>
  105. <filtering>false</filtering>
  106. <excludes>
  107. <exclude>resources</exclude>
  108. </excludes>
  109. <targetPath>web/module</targetPath>
  110. </resource>
  111. <resource>
  112. <directory>src/main/webapp</directory>
  113. <filtering>false</filtering>
  114. <includes>
  115. <include>resources</include>
  116. </includes>
  117. <targetPath>web/module</targetPath>
  118. </resource>
  119. </resources>
  120.  
  121. <testResources>
  122. <testResource>
  123. <directory>src/test/resources</directory>
  124. <filtering>true</filtering>
  125. </testResource>
  126. </testResources>
  127.  
  128. <pluginManagement>
  129. <plugins>
  130. <plugin>
  131. <artifactId>maven-resources-plugin</artifactId>
  132. <configuration>
  133. <includeEmptyDirs>true</includeEmptyDirs>
  134. </configuration>
  135. </plugin>
  136. <!--This plugin's configuration is used to store Eclipse m2e settings
  137. only. It has no influence on the Maven build itself. -->
  138. <plugin>
  139. <groupId>org.eclipse.m2e</groupId>
  140. <artifactId>lifecycle-mapping</artifactId>
  141. <version>1.0.0</version>
  142. <configuration>
  143. <lifecycleMappingMetadata>
  144. <pluginExecutions>
  145. <pluginExecution>
  146. <pluginExecutionFilter>
  147. <groupId>org.openmrs.maven.plugins</groupId>
  148. <artifactId>maven-openmrs-plugin</artifactId>
  149. <versionRange>[1.0.1,)</versionRange>
  150. <goals>
  151. <goal>initialize-module</goal>
  152. </goals>
  153. </pluginExecutionFilter>
  154. <action>
  155. <ignore></ignore>
  156. </action>
  157. </pluginExecution>
  158. <pluginExecution>
  159. <pluginExecutionFilter>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-dependency-plugin</artifactId>
  162. <versionRange>[2.4,)</versionRange>
  163. <goals>
  164. <goal>unpack-dependencies</goal>
  165. </goals>
  166. </pluginExecutionFilter>
  167. <action>
  168. <ignore></ignore>
  169. </action>
  170. </pluginExecution>
  171. </pluginExecutions>
  172. </lifecycleMappingMetadata>
  173. </configuration>
  174. </plugin>
  175. </plugins>
  176. </pluginManagement>
  177.  
  178. <plugins>
  179. <plugin>
  180. <groupId>org.openmrs.maven.plugins</groupId>
  181. <artifactId>maven-openmrs-plugin</artifactId>
  182. <extensions>true</extensions>
  183. <executions>
  184. <execution>
  185. <id>init</id>
  186. <phase>initialize</phase>
  187. <goals>
  188. <goal>initialize-module</goal>
  189. </goals>
  190. </execution>
  191. <execution>
  192. <id>pack</id>
  193. <phase>package</phase>
  194. <goals>
  195. <goal>package-module</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-dependency-plugin</artifactId>
  203. <executions>
  204. <execution>
  205. <id>Expand moduleApplicationContext and messages</id>
  206. <goals>
  207. <goal>unpack-dependencies</goal>
  208. </goals>
  209. <phase>generate-resources</phase>
  210. <configuration>
  211. <includeGroupIds>${project.parent.groupId}</includeGroupIds>
  212. <includeArtifactIds>${project.parent.artifactId}-api</includeArtifactIds>
  213. <excludeTransitive>true</excludeTransitive>
  214. <includes>**/*</includes>
  215. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  216. </configuration>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. </plugins>
  221. </build>
  222.  
  223. </project>
Advertisement
Add Comment
Please, Sign In to add comment