|
7 | 7 | <version>1.0.0-SNAPSHOT</version> |
8 | 8 | </parent> |
9 | 9 |
|
10 | | - <artifactId>loinc-export</artifactId> |
| 10 | + <groupId>dev.ikm.data.loinc</groupId> |
| 11 | + <artifactId>loinc</artifactId> |
| 12 | + <version>${revision}</version> |
11 | 13 | <packaging>pom</packaging> |
12 | 14 |
|
13 | 15 | <name>loinc-export</name> |
|
16 | 18 | <!-- Properties For Deploying Zip To Nexus --> |
17 | 19 |
|
18 | 20 | <properties> |
19 | | - <data-artifact.groupId>dev.ikm.tinkar.data</data-artifact.groupId> |
20 | | - <data-artifact.artifactId>loinc</data-artifact.artifactId> |
21 | | - <data-artifact.filename>${data-artifact.path-prefix}</data-artifact.filename> |
22 | | - <data-artifact.version>${source.version}-1.0.0</data-artifact.version> |
23 | | - <data-artifact.prefix>${project.artifactId}-${project.version}</data-artifact.prefix> |
24 | | - <data-artifact.path-prefix>${project.build.directory}/${data-artifact.prefix}</data-artifact.path-prefix> |
25 | | - <deployNexusURL>https://nexus.tinkarbuild.com/repository/private-assets/</deployNexusURL> |
26 | | - <deployToNexus>false</deployToNexus> |
| 21 | + <revision>${dataStore}-${source.version}+1.0.0-SNAPSHOT</revision> |
27 | 22 | </properties> |
28 | 23 |
|
29 | | - <!-- Distribution info for private assets repo in Nexus --> |
30 | | - <distributionManagement> |
31 | | - <repository> |
32 | | - <id>nexus</id> |
33 | | - <name>private-assets-nexus</name> |
34 | | - <url>${deployNexusURL}</url> |
35 | | - </repository> |
36 | | - </distributionManagement> |
37 | | - |
38 | | - <build> |
39 | | - <plugins> |
40 | | - <plugin> |
41 | | - <groupId>dev.ikm.maven.tinkar</groupId> |
42 | | - <artifactId>tinkar-maven-plugin</artifactId> |
43 | | - <executions> |
44 | | - <!-- Export reasoned data as a protocol buffers zip file (package) --> |
45 | | - <execution> |
46 | | - <id>${project.artifactId}-reasoned-export</id> |
47 | | - <goals> |
48 | | - <goal>export-tinkar-data</goal> |
49 | | - </goals> |
50 | | - <configuration> |
51 | | - <exportDirectory>${project.build.directory}</exportDirectory> |
52 | | - <dataStore>${dataStoreLocation}/${dataStore}</dataStore> |
53 | | - <fileName>${data-artifact.filename}-reasoned-pb.zip</fileName> |
54 | | - <isolate>false</isolate> |
55 | | - </configuration> |
56 | | - </execution> |
57 | | - </executions> |
58 | | - </plugin> |
59 | | - <plugin> |
60 | | - <groupId>org.apache.maven.plugins</groupId> |
61 | | - <artifactId>maven-assembly-plugin</artifactId> |
62 | | - <executions> |
63 | | - <execution> |
64 | | - <id>assemble-origin-artifact</id> |
65 | | - <phase>package</phase> |
66 | | - <goals> |
67 | | - <goal>single</goal> |
68 | | - </goals> |
69 | | - <configuration> |
70 | | - <inlineDescriptors> |
71 | | - <inlineDescriptor> |
72 | | - <id>reasoned-sa</id> |
73 | | - <formats> |
74 | | - <format>zip</format> |
75 | | - </formats> |
76 | | - <fileSets> |
77 | | - <fileSet> |
78 | | - <outputDirectory>${dataStore}</outputDirectory> |
79 | | - <directory>${dataStoreLocation}/${dataStore}</directory> |
80 | | - <includes> |
81 | | - <include>**</include> |
82 | | - </includes> |
83 | | - <excludes> |
84 | | - <exclude>MANIFEST.MF</exclude> |
85 | | - </excludes> |
86 | | - </fileSet> |
87 | | - </fileSets> |
88 | | - <includeBaseDirectory>false</includeBaseDirectory> |
89 | | - </inlineDescriptor> |
90 | | - </inlineDescriptors> |
91 | | - </configuration> |
92 | | - </execution> |
93 | | - </executions> |
94 | | - </plugin> |
95 | | - </plugins> |
96 | | - </build> |
97 | | - |
98 | 24 | <profiles> |
99 | | - <!-- Profile to generate data/template pom --> |
100 | 25 | <profile> |
101 | | - <id>generateData</id> |
| 26 | + <id>generateDataLocal</id> |
102 | 27 | <activation> |
103 | 28 | <property> |
104 | | - <name>deployToNexus</name> |
105 | | - <value>true</value> |
| 29 | + <name>altDeploymentRepository</name> |
106 | 30 | </property> |
107 | 31 | </activation> |
108 | 32 | <build> |
109 | 33 | <plugins> |
110 | 34 | <plugin> |
111 | | - <groupId>org.codehaus.mojo</groupId> |
112 | | - <artifactId>templating-maven-plugin</artifactId> |
| 35 | + <groupId>dev.ikm.maven.tinkar</groupId> |
| 36 | + <artifactId>tinkar-maven-plugin</artifactId> |
113 | 37 | <executions> |
| 38 | + <!-- Export reasoned data as a protocol buffers zip file (package) --> |
114 | 39 | <execution> |
115 | | - <id>inject-maven-properties</id> |
| 40 | + <id>${project.artifactId}-reasoned-export</id> |
116 | 41 | <goals> |
117 | | - <goal>filter-sources</goal> |
| 42 | + <goal>export-tinkar-data</goal> |
118 | 43 | </goals> |
119 | 44 | <configuration> |
120 | | - <sourceDirectory>loinc-export-pom-template</sourceDirectory> |
121 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
122 | | - <skipPoms>false</skipPoms> |
| 45 | + <exportDirectory>${project.build.directory}</exportDirectory> |
| 46 | + <dataStore>${dataStoreLocation}/${dataStore}</dataStore> |
| 47 | + <fileName>${project.artifactId}-${project.version}-reasoned-pb.zip</fileName> |
| 48 | + <isolate>false</isolate> |
123 | 49 | </configuration> |
124 | 50 | </execution> |
125 | 51 | </executions> |
126 | 52 | </plugin> |
127 | | - </plugins> |
128 | | - </build> |
129 | | - </profile> |
130 | | - |
131 | | - <!-- Deploy Zip File To Nexus --> |
132 | | - <profile> |
133 | | - <id>deployZipArtifacts</id> |
134 | | - <activation> |
135 | | - <property> |
136 | | - <name>deployToNexus</name> |
137 | | - <value>true</value> |
138 | | - </property> |
139 | | - </activation> |
140 | | - <build> |
141 | | - <plugins> |
142 | 53 | <plugin> |
143 | 54 | <groupId>org.apache.maven.plugins</groupId> |
144 | | - <artifactId>maven-deploy-plugin</artifactId> |
| 55 | + <artifactId>maven-assembly-plugin</artifactId> |
145 | 56 | <executions> |
146 | 57 | <execution> |
147 | | - <id>deploy-reasoned-sa</id> |
148 | | - <phase>deploy</phase> |
| 58 | + <id>assemble-origin-artifact</id> |
| 59 | + <phase>package</phase> |
149 | 60 | <goals> |
150 | | - <goal>deploy-file</goal> |
| 61 | + <goal>single</goal> |
151 | 62 | </goals> |
152 | 63 | <configuration> |
153 | | - <repositoryId>nexus</repositoryId> |
154 | | - <url>${deployNexusURL}</url> |
155 | | - <groupId>${data-artifact.groupId}</groupId> |
156 | | - <artifactId>${data-artifact.artifactId}</artifactId> |
157 | | - <version>${data-artifact.version}</version> |
158 | | - <pomFile>${project.build.directory}/loinc-export-pom.xml</pomFile> |
159 | | - <file>${data-artifact.filename}-reasoned-sa.zip</file> |
160 | | - <packaging>zip</packaging> |
161 | | - <classifier>reasoned-sa</classifier> |
| 64 | + <inlineDescriptors> |
| 65 | + <inlineDescriptor> |
| 66 | + <id>reasoned-sa</id> |
| 67 | + <formats> |
| 68 | + <format>zip</format> |
| 69 | + </formats> |
| 70 | + <fileSets> |
| 71 | + <fileSet> |
| 72 | + <outputDirectory>${dataStore}</outputDirectory> |
| 73 | + <directory>${dataStoreLocation}/${dataStore}</directory> |
| 74 | + <includes> |
| 75 | + <include>**</include> |
| 76 | + </includes> |
| 77 | + <excludes> |
| 78 | + <exclude>MANIFEST.MF</exclude> |
| 79 | + </excludes> |
| 80 | + </fileSet> |
| 81 | + </fileSets> |
| 82 | + <includeBaseDirectory>false</includeBaseDirectory> |
| 83 | + </inlineDescriptor> |
| 84 | + </inlineDescriptors> |
162 | 85 | </configuration> |
163 | 86 | </execution> |
| 87 | + </executions> |
| 88 | + </plugin> |
| 89 | + <!-- Attach Tinkar export Artifact to project --> |
| 90 | + <plugin> |
| 91 | + <groupId>org.codehaus.mojo</groupId> |
| 92 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 93 | + <executions> |
164 | 94 | <execution> |
165 | | - <id>deploy-reasoned-pb</id> |
166 | | - <phase>deploy</phase> |
| 95 | + <id>attach-artifacts</id> |
| 96 | + <phase>install</phase> |
167 | 97 | <goals> |
168 | | - <goal>deploy-file</goal> |
| 98 | + <goal>attach-artifact</goal> |
169 | 99 | </goals> |
170 | 100 | <configuration> |
171 | | - <repositoryId>nexus</repositoryId> |
172 | | - <url>${deployNexusURL}</url> |
173 | | - <groupId>${data-artifact.groupId}</groupId> |
174 | | - <artifactId>${data-artifact.artifactId}</artifactId> |
175 | | - <version>${data-artifact.version}</version> |
176 | | - <pomFile>${project.build.directory}/loinc-export-pom.xml</pomFile> |
177 | | - <file>${data-artifact.filename}-reasoned-pb.zip</file> |
178 | | - <packaging>zip</packaging> |
179 | | - <classifier>reasoned-pb</classifier> |
| 101 | + <artifacts> |
| 102 | + <artifact> |
| 103 | + <file>${project.build.directory}/${project.artifactId}-${project.version}-reasoned-sa.zip</file> |
| 104 | + <classifier>reasoned-sa</classifier> |
| 105 | + <type>zip</type> |
| 106 | + </artifact> |
| 107 | + <artifact> |
| 108 | + <file>${project.build.directory}/${project.artifactId}-${project.version}-reasoned-pb.zip</file> |
| 109 | + <classifier>reasoned-pb</classifier> |
| 110 | + <type>zip</type> |
| 111 | + </artifact> |
| 112 | + </artifacts> |
180 | 113 | </configuration> |
181 | 114 | </execution> |
182 | 115 | </executions> |
|
0 commit comments