Advertisement
Guest User

Untitled

a guest
Nov 30th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.99 KB | None | 0 0
  1. <!--
  2.  
  3. This Source Code Form is subject to the terms of the Mozilla Public License,
  4. v. 2.0. If a copy of the MPL was not distributed with this file, You can
  5. obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
  6. the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
  7.  
  8. Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
  9. graphic logo is a trademark of OpenMRS Inc.
  10.  
  11. -->
  12. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  13. <parent>
  14. <groupId>org.openmrs</groupId>
  15. <artifactId>openmrs</artifactId>
  16. <version>2.3.0-SNAPSHOT</version>
  17. </parent>
  18. <modelVersion>4.0.0</modelVersion>
  19. <groupId>org.openmrs.web</groupId>
  20. <artifactId>openmrs-webapp</artifactId>
  21. <packaging>war</packaging>
  22. <name>openmrs-webapp</name>
  23. <description>The web application of openmrs</description>
  24.  
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.openmrs.test</groupId>
  28. <artifactId>openmrs-test</artifactId>
  29. <type>pom</type>
  30. <scope>test</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.openmrs.api</groupId>
  34. <artifactId>openmrs-api</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.openmrs.web</groupId>
  38. <artifactId>openmrs-web</artifactId>
  39. <exclusions>
  40. <exclusion>
  41. <groupId>javax.servlet</groupId>
  42. <artifactId>servlet-api</artifactId>
  43. </exclusion>
  44. <exclusion>
  45. <groupId>javax.servlet</groupId>
  46. <artifactId>jsp-api</artifactId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. </dependencies>
  51.  
  52. <build>
  53. <finalName>${webapp.name}</finalName>
  54. <resources>
  55. <resource>
  56. <directory>src/main/resources</directory>
  57. <excludes>
  58. <exclude>liquibase-demo-data.zip</exclude>
  59. </excludes>
  60. </resource>
  61. <resource>
  62. <directory>src/main/webapp</directory>
  63. <includes>
  64. <include>WEB-INF/web.xml</include>
  65. </includes>
  66. <filtering>true</filtering>
  67. <targetPath>../jetty</targetPath>
  68. </resource>
  69. </resources>
  70. <plugins>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-antrun-plugin</artifactId>
  74. <version>1.4</version>
  75. <executions>
  76. <execution>
  77. <phase>process-resources</phase>
  78. <goals>
  79. <goal>run</goal>
  80. </goals>
  81. <configuration>
  82. <tasks>
  83. <unzip src="src/main/resources/liquibase-demo-data.zip" dest="${project.build.outputDirectory}" />
  84. </tasks>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-war-plugin</artifactId>
  92. <configuration>
  93. <webResources>
  94. <resource>
  95. <directory>src/main/webapp</directory>
  96. <includes>
  97. <include>WEB-INF/web.xml</include>
  98. <include>index.htm</include>
  99. </includes>
  100. <filtering>true</filtering>
  101. </resource>
  102. </webResources>
  103. <packagingExcludes>test/**</packagingExcludes>
  104. </configuration>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-maven-plugin</artifactId>
  109. <version>9.3.3.v20150827</version>
  110. <configuration>
  111. <webApp>
  112. <descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
  113. <contextPath>/${webapp.name}</contextPath>
  114. <!--enable reloading static resources -->
  115. <overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
  116. <extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
  117. </webApp>
  118. <scanIntervalSeconds>10</scanIntervalSeconds>
  119. <scanTargets>
  120. <scanTarget>../api/target/classes</scanTarget>
  121. <scanTarget>../web/target/classes</scanTarget>
  122. </scanTargets>
  123. <systemProperties>
  124. <systemProperty>
  125. <name>OPENMRS_INSTALLATION_SCRIPT</name>
  126. <value>${OPENMRS_INSTALLATION_SCRIPT}</value>
  127. </systemProperty>
  128. </systemProperties>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.tomcat.maven</groupId>
  133. <artifactId>tomcat7-maven-plugin</artifactId>
  134. <version>2.2</version>
  135. <configuration>
  136. <path>/${project.build.finalName}</path>
  137. </configuration>
  138. </plugin>
  139. <plugin>
  140. <groupId>com.mycila</groupId>
  141. <artifactId>license-maven-plugin</artifactId>
  142. <configuration>
  143. <header>${project.parent.basedir}/license-header.txt</header>
  144. </configuration>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. <profiles>
  149. <profile>
  150. <id>integration-test</id>
  151. <activation>
  152. <activeByDefault>false</activeByDefault>
  153. </activation>
  154. <dependencies>
  155. <dependency>
  156. <groupId>mysql</groupId>
  157. <artifactId>mysql-connector-java</artifactId>
  158. <scope>runtime</scope>
  159. </dependency>
  160.  
  161. <dependency>
  162. <groupId>com.mysql</groupId>
  163. <artifactId>mysql-connector-mxj</artifactId>
  164. <version>5.0.11</version>
  165. <scope>compile</scope>
  166. </dependency>
  167.  
  168. <dependency>
  169. <groupId>com.mysql</groupId>
  170. <artifactId>mysql-connector-mxj-dbfiles</artifactId>
  171. <version>5.0.11</version>
  172. <scope>compile</scope>
  173. </dependency>
  174. </dependencies>
  175. </profile>
  176.  
  177. <profile>
  178. <id>release</id>
  179. <!-- Create sources and javadocs jar -->
  180. <build>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-source-plugin</artifactId>
  185. </plugin>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-javadoc-plugin</artifactId>
  189. </plugin>
  190. </plugins>
  191. </build>
  192. </profile>
  193.  
  194. <profile>
  195. <id>h2</id>
  196. <dependencies>
  197. <dependency>
  198. <groupId>com.h2database</groupId>
  199. <artifactId>h2</artifactId>
  200. </dependency>
  201. </dependencies>
  202. </profile>
  203.  
  204. <profile>
  205. <id>install-h2</id>
  206. <dependencies>
  207. <dependency>
  208. <groupId>com.h2database</groupId>
  209. <artifactId>h2</artifactId>
  210. </dependency>
  211. </dependencies>
  212. <properties>
  213. <OPENMRS_INSTALLATION_SCRIPT>classpath:installation.h2.properties</OPENMRS_INSTALLATION_SCRIPT>
  214. </properties>
  215. </profile>
  216. </profiles>
  217.  
  218. <properties>
  219. <WEBAPP.DISPLAY.NAME>OpenMRS</WEBAPP.DISPLAY.NAME>
  220. <WEBAPP.DESCRIPTION>An Open-Source EMR System</WEBAPP.DESCRIPTION>
  221. <webapp.name>openmrs</webapp.name>
  222. </properties>
  223. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement