Advertisement
Guest User

Untitled

a guest
Mar 28th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.01 KB | None | 0 0
  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" 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. <groupId>org.openmrs.maven.parents</groupId>
  6. <artifactId>maven-parent-openmrs-module</artifactId>
  7. <version>1.1.1</version>
  8. <packaging>pom</packaging>
  9. <name>OpenMRS Module Parent POM</name>
  10. <description>Declares parent POM for any OpenMRS module</description>
  11.  
  12. <issueManagement>
  13. <system>JIRA</system>
  14. <url>http://issues.openmrs.org/</url>
  15. </issueManagement>
  16.  
  17. <licenses>
  18. <license>
  19. <name>OpenMRS Public License</name>
  20. <url>http://openmrs.org/wiki/License</url>
  21. </license>
  22. </licenses>
  23.  
  24. <organization>
  25. <name>OpenMRS LLC.</name>
  26. <url>http://openmrs.org</url>
  27. </organization>
  28.  
  29. <scm>
  30. <connection>scm:git:git@github.com:openmrs/openmrs-contrib-maven-parent-module.git</connection>
  31. <developerConnection>scm:git:git@github.com:openmrs/openmrs-contrib-maven-parent-module.git</developerConnection>
  32. <url>https://github.com/openmrs/openmrs-contrib-maven-parent-module</url>
  33. <tag>1.1.1</tag>
  34. </scm>
  35.  
  36. <distributionManagement>
  37. <repository>
  38. <id>openmrs-repo-releases</id>
  39. <name>OpenMRS Releases</name>
  40. <url>http://mavenrepo.openmrs.org/nexus/content/repositories/releases/</url>
  41. </repository>
  42. <snapshotRepository>
  43. <id>openmrs-repo-snapshots</id>
  44. <name>OpenMRS Snapshots</name>
  45. <url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
  46. </snapshotRepository>
  47. </distributionManagement>
  48.  
  49. <properties>
  50. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51.  
  52. <javaCompilerSource>1.6</javaCompilerSource>
  53. <javaCompilerTarget>1.6</javaCompilerTarget>
  54.  
  55. <openmrsPlatformVersion>1.11.2</openmrsPlatformVersion>
  56. <openmrsPlatformToolsVersion>1.11.2</openmrsPlatformToolsVersion>
  57.  
  58. <MODULE_ID>${project.parent.artifactId}</MODULE_ID>
  59. <MODULE_NAME>${project.parent.name}</MODULE_NAME>
  60. <MODULE_VERSION>${project.parent.version}</MODULE_VERSION>
  61. <MODULE_PACKAGE>${project.parent.groupId}.${project.parent.artifactId}</MODULE_PACKAGE>
  62. </properties>
  63.  
  64. <dependencyManagement>
  65. <dependencies>
  66. <dependency>
  67. <groupId>org.openmrs.api</groupId>
  68. <artifactId>openmrs-api</artifactId>
  69. <version>${openmrsPlatformVersion}</version>
  70. </dependency>
  71.  
  72. <dependency>
  73. <groupId>org.openmrs.web</groupId>
  74. <artifactId>openmrs-web</artifactId>
  75. <version>${openmrsPlatformVersion}</version>
  76. </dependency>
  77.  
  78. <dependency>
  79. <groupId>org.openmrs.api</groupId>
  80. <artifactId>openmrs-api</artifactId>
  81. <version>${openmrsPlatformVersion}</version>
  82. <classifier>tests</classifier>
  83. </dependency>
  84.  
  85. <dependency>
  86. <groupId>org.openmrs.web</groupId>
  87. <artifactId>openmrs-web</artifactId>
  88. <version>${openmrsPlatformVersion}</version>
  89. <classifier>tests</classifier>
  90. </dependency>
  91.  
  92. <dependency>
  93. <groupId>org.openmrs.test</groupId>
  94. <artifactId>openmrs-test</artifactId>
  95. <version>${openmrsPlatformVersion}</version>
  96. <type>pom</type>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>org.mockito</groupId>
  100. <artifactId>mockito-all</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>org.powermock</groupId>
  104. <artifactId>powermock-module-junit4</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>org.powermock</groupId>
  108. <artifactId>powermock-api-mockito</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.hamcrest</groupId>
  112. <artifactId>hamcrest-all</artifactId>
  113. </exclusion>
  114. </exclusions>
  115. </dependency>
  116.  
  117. <dependency>
  118. <groupId>junit</groupId>
  119. <artifactId>junit</artifactId>
  120. <version>4.11</version>
  121. </dependency>
  122.  
  123. <dependency>
  124. <groupId>org.hamcrest</groupId>
  125. <artifactId>hamcrest-core</artifactId>
  126. <version>1.3</version>
  127. </dependency>
  128.  
  129. <dependency>
  130. <groupId>org.hamcrest</groupId>
  131. <artifactId>hamcrest-library</artifactId>
  132. <version>1.3</version>
  133. </dependency>
  134.  
  135. <dependency>
  136. <groupId>org.mockito</groupId>
  137. <artifactId>mockito-core</artifactId>
  138. <version>1.9.5</version>
  139. </dependency>
  140.  
  141. <dependency>
  142. <groupId>org.powermock</groupId>
  143. <artifactId>powermock-module-junit4</artifactId>
  144. <version>1.5</version>
  145. </dependency>
  146.  
  147. <dependency>
  148. <groupId>org.powermock</groupId>
  149. <artifactId>powermock-api-mockito</artifactId>
  150. <version>1.5</version>
  151. <exclusions>
  152. <exclusion>
  153. <artifactId>mockito-all</artifactId>
  154. <groupId>org.mockito</groupId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. </dependencies>
  159. </dependencyManagement>
  160.  
  161. <dependencies>
  162. <dependency>
  163. <groupId>org.openmrs.api</groupId>
  164. <artifactId>openmrs-api</artifactId>
  165. <scope>provided</scope>
  166. </dependency>
  167.  
  168. <dependency>
  169. <groupId>org.openmrs.api</groupId>
  170. <artifactId>openmrs-api</artifactId>
  171. <classifier>tests</classifier>
  172. <scope>test</scope>
  173. </dependency>
  174.  
  175. <dependency>
  176. <groupId>org.openmrs.test</groupId>
  177. <artifactId>openmrs-test</artifactId>
  178. <type>pom</type>
  179. <scope>test</scope>
  180. </dependency>
  181.  
  182. <dependency>
  183. <groupId>junit</groupId>
  184. <artifactId>junit</artifactId>
  185. <scope>test</scope>
  186. </dependency>
  187.  
  188. <dependency>
  189. <groupId>org.hamcrest</groupId>
  190. <artifactId>hamcrest-core</artifactId>
  191. <scope>test</scope>
  192. </dependency>
  193.  
  194. <dependency>
  195. <groupId>org.hamcrest</groupId>
  196. <artifactId>hamcrest-library</artifactId>
  197. <scope>test</scope>
  198. </dependency>
  199.  
  200. <dependency>
  201. <groupId>org.mockito</groupId>
  202. <artifactId>mockito-core</artifactId>
  203. <scope>test</scope>
  204. </dependency>
  205.  
  206. <dependency>
  207. <groupId>org.powermock</groupId>
  208. <artifactId>powermock-module-junit4</artifactId>
  209. <scope>test</scope>
  210. </dependency>
  211.  
  212. <dependency>
  213. <groupId>org.powermock</groupId>
  214. <artifactId>powermock-api-mockito</artifactId>
  215. <scope>test</scope>
  216. </dependency>
  217. </dependencies>
  218.  
  219. <build>
  220. <resources>
  221. <resource>
  222. <directory>src/main/resources</directory>
  223. <filtering>true</filtering>
  224. <includes>
  225. <include>**/*.xml</include>
  226. <include>**/*.txt</include>
  227. <include>**/*.properties</include>
  228. </includes>
  229. </resource>
  230. <resource>
  231. <directory>src/main/resources</directory>
  232. <filtering>false</filtering>
  233. <excludes>
  234. <exclude>**/*.xml</exclude>
  235. <exclude>**/*.txt</exclude>
  236. <exclude>**/*.properties</exclude>
  237. </excludes>
  238. </resource>
  239.  
  240. <resource>
  241. <directory>src/main/webapp</directory>
  242. <filtering>true</filtering>
  243. <includes>
  244. <include>**/*.xml</include>
  245. <include>**/*.txt</include>
  246. <include>**/*.properties</include>
  247. </includes>
  248. <targetPath>web/module</targetPath>
  249. </resource>
  250. <resource>
  251. <directory>src/main/webapp</directory>
  252. <filtering>false</filtering>
  253. <excludes>
  254. <exclude>**/*.xml</exclude>
  255. <exclude>**/*.txt</exclude>
  256. <exclude>**/*.properties</exclude>
  257. </excludes>
  258. <targetPath>web/module</targetPath>
  259. </resource>
  260. </resources>
  261.  
  262. <testResources>
  263. <testResource>
  264. <directory>src/test/resources</directory>
  265. <filtering>true</filtering>
  266. <includes>
  267. <include>**/*.xml</include>
  268. <include>**/*.txt</include>
  269. <include>**/*.properties</include>
  270. </includes>
  271. </testResource>
  272. <testResource>
  273. <directory>src/test/resources</directory>
  274. <filtering>false</filtering>
  275. <excludes>
  276. <exclude>**/*.xml</exclude>
  277. <exclude>**/*.txt</exclude>
  278. <exclude>**/*.properties</exclude>
  279. </excludes>
  280. </testResource>
  281. </testResources>
  282.  
  283. <pluginManagement>
  284. <plugins>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-compiler-plugin</artifactId>
  288. <configuration>
  289. <target>${javaCompilerTarget}</target>
  290. <source>${javaCompilerSource}</source>
  291. </configuration>
  292. </plugin>
  293.  
  294. <plugin>
  295. <groupId>org.openmrs.maven.plugins</groupId>
  296. <artifactId>maven-openmrs-plugin</artifactId>
  297. <version>1.0.1</version>
  298. <extensions>true</extensions>
  299. <executions>
  300. <execution>
  301. <id>pack</id>
  302. <phase>package</phase>
  303. <goals>
  304. <goal>package-module</goal>
  305. </goals>
  306. </execution>
  307. </executions>
  308. </plugin>
  309.  
  310. <plugin>
  311. <groupId>org.apache.maven.plugins</groupId>
  312. <artifactId>maven-jar-plugin</artifactId>
  313. <version>2.5</version>
  314. <executions>
  315. <execution>
  316. <goals>
  317. <goal>test-jar</goal>
  318. </goals>
  319. </execution>
  320. </executions>
  321. </plugin>
  322.  
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-release-plugin</artifactId>
  326. <version>2.5.3</version>
  327. <configuration>
  328. <useReleaseProfile>false</useReleaseProfile>
  329. <autoVersionSubmodules>true</autoVersionSubmodules>
  330. <arguments>-Prelease</arguments>
  331. <tagNameFormat>@{project.version}</tagNameFormat>
  332. </configuration>
  333. </plugin>
  334.  
  335. <plugin>
  336. <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
  337. <artifactId>maven-java-formatter-plugin</artifactId>
  338. <version>0.4</version>
  339. <configuration>
  340. <configFile>eclipse/OpenMRSFormatter.xml</configFile>
  341. <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
  342. <lineEnding>LF</lineEnding>
  343. </configuration>
  344. <executions>
  345. <execution>
  346. <goals>
  347. <goal>format</goal>
  348. </goals>
  349. </execution>
  350. </executions>
  351. <dependencies>
  352. <dependency>
  353. <groupId>org.openmrs.tools</groupId>
  354. <artifactId>openmrs-tools</artifactId>
  355. <version>${openmrsPlatformToolsVersion}</version>
  356. </dependency>
  357. </dependencies>
  358. </plugin>
  359.  
  360. <plugin>
  361. <groupId>org.codehaus.mojo</groupId>
  362. <artifactId>buildnumber-maven-plugin</artifactId>
  363. <version>1.1</version>
  364. <configuration>
  365. <buildNumberPropertyName>revisionNumber</buildNumberPropertyName>
  366. <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
  367. <revisionOnScmFailure>0</revisionOnScmFailure>
  368. <shortRevisionLength>6</shortRevisionLength>
  369. </configuration>
  370. <executions>
  371. <execution>
  372. <phase>validate</phase>
  373. <goals>
  374. <goal>create</goal>
  375. </goals>
  376. </execution>
  377. </executions>
  378. </plugin>
  379.  
  380. <!-- Extracting messages and Spring configuration out of the API jar.
  381. It is needed due to a bug in OpenMRS, which prevents them from loading.
  382. See https://issues.openmrs.org/browse/TRUNK-3889 -->
  383. <plugin>
  384. <groupId>org.apache.maven.plugins</groupId>
  385. <artifactId>maven-dependency-plugin</artifactId>
  386. <executions>
  387. <execution>
  388. <id>Expand resources</id>
  389. <goals>
  390. <goal>unpack-dependencies</goal>
  391. </goals>
  392. <phase>generate-resources</phase>
  393. <configuration>
  394. <includeGroupIds>${project.parent.groupId}</includeGroupIds>
  395. <includeArtifactIds>${project.parent.artifactId}-api,${project.parent.artifactId}-omod,${project.parent.artifactId}-omod-common</includeArtifactIds>
  396. <includeScope>compile</includeScope>
  397. <includes>*.xml,*.properties</includes>
  398. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  399. </configuration>
  400. </execution>
  401. </executions>
  402. </plugin>
  403.  
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-enforcer-plugin</artifactId>
  407. <version>1.4.1</version>
  408. <executions>
  409. <execution>
  410. <id>enforce-no-snapshots</id>
  411. <goals>
  412. <goal>enforce</goal>
  413. </goals>
  414. <configuration>
  415. <rules>
  416. <requireReleaseDeps>
  417. <message>No snapshots allowed when releasing!</message>
  418. </requireReleaseDeps>
  419. </rules>
  420. <fail>true</fail>
  421. </configuration>
  422. </execution>
  423. </executions>
  424. </plugin>
  425.  
  426. <!--This plugin's configuration is used to store Eclipse m2e settings
  427. only. It has no influence on the Maven build itself. -->
  428. <plugin>
  429. <groupId>org.eclipse.m2e</groupId>
  430. <artifactId>lifecycle-mapping</artifactId>
  431. <version>1.0.0</version>
  432. <configuration>
  433. <lifecycleMappingMetadata>
  434. <pluginExecutions>
  435. <pluginExecution>
  436. <pluginExecutionFilter>
  437. <groupId>
  438. com.googlecode.maven-java-formatter-plugin
  439. </groupId>
  440. <artifactId>
  441. maven-java-formatter-plugin
  442. </artifactId>
  443. <versionRange>
  444. [0.3.1,)
  445. </versionRange>
  446. <goals>
  447. <goal>format</goal>
  448. </goals>
  449. </pluginExecutionFilter>
  450. <action>
  451. <ignore />
  452. </action>
  453. </pluginExecution>
  454. <pluginExecution>
  455. <pluginExecutionFilter>
  456. <groupId>
  457. org.apache.maven.plugins
  458. </groupId>
  459. <artifactId>
  460. maven-dependency-plugin
  461. </artifactId>
  462. <versionRange>
  463. [2.1,)
  464. </versionRange>
  465. <goals>
  466. <goal>
  467. unpack-dependencies
  468. </goal>
  469. </goals>
  470. </pluginExecutionFilter>
  471. <action>
  472. <ignore />
  473. </action>
  474. </pluginExecution>
  475. </pluginExecutions>
  476. </lifecycleMappingMetadata>
  477. </configuration>
  478. </plugin>
  479. </plugins>
  480. </pluginManagement>
  481.  
  482. <plugins>
  483. <plugin>
  484. <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
  485. <artifactId>maven-java-formatter-plugin</artifactId>
  486. </plugin>
  487. <plugin>
  488. <groupId>org.codehaus.mojo</groupId>
  489. <artifactId>buildnumber-maven-plugin</artifactId>
  490. </plugin>
  491. </plugins>
  492. </build>
  493.  
  494. <profiles>
  495. <profile>
  496. <id>release</id>
  497. <build>
  498. <plugins>
  499. <plugin>
  500. <groupId>org.apache.maven.plugins</groupId>
  501. <artifactId>maven-source-plugin</artifactId>
  502. <version>2.1.2</version>
  503. <executions>
  504. <execution>
  505. <id>attach-sources</id>
  506. <goals>
  507. <goal>jar</goal>
  508. </goals>
  509. </execution>
  510. </executions>
  511. </plugin>
  512. <plugin>
  513. <groupId>org.apache.maven.plugins</groupId>
  514. <artifactId>maven-javadoc-plugin</artifactId>
  515. <version>2.8.1</version>
  516. <configuration>
  517. <tags>
  518. <tag>
  519. <name>should</name>
  520. <placement>a</placement>
  521. <head>Should:</head>
  522. </tag>
  523. </tags>
  524. </configuration>
  525. <executions>
  526. <execution>
  527. <id>attach-javadocs</id>
  528. <goals>
  529. <goal>jar</goal>
  530. </goals>
  531. </execution>
  532. </executions>
  533. </plugin>
  534. </plugins>
  535. </build>
  536. </profile>
  537. </profiles>
  538.  
  539.  
  540.  
  541.  
  542.  
  543. </project>
  544.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement