forked from ssmusoke/openmrs-distro-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
164 lines (155 loc) · 7.04 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openmrs.distro</groupId>
<artifactId>platform</artifactId>
<version>1.10.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>OpenMRS Platform</name>
<description>A project for packaging the OpenMRS Platform</description>
<url>http://openmrs.org</url>
<issueManagement>
<system>JIRA</system>
<url>http://tickets.openmrs.org/</url>
</issueManagement>
<licenses>
<license>
<name>OpenMRS Public License</name>
<url>http://openmrs.org/wiki/License</url>
</license>
</licenses>
<organization>
<name>OpenMRS LLC.</name>
<url>http://openmrs.org</url>
</organization>
<scm>
<connection>scm:git:https://github.com/openmrs/openmrs-distro-platform</connection>
<developerConnection>scm:git:https://github.com/openmrs/openmrs-distro-platform</developerConnection>
<url>https://github.com/openmrs/openmrs-distro-platform</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openMRSVersion>1.10.0</openMRSVersion>
<webservices.restModuleVersion>2.6</webservices.restModuleVersion>
<warFilename>openmrs</warFilename>
<scriptFilename>add-modules.sh</scriptFilename>
<modulesFolder>WEB-INF/bundledModules</modulesFolder>
</properties>
<dependencies>
<dependency>
<groupId>org.openmrs.web</groupId>
<artifactId>openmrs-webapp</artifactId>
<version>${openMRSVersion}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-omod</artifactId>
<version>${webservices.restModuleVersion}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>prepare-platform-distro</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.openmrs.web</groupId>
<artifactId>openmrs-webapp</artifactId>
<type>war</type>
<destFileName>${warFilename}.war</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-omod</artifactId>
<destFileName>${modulesFolder}/webservices.rest-${webservices.restModuleVersion}.omod</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<resources>
<resource>
<directory>scripts</directory>
<filtering>true</filtering>
<includes>
<include>${scriptFilename}</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<!-- Copy the omods in the modules directory which are not downloadable from http://mavenrepo.openmrs.org/nexus -->
<execution>
<id>copy-downloaded-modules</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${modulesFolder}</outputDirectory>
<!-- prevent corruption of binary files by filtering activity which may be needed -->
<nonFilteredFileExtensions>
<nonFilteredFileExtension>omod</nonFilteredFileExtension>
</nonFilteredFileExtensions>
<resources>
<resource>
<directory>modules</directory>
<filtering>true</filtering>
<includes>
<include>*.omod</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>/bin/bash</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>${scriptFilename}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>