Advertisement
Guest User

Untitled

a guest
Feb 12th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.34 KB | None | 0 0
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3.  
  4. <parent>
  5. <groupId>org.openmrs.maven.parents</groupId>
  6. <artifactId>maven-parent-openmrs-module</artifactId>
  7. <version>1.1.0</version>
  8. </parent>
  9.  
  10. <groupId>org.openmrs.module</groupId>
  11. <artifactId>messages</artifactId>
  12. <version>1.0.1-SNAPSHOT</version>
  13. <packaging>pom</packaging>
  14. <name>Messages module</name>
  15. <description>
  16. The Messages module will provide receiving messages (Call or SMS) from health facility.
  17. </description>
  18.  
  19. <scm>
  20. <connection>scm:git:git@bitbucket.org:soldevelo/omrs-messages.git</connection>
  21. <developerConnection>scm:git:git@bitbucket.org:soldevelo/omrs-messages.git</developerConnection>
  22. <url>https://bitbucket.org/soldevelo/omrs-messages/</url>
  23. <tag>HEAD</tag>
  24. </scm>
  25.  
  26. <modules>
  27. <module>api</module>
  28. <module>omod</module>
  29. <module>owa</module>
  30. </modules>
  31.  
  32. <properties>
  33. <apacheHttpClientVersion>4.4.1</apacheHttpClientVersion>
  34. <openmrsPlatformVersion>2.0.1</openmrsPlatformVersion>
  35. <javaCompilerSource>1.8</javaCompilerSource>
  36. <javaCompilerTarget>1.8</javaCompilerTarget>
  37. <gsonVersion>2.8.5</gsonVersion>
  38. <pmdPluginVersion>3.12.0</pmdPluginVersion>
  39. <checkStylePluginVersion>3.0.0</checkStylePluginVersion>
  40. <findBugsPluginVersion>3.0.5</findBugsPluginVersion>
  41. <legacyVersion>1.5.0</legacyVersion>
  42. <jacocoVersion>0.8.2</jacocoVersion>
  43. <surefireVersion>2.17</surefireVersion>
  44. <javax.servlet.version>3.0.1</javax.servlet.version>
  45. <uiframeworkVersion>3.9</uiframeworkVersion>
  46. <uiCommonsVersion>2.6.1</uiCommonsVersion>
  47. <eventVersion>2.6.0</eventVersion>
  48. <jtsCoreVersion>1.14.0</jtsCoreVersion>
  49. <pmdPluginSkip>false</pmdPluginSkip>
  50. <checkStylePluginSkip>false</checkStylePluginSkip>
  51. </properties>
  52.  
  53. <dependencyManagement>
  54. <dependencies>
  55. <!-- Importing versions from refapp distro -->
  56. <dependency>
  57. <groupId>org.openmrs.distro</groupId>
  58. <artifactId>referenceapplication</artifactId>
  59. <version>2.4</version>
  60. <type>pom</type>
  61. <scope>import</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.google.code.gson</groupId>
  65. <artifactId>gson</artifactId>
  66. <version>${gsonVersion}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>javax.servlet</groupId>
  70. <artifactId>javax.servlet-api</artifactId>
  71. <version>${javax.servlet.version}</version>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.httpcomponents</groupId>
  76. <artifactId>httpclient</artifactId>
  77. <version>${apacheHttpClientVersion}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.openmrs.module</groupId>
  81. <artifactId>uiframework-api</artifactId>
  82. <version>${uiframeworkVersion}</version>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <!-- fixes the issue: https://github.com/h2database/h2database/issues/388-->
  87. <groupId>com.vividsolutions</groupId>
  88. <artifactId>jts-core</artifactId>
  89. <version>${jtsCoreVersion}</version>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.openmrs</groupId>
  94. <artifactId>event-api</artifactId>
  95. <version>${eventVersion}</version>
  96. <scope>provided</scope>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>commons-codec</groupId>
  100. <artifactId>commons-codec</artifactId>
  101. </exclusion>
  102. </exclusions>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-core</artifactId>
  107. <version>4.3.8.RELEASE</version>
  108. </dependency>
  109. </dependencies>
  110. </dependencyManagement>
  111.  
  112. <build>
  113. <pluginManagement>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-checkstyle-plugin</artifactId>
  118. <version>${checkStylePluginVersion}</version>
  119. <configuration>
  120. <configLocation>checkstyle.xml</configLocation>
  121. <encoding>${project.build.sourceEncoding}</encoding>
  122. <consoleOutput>true</consoleOutput>
  123. <logViolationsToConsole>true</logViolationsToConsole>
  124. <failOnViolation>true</failOnViolation>
  125. <failsOnError>true</failsOnError>
  126. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  127. <skip>${checkStylePluginSkip}</skip>
  128. </configuration>
  129. <executions>
  130. <execution>
  131. <id>verify-checkstyle</id>
  132. <phase>validate</phase>
  133. <goals>
  134. <goal>check</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-pmd-plugin</artifactId>
  142. <version>${pmdPluginVersion}</version>
  143. <configuration>
  144. <rulesets>
  145. <ruleset>${project.basedir}/../pmd.xml</ruleset>
  146. </rulesets>
  147. <linkXRef>false</linkXRef>
  148. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  149. <minimumTokens>100</minimumTokens>
  150. <printFailingErrors>true</printFailingErrors>
  151. <analysisCache>true</analysisCache>
  152. <includeTests>false</includeTests>
  153. <failOnViolation>true</failOnViolation>
  154. <skip>${pmdPluginSkip}</skip>
  155. </configuration>
  156. <executions>
  157. <execution>
  158. <id>validate-pmd</id>
  159. <phase>validate</phase>
  160. <goals>
  161. <goal>check</goal>
  162. <goal>cpd-check</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.codehaus.mojo</groupId>
  169. <artifactId>findbugs-maven-plugin</artifactId>
  170. <version>${findBugsPluginVersion}</version>
  171. <configuration>
  172. <includeFilterFile>findbugs-include.xml</includeFilterFile>
  173. </configuration>
  174. </plugin>
  175. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  176. <plugin>
  177. <groupId>org.eclipse.m2e</groupId>
  178. <artifactId>lifecycle-mapping</artifactId>
  179. <version>1.0.0</version>
  180. <configuration>
  181. <lifecycleMappingMetadata>
  182. <pluginExecutions>
  183. <pluginExecution>
  184. <pluginExecutionFilter>
  185. <groupId>
  186. org.apache.maven.plugins
  187. </groupId>
  188. <artifactId>
  189. maven-pmd-plugin
  190. </artifactId>
  191. <versionRange>
  192. [3.12.0,)
  193. </versionRange>
  194. <goals>
  195. <goal>cpd-check</goal>
  196. </goals>
  197. </pluginExecutionFilter>
  198. <action>
  199. <ignore></ignore>
  200. </action>
  201. </pluginExecution>
  202. </pluginExecutions>
  203. </lifecycleMappingMetadata>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. </pluginManagement>
  208.  
  209. <plugins>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-checkstyle-plugin</artifactId>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-pmd-plugin</artifactId>
  217. </plugin>
  218. <plugin>
  219. <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
  220. <artifactId>maven-java-formatter-plugin</artifactId>
  221. <executions>
  222. <execution>
  223. <phase>none</phase>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-dependency-plugin</artifactId>
  230. <executions>
  231. <execution>
  232. <id>Expand resources</id>
  233. <goals>
  234. <goal>unpack-dependencies</goal>
  235. </goals>
  236. <phase>generate-resources</phase>
  237. <configuration>
  238. <includes>*.xml,*.properties,**/*.sql</includes>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-surefire-plugin</artifactId>
  246. <version>${surefireVersion}</version>
  247. <configuration>
  248. <argLine>-Dlog4j.configuration=file:src/test/resources/log4j.properties</argLine>
  249. <reuseForks>false</reuseForks>
  250. </configuration>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-release-plugin</artifactId>
  255. <version>2.5</version>
  256. <configuration>
  257. <autoVersionSubmodules>true</autoVersionSubmodules>
  258. <tagNameFormat>@{project.version}</tagNameFormat>
  259. </configuration>
  260. </plugin>
  261. </plugins>
  262. </build>
  263.  
  264. <profiles>
  265. <profile>
  266. <id>code-coverage</id>
  267. <dependencies>
  268. <dependency>
  269. <groupId>org.jacoco</groupId>
  270. <artifactId>org.jacoco.agent</artifactId>
  271. <classifier>runtime</classifier>
  272. <version>${jacocoVersion}</version>
  273. </dependency>
  274. </dependencies>
  275. <build>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.jacoco</groupId>
  279. <artifactId>jacoco-maven-plugin</artifactId>
  280. <version>${jacocoVersion}</version>
  281. <executions>
  282. <!-- Off line instrumentation is needed to compute coverage for Power Mock tests -->
  283. <execution>
  284. <id>default-instrument</id>
  285. <goals>
  286. <goal>instrument</goal>
  287. </goals>
  288. </execution>
  289. <execution>
  290. <id>default-restore-instrumented-classes</id>
  291. <goals>
  292. <goal>restore-instrumented-classes</goal>
  293. </goals>
  294. </execution>
  295. <execution>
  296. <id>default-report</id>
  297. <phase>prepare-package</phase>
  298. <goals>
  299. <goal>report</goal>
  300. </goals>
  301. </execution>
  302. </executions>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-surefire-plugin</artifactId>
  307. <version>${surefireVersion}</version>
  308. <dependencies>
  309. <dependency>
  310. <groupId>org.apache.maven.surefire</groupId>
  311. <artifactId>surefire-junit47</artifactId>
  312. <version>${surefireVersion}</version>
  313. </dependency>
  314. </dependencies>
  315. <configuration>
  316. <!-- Workaround to https://code.google.com/p/powermock/issues/detail?id=504 -->
  317. <argLine>-XX:-UseSplitVerifier</argLine>
  318. <systemPropertyVariables>
  319. <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
  320. </systemPropertyVariables>
  321. <reuseForks>false</reuseForks>
  322. </configuration>
  323. </plugin>
  324. </plugins>
  325. </build>
  326. </profile>
  327. <profile>
  328. <id>dev</id>
  329. <properties>
  330. <checkStylePluginSkip>true</checkStylePluginSkip>
  331. <pmdPluginSkip>true</pmdPluginSkip>
  332. </properties>
  333. </profile>
  334. </profiles>
  335.  
  336. <repositories>
  337. <repository>
  338. <id>openmrs-repo</id>
  339. <name>OpenMRS Nexus Repository</name>
  340. <url>https://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
  341. </repository>
  342. <repository>
  343. <id>central</id>
  344. <name>Maven Repository Switchboard</name>
  345. <layout>default</layout>
  346. <url>https://repo1.maven.org/maven2</url>
  347. </repository>
  348. </repositories>
  349. <pluginRepositories>
  350. <pluginRepository>
  351. <id>openmrs-repo</id>
  352. <name>OpenMRS Nexus Repository</name>
  353. <url>https://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
  354. <snapshots>
  355. <enabled>false</enabled>
  356. </snapshots>
  357. </pluginRepository>
  358. </pluginRepositories>
  359. </project>
  360.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement