-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
245 lines (239 loc) · 11.8 KB
/
Copy pathpom.xml
File metadata and controls
245 lines (239 loc) · 11.8 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
<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.examples</groupId>
<artifactId>custom-sql-server-sync-extensions</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>custom-sql-server-sync-extensions</name>
<description>
Sync Source and Destination Extensions for Microsoft SQL Server
</description>
<organization>
<name>Ping Identity</name>
<url>https://pingidentity.com</url>
</organization>
<developers>
<developer>
<name>Doug Bulkley</name>
</developer>
</developers>
<properties>
<source.version>1.8</source.version>
<target.version>1.8</target.version>
<server-sdk.version>8.0.0.0</server-sdk.version>
<server-sdk.maven-version>${server-sdk.version}</server-sdk.maven-version>
<extension.name>${project.name}</extension.name>
<extension.version>${project.version}</extension.version>
<extension.vendor.name>${project.organization.name}</extension.vendor.name>
<extension.vendor.id>${project.groupId}</extension.vendor.id>
<extension.vendor.url>${project.organization.url}</extension.vendor.url>
<extension.vendor.contact>[email protected]</extension.vendor.contact>
<include.source>true</include.source>
<maven.build.timestamp.format>yyyyMMddHHmmss'Z'</maven.build.timestamp.format>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<finalName>${extension.vendor.id}.${extension.name}-${project.version}</finalName>
<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>
<compilerArgument>-Xpkginfo:always</compilerArgument>
</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.14</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>3.0.0</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>
<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>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>