-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpom.xml
233 lines (209 loc) · 13.8 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<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/xsd/maven-4.0.0.xsd">
<!-- Copyright 2015 Regents of the University of Michigan Licensed under
the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License
at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
law or agreed to in writing, software distributed under the License is distributed
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied. See the License for the specific language governing permissions
and limitations under the License. -->
<!-- Use 'mvn package' from the command line to build everything. From Eclipse,
you can use: right click on pom.xml click Run As ... click Maven assembly:assembly
Note that the order that the plugins appear in this file is important, because
multiple plugins are associated with the same phase, but the output of one
plugin is used as input for the subsequent plugin. author Jim Irrer irrer@umich.edu -->
<modelVersion>4.0.0</modelVersion>
<groupId>edu.umro.DICOM</groupId>
<artifactId>dicomclient</artifactId>
<version>1.0.69</version>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<properties>
<resource.dir>src/main/resources</resource.dir>
<release>1</release>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency> <groupId>pixelmed</groupId> <artifactId>pixelmed</artifactId> <version>20221004</version> </dependency>
<dependency> <groupId>edu.umro</groupId> <artifactId>util</artifactId> <version>1.3.20</version> </dependency>
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency>
</dependencies>
<!-- <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.4</version> <scope>test</scope> </dependency>
<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.9.1</version> <scope>test</scope> </dependency>
Note: Using version 4.4 of junit fails to run tests under Maven with Intellij. Tue Dec 15 11:12:22 EST 2020
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope> </dependency>
-->
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
<modules>
</modules>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId> <version>3.4.2</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version>
<configuration>
<!-- put your configurations here -->
</configuration>
</plugin>
<plugin> <!-- source jar -->
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <!-- build install package -->
<artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version>
<!-- Copy the package files into the build repository. -->
<executions>
<execution>
<id>generate-the-docs</id>
<phase>package</phase>
<configuration>
<target>
<echo>Hello from generate.docs</echo>
<property name="doc.version" value="1.0.61" />
<!--suppress UnresolvedMavenProperty -->
<property name="doc.dir" value="docs/user_manual/user_manual_${doc.version}" />
<!--suppress UnresolvedMavenProperty -->
<property name="doc.dest.dir" value="${doc.dir}/output" />
<property name="code.version" value="${version}" />
<!--suppress UnresolvedMavenProperty -->
<ant antfile="${doc.dir}/build.xml"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>generate-manifest-with-timestamp</id>
<phase>package</phase>
<configuration>
<target>
<!--suppress UnresolvedMavenProperty -->
<echo>Hello from generate-manifest-with-timestamp : ${TIMESTAMP}</echo>
<delete file="target/MANIFEST.MF" />
<copy file="MANIFEST.MF" tofile="target/MANIFEST.MF" />
<tstamp>
<format property="TIMESTAMP" pattern="yyyy-MMM-dd hh:mm:ss aa"
locale="en,US" />
</tstamp>
<replace file="target/MANIFEST.MF">
<!--suppress UnresolvedMavenProperty -->
<replacefilter token="@@BUILD_DATE@@" value="${TIMESTAMP}" />
<!--suppress UnresolvedMavenProperty -->
<replacefilter token="@@BUILDER@@" value="${user.name}" />
<!--suppress UnresolvedMavenProperty -->
<replacefilter token="@@VERSION@@" value="${project.version}" />
</replace>
<jar update="true"
destfile="target/${project.artifactId}-${project.version}-jar-with-dependencies.jar"
manifest="target/MANIFEST.MF" />
<jar update="true"
destfile="target/${project.artifactId}-${project.version}-jar-with-dependencies.jar"
includes="target/MANIFEST.MF" />
<delete file="target/MANIFEST.MF" />
<!--suppress UnresolvedMavenProperty -->
<echo>Bye from generate-manifest-with-timestamp: ${TIMESTAMP}</echo>
<!-- </tasks> </configuration> <goals> <goal>run</goal> </goals>
</execution> <execution> <phase>package</phase> <configuration> <tasks> -->
<echo>maven-antrun-plugin build install package</echo>
<property name="project.dir"
value="Z:\Projects\Dicom\dicomclient\BuildRepository\${project.artifactId}-${project.version}" />
<!--suppress UnresolvedMavenProperty -->
<property name="dest.dir"
value="${project.dir}\${project.artifactId}-${project.version}" />
<!--suppress UnresolvedMavenProperty -->
<echo>dest.dir is: ${dest.dir}</echo>
<echo>version is: ${project.version}</echo>
<echo>artifactId is: ${project.artifactId}</echo>
<!--suppress UnresolvedMavenProperty -->
<delete dir="${project.dir}" />
<!--suppress UnresolvedMavenProperty -->
<mkdir dir="${project.dir}" />
<!--suppress UnresolvedMavenProperty -->
<mkdir dir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy
file="target/${project.artifactId}-${project.version}-jar-with-dependencies.jar"
toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DicomClientConfig.xml" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DicomClientConfigMil.xml" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DicomClientConfigMROQC.xml" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/PACSConfig.xml" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/logging.propertiesWindows"
toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/logging.propertiesLinux" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DICOMClient.bat" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<replace file="${dest.dir}/DICOMClient.bat" token="@@with-dep-jar@@" value="${project.artifactId}-${project.version}-jar-with-dependencies.jar" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DICOM+.bat" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<replace file="${dest.dir}/DICOM+.bat" token="@@with-dep-jar@@" value="${project.artifactId}-${project.version}-jar-with-dependencies.jar" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DICOM+MIL.bat" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<replace file="${dest.dir}/DICOM+MIL.bat" token="@@with-dep-jar@@" value="${project.artifactId}-${project.version}-jar-with-dependencies.jar" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${resource.dir}/DICOM+.sh" toDir="${dest.dir}" />
<!--suppress UnresolvedMavenProperty -->
<replace file="${dest.dir}/DICOM+.sh" token="@@with-dep-jar@@"
value="${project.artifactId}-${project.version}-jar-with-dependencies.jar" />
<!--suppress UnresolvedMavenProperty -->
<property name="standard.zip.dest"
value="${project.dir}/${project.artifactId}-${project.version}_Install.zip" />
<!-- zip standard package -->
<!--suppress UnresolvedMavenProperty -->
<echo>Gonna zip ${dest.dir} ==> prebuilt_packages/${project.artifactId}-${project.version}_Install.zip</echo>
<property name="zip.file" value="prebuilt_packages/${project.artifactId}-${project.version}_Install.zip" />
<!--suppress UnresolvedMavenProperty -->
<zip basedir="${dest.dir}" destfile="${zip.file}" />
<!--suppress UnresolvedMavenProperty -->
<copy file="${zip.file}" toDir="${project.dir}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
</repositories>
</project>