-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
300 lines (275 loc) · 11.7 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
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pingidentity</groupId>
<artifactId>proxy-plugin-view</artifactId>
<version>0.1.0.2</version>
<packaging>jar</packaging>
<!-- You must customize the following values. -->
<!-- By convention, the extension name uses lowercased dash-delimited words. -->
<name>proxy-plugin-view</name>
<description>A plugin that provides an single endpoint for complex traversal queries</description>
<organization>
<name>Ping Identity</name>
<url>https://pingidentity.com</url>
</organization>
<properties>
<!--
The following properties will be used during the course of building one or
more extensions for UnboundID server products. If multiple extensions will
be packaged into the same jar file, then these property values should refer
to the collection rather than individual extensions.
-->
<!--
The Java compiler source and target versions for this project.
-->
<source.version>1.7</source.version>
<target.version>1.7</target.version>
<!--
The Server SDK version for which this extension will be built.
EXAMPLE: <server-sdk.version>6.0.0.0</server-sdk.version>
-->
<server-sdk.version>6.0.1.0</server-sdk.version>
<!--
The Maven version string of the Server SDK dependency to build against.
EXAMPLE: <server-sdk.maven-version>6.0.0.0-SNAPSHOT</server-sdk.maven-version>
-->
<server-sdk.maven-version>${server-sdk.version}</server-sdk.maven-version>
<!--
The name for this extension or set of extensions. It must begin with an
ASCII alphabetic character and must contain only ASCII alphabetic
characters, numeric digits, the period, and the dash.
EXAMPLE: extension.name=user-extension
-->
<extension.name>${project.name}</extension.name>
<!--
The version string for this extension or set of extensions. It must begin
with an ASCII alphabetic character or numeric digit and must contain only
ASCII alphabetic characters, numeric digits, the period, and the dash.
EXAMPLE: extension.version=1.0
-->
<extension.version>${project.version}</extension.version>
<!--
The name of the vendor for this extension or set of extensions. It must be
provided, but may contain any non-empty set of characters.
EXAMPLE: <extension.vendor.name>Example Corp.</extension.vendor.name>
-->
<extension.vendor.name>${project.organization.name}</extension.vendor.name>
<!--
The unique ID of the vendor for this extension or set of extensions. It
must be provided and should use a notation similar to that of Java packages.
EXAMPLE: <extension.vendor.id>com.example</extension.vendor.id>
-->
<extension.vendor.id>${project.groupId}</extension.vendor.id>
<!--
The URL of the vendor for this extension or set of extensions. It must be
provided and should be a valid URL.
EXAMPLE: extension.vendor.url=http://www.example.com/
-->
<extension.vendor.url>${project.organization.url}</extension.vendor.url>
<!--
Contact information (e.g., e-mail address, phone number, URL, etc.) for the
individual or group responsible for supporting this extension. It must be
provided, but may contain any non-empty set of characters.
EXAMPLE: [email protected]
-->
<extension.vendor.contact>[email protected]</extension.vendor.contact>
<!--
Indicates whether to include the extension source code in the jar file along
with the compiled classes. Including source code can help ensure that the
code is always available to those who might need to support the extension.
It must be provided, and the value should be either "true" or "false".
-->
<include.source>true</include.source>
<!--
Used to set the Build-Time value in the jar manifest.
-->
<maven.build.timestamp.format>yyyyMMddHHmmss'Z'</maven.build.timestamp.format>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${source.version}</source>
<target>${target.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>extension.name</property>
<message>You must set an extension.name property.</message>
<regex>[a-zA-Z]([a-zA-Z0-9\.\-])*</regex>
<regexMessage>The extension.name property must begin with an ASCII alphabetic character and must contain only ASCII alphabetic characters, numeric digits, the period, and the dash.</regexMessage>
</requireProperty>
<requireProperty>
<property>extension.version</property>
<message>You must set an extension.version property.</message>
<regex>[a-zA-Z0-9]([a-zA-Z0-9\.\-])*</regex>
<regexMessage>The extension.version property must begin with an ASCII alphabetic character or numeric digit and must contain only ASCII alphabetic characters, numeric digits, the period, and the dash.</regexMessage>
</requireProperty>
<requireProperty>
<property>extension.vendor.name</property>
<message>You must set an extension.vendor.name property.</message>
</requireProperty>
<requireProperty>
<property>extension.vendor.id</property>
<message>You must set an extension.vendor.id property.</message>
<regex>([a-zA-Z_$][a-zA-Z\d_$]*\.)*[a-zA-Z_$][a-zA-Z\d_$]*</regex>
<regexMessage>The extension.vendor.id property must must be provided and should use a notation similar to that of Java packages.</regexMessage>
</requireProperty>
<requireProperty>
<property>extension.vendor.url</property>
<message>You must set an extension.vendor.url property.</message>
</requireProperty>
<requireProperty>
<property>extension.vendor.contact</property>
<message>You must set an extension.vendor.contact property.</message>
</requireProperty>
<requireProperty>
<property>include.source</property>
<message>You must set an include.source property.</message>
<regex>(true|false)</regex>
<regexMessage>The include.source property must have a value of either 'true' or 'false'.</regexMessage>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<outputDirectory>${project.build.directory}/javadoc</outputDirectory>
<stylesheetfile>javadoc/ping-javadoc-stylesheet.css</stylesheetfile>
<linksource>${include.source}</linksource>
<show>protected</show>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<index>true</index>
<manifest>
<addClasspath>false</addClasspath>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Extension-Support-Contact>${extension.vendor.contact}</Extension-Support-Contact>
<UnboundID-Server-SDK-Version>${server-sdk.version}</UnboundID-Server-SDK-Version>
</manifestEntries>
</archive>
<excludes>
<exclude>velocity/</exclude>
<exclude>velocity/*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.unboundid</groupId>
<artifactId>server-sdk-docs-maven-plugin</artifactId>
<version>1.0.13</version>
<configuration>
<!-- The following configuration may be customized, if needed. -->
<velocityResourceLoaderPath>${project.basedir}/src/main/resources/velocity</velocityResourceLoaderPath>
<indexTemplate>index.html.vm</indexTemplate>
<extensionTemplate>extension.html.vm</extensionTemplate>
</configuration>
<dependencies>
<!-- This adds the Server SDK extension(s) to the plugin's classpath
so that it can process arguments, example usages, etc. -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>server-sdk</artifactId>
<version>${server-sdk.maven-version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build-server-sdk-docs</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<executions>
<execution>
<id>create-zip-archive</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
<finalName>${extension.vendor.id}.${extension.name}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>server-sdk</artifactId>
<version>${server-sdk.maven-version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>