forked from MoebiusSolutions/cac-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
259 lines (240 loc) · 7.68 KB
/
pom.xml
File metadata and controls
259 lines (240 loc) · 7.68 KB
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?xml version="1.0" encoding="UTF-8"?>
<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>com.github.MoebiusSolutions</groupId>
<artifactId>cac-agent-parent</artifactId>
<version>1.14-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cac-agent-parent</name>
<description>Root POM for cac-agent</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<build.number>0</build.number>
<!--
You must specify JDK 8 and 11 binaries paths to build in ~/.m2/toolchains.xml
-->
<!--
The server entry in settings.xml containing the credentials
to use with when pushing maven artifacts to github
(com.github.github:site-maven-plugin below).
-->
<github.global.server>github</github.global.server>
<!-- Convenience variables -->
<github-owner>MoebiusSolutions</github-owner>
<github-repo>cac-agent</github-repo>
<temp-mvn-repo>${project.build.directory}/mvn-repo</temp-mvn-repo>
</properties>
<scm>
<connection>scm:git:git@github.com:${github-owner}/${github-repo}.git</connection>
<developerConnection>scm:git:git@github.com:${github-owner}/${github-repo}.git</developerConnection>
<url>https://github.com/${github-owner}/${github-repo}/tree/${project.scm.tag}</url>
<tag>master</tag>
</scm>
<distributionManagement>
<!--
A filesystem repo stored in the target directory
By letting maven deploy here, we can follow-up with the github plugin
to upload the artifacts. (GitHub doens't support the Maven deploy protocol.)
-->
<repository>
<id>internal.repo</id>
<name>Temporary Staging Repository</name>
<url>file://${temp-mvn-repo}</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.pgm</artifactId>
<version>4.8.0.201706111038-r</version>
</dependency>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- default toolchain unless overriden -->
<toolchains>
<jdk>
<version>8</version>
<vendor>openjdk</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<Premain-Class>org.eclipse.jgit.pgm.CacHookingAgent</Premain-Class>
<Can-Redefine-Classes>false</Can-Redefine-Classes>
<Can-Retransform-Classes>false</Can-Retransform-Classes>
<Git-Commit-Id>${mvngit.commit.id}</Git-Commit-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<!-- Specify a custom release tag naming convention -->
<tagNameFormat>cac-agent-@{project.version}</tagNameFormat>
</configuration>
<dependencies>
<!--
Force a version of maven-scm-provider-gitexe that actually works correctly (committing to git).
See: https://stackoverflow.com/a/20657721
-->
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.4</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
<!-- Redirect "deploy" to a temporary, local directory -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<!--
Deploy sites files (jars for maven) to a directory on disk
NOTE: We're writing releases and snapshots to different directories,
then including only releases in the github plugin config that follows. This prevents
snapshots from ending up in the github repo.
-->
<altReleaseDeploymentRepository>internal.repo::default::file://${temp-mvn-repo}/releases</altReleaseDeploymentRepository>
<altSnapshotDeploymentRepository>internal.repo::default::file://${temp-mvn-repo}/snapshots</altSnapshotDeploymentRepository>
</configuration>
</plugin>
<!-- Upload local/temporary maven repo files to github -->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<!-- Merge new artifacts with existing repo (always true if we're pushing to a maven repo) -->
<merge>true</merge>
<!-- Git commit message -->
<message>Maven artifacts for ${project.artifactId}-${project.version}</message>
<!-- Disable webpage processing -->
<noJekyll>true</noJekyll>
<!--
Local directory to read from
NOTE: We only publish releases in this example.
Snapshots will fail with error if attempted.
-->
<outputDirectory>${temp-mvn-repo}/releases</outputDirectory>
<!-- Remote branch name to publish to -->
<branch>refs/heads/master</branch>
<includes>
<include>**/*</include>
</includes>
<!-- GitHub repo owner -->
<repositoryOwner>${github-owner}</repositoryOwner>
<!-- GitHub repo name for maven artifacts -->
<repositoryName>${github-repo}.mvn</repositoryName>
</configuration>
<executions>
<!--
Apply the site-maven-plugin's "site" goal to the
build's "deploy" phase
-->
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<modules>
<module>cac-agent-jdk-interface</module>
<module>cac-agent-jdk-8</module>
<module>cac-agent-jdk-11</module>
<module>cac-agent</module>
<module>cac-jgit</module>
<module>cac-ssl-relay</module>
</modules>
<profiles>
<profile>
<id>circleci</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase />
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>