|
1 | 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 | 2 | <modelVersion>4.0.0</modelVersion> |
3 | 3 | <groupId>org.openmrs.content</groupId> |
4 | | - <artifactId>referenceapplication</artifactId> |
5 | | - <version>1.5.0-SNAPSHOT</version> |
| 4 | + <artifactId>microclinicproject-content</artifactId> |
| 5 | + <version>1.0.0</version> |
6 | 6 | <packaging>pom</packaging> |
7 | | - <name>Reference Application Content</name> |
8 | | - <description>Baseline content for the O3 Reference Application</description> |
| 7 | + <name>The Micro Clinic Project Content</name> |
| 8 | + <description>Baseline content for the Micro Clinic Project</description> |
9 | 9 | <developers> |
10 | 10 | <developer> |
11 | 11 | <name>OpenMRS</name> |
|
14 | 14 | </developer> |
15 | 15 | </developers> |
16 | 16 | <scm> |
17 | | - <connection>scm:git:git@github.com:openmrs/openmrs-content-referenceapplication.git</connection> |
18 | | - <developerConnection>scm:git:git@github.com:openmrs/openmrs-content-referenceapplication.git</developerConnection> |
19 | | - <url>https://github.com/openmrs/openmrs-content-referenceapplication.git</url> |
20 | | - <tag>HEAD</tag> |
21 | | - </scm> |
| 17 | + <connection>scm:git:git@github.com:The-Micro-Clinic-Project/microclinicproject-content.git</connection> |
| 18 | + <developerConnection>scm:git:git@github.com:The-Micro-Clinic-Project/microclinicproject-content.git</developerConnection> |
| 19 | + <url>https://github.com/The-Micro-Clinic-Project/microclinicproject-content.git</url> |
| 20 | + <tag>1.0.0</tag> |
| 21 | + </scm> |
22 | 22 | <properties> |
23 | 23 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
24 | 24 | <configuration.dir>${project.basedir}/configuration</configuration.dir> |
| 25 | + <demo.groupId>org.openmrs.content</demo.groupId> |
| 26 | + <demo.artifactId>referenceapplication-demo</demo.artifactId> |
| 27 | + <demo.version>1.6.0</demo.version> |
| 28 | + <demo.extracted.dir>${project.build.directory}/${demo.artifactId}-${demo.version}</demo.extracted.dir> |
| 29 | + <merged.configuration.dir>${project.build.directory}/${artifactId}-${version}/configuration</merged.configuration.dir> |
25 | 30 | </properties> |
| 31 | + <dependencies> |
| 32 | + <dependency> |
| 33 | + <groupId>${demo.groupId}</groupId> |
| 34 | + <artifactId>${demo.artifactId}</artifactId> |
| 35 | + <version>${demo.version}</version> |
| 36 | + <type>zip</type> |
| 37 | + </dependency> |
| 38 | + </dependencies> |
26 | 39 | <build> |
27 | 40 | <plugins> |
28 | 41 | <plugin> |
|
40 | 53 | <sourceFile>${project.basedir}/content.properties</sourceFile> |
41 | 54 | </configuration> |
42 | 55 | </execution> |
43 | | - <!-- Commented out for now |
| 56 | + </executions> |
| 57 | + </plugin> |
| 58 | + <plugin> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-dependency-plugin</artifactId> |
| 61 | + <version>3.6.1</version> |
| 62 | + <executions> |
44 | 63 | <execution> |
45 | | - <id>validate-configurations</id> |
46 | | - <phase>verify</phase> |
| 64 | + <id>Unpack Demo Content</id> |
| 65 | + <phase>generate-resources</phase> |
47 | 66 | <goals> |
48 | | - <goal>validate-configurations</goal> |
| 67 | + <goal>unpack-dependencies</goal> |
49 | 68 | </goals> |
50 | 69 | <configuration> |
51 | | - <sourceDir>${configuration.dir}/backend_configuration</sourceDir> |
| 70 | + <excludeTransitive>true</excludeTransitive> |
| 71 | + <outputDirectory>${demo.extracted.dir}</outputDirectory> |
| 72 | + <includeArtifactIds>${demo.artifactId}</includeArtifactIds> |
52 | 73 | </configuration> |
53 | 74 | </execution> |
54 | | - --> |
| 75 | + </executions> |
| 76 | + </plugin> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-resources-plugin</artifactId> |
| 80 | + <version>3.3.1</version> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <id>Copy Demo Content Files</id> |
| 84 | + <phase>process-resources</phase> |
| 85 | + <goals> |
| 86 | + <goal>copy-resources</goal> |
| 87 | + </goals> |
| 88 | + <configuration> |
| 89 | + <outputDirectory> |
| 90 | + ${merged.configuration.dir}/configuration |
| 91 | + </outputDirectory> |
| 92 | + <overwrite>true</overwrite> |
| 93 | + <resources> |
| 94 | + <resource> |
| 95 | + <directory>${demo.extracted.dir}/configuration</directory> |
| 96 | + <excludes> |
| 97 | + <exclude>**/locations-core_demo.csv</exclude> |
| 98 | + </excludes> |
| 99 | + </resource> |
| 100 | + |
| 101 | + </resources> |
| 102 | + </configuration> |
| 103 | + </execution> |
| 104 | + <execution> |
| 105 | + <!-- Override with local configuration files--> |
| 106 | + <id>Copy local resources</id> |
| 107 | + <phase>process-resources</phase> |
| 108 | + <goals> |
| 109 | + <goal>copy-resources</goal> |
| 110 | + </goals> |
| 111 | + <configuration> |
| 112 | + <outputDirectory> |
| 113 | + ${merged.configuration.dir} |
| 114 | + </outputDirectory> |
| 115 | + <overwrite>true</overwrite> |
| 116 | + <resources> |
| 117 | + <resource> |
| 118 | + <directory>${project.basedir}</directory> |
| 119 | + <includes> |
| 120 | + <include>configuration/**/*</include> |
| 121 | + <include>content.properties</include> |
| 122 | + </includes> |
| 123 | + </resource> |
| 124 | + </resources> |
| 125 | + </configuration> |
| 126 | + </execution> |
| 127 | + |
55 | 128 | </executions> |
56 | 129 | </plugin> |
57 | 130 | <plugin> |
|
144 | 217 | </plugins> |
145 | 218 | </build> |
146 | 219 | <repositories> |
| 220 | + <repository> |
| 221 | + <id>openmrs-repo-releases</id> |
| 222 | + <name>OpenMRS Release Repository</name> |
| 223 | + <url>https://openmrs.jfrog.io/artifactory/releases</url> |
| 224 | + <releases> |
| 225 | + <enabled>true</enabled> |
| 226 | + </releases> |
| 227 | + <snapshots> |
| 228 | + <enabled>false</enabled> |
| 229 | + </snapshots> |
| 230 | + </repository> |
147 | 231 | <repository> |
148 | 232 | <id>openmrs-repo</id> |
149 | | - <name>OpenMRS Public Repository</name> |
| 233 | + <name>OpenMRS Nexus Repository</name> |
150 | 234 | <url>https://mavenrepo.openmrs.org/public</url> |
| 235 | + <releases> |
| 236 | + <enabled>true</enabled> |
| 237 | + </releases> |
151 | 238 | <snapshots> |
152 | 239 | <enabled>false</enabled> |
153 | 240 | </snapshots> |
154 | 241 | </repository> |
155 | 242 | <repository> |
156 | | - <id>openmrs-snapshots</id> |
157 | | - <name>OpenMRS Snapshot Repository</name> |
| 243 | + <id>openmrs-repo-snapshots</id> |
| 244 | + <name>OpenMRS Snapshots Repository</name> |
158 | 245 | <url>https://mavenrepo.openmrs.org/snapshots</url> |
159 | 246 | <snapshots> |
160 | 247 | <enabled>true</enabled> |
161 | 248 | </snapshots> |
| 249 | + <releases> |
| 250 | + <enabled>false</enabled> |
| 251 | + </releases> |
162 | 252 | </repository> |
163 | 253 | <repository> |
164 | 254 | <id>central</id> |
165 | | - <name>Maven Repository Switchboard</name> |
| 255 | + <name>Maven Central Repository</name> |
166 | 256 | <url>https://repo1.maven.org/maven2</url> |
167 | 257 | </repository> |
168 | 258 | </repositories> |
|
0 commit comments