-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpom.xml
374 lines (353 loc) · 14 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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.keevosh</groupId>
<artifactId>nb-springboot-configuration-support</artifactId>
<version>1.0</version>
<packaging>nbm</packaging>
<name>Spring Boot Configuration Support</name>
<url>http://keevosh.github.io/nb-springboot-configuration-support/</url>
<organization>
<name>Keevosh ULP</name>
<url>http://www.keevosh.com</url>
</organization>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>
A business-friendly OSS license. It's also the license of
Spring framework itself.
</comments>
</license>
</licenses>
<inceptionYear>2015</inceptionYear>
<developers>
<developer>
<id>mehiel</id>
<name>Aggelos Karalias</name>
<email>[email protected]</email>
<url>https://linkedin.com/in/akaralias</url>
<organization>Keevosh</organization>
<organizationUrl>http://www.keevosh.com</organizationUrl>
<roles>
<role>founder</role>
<role>developer</role>
</roles>
<timezone>+2</timezone>
</developer>
</developers>
<scm>
<url>https://github.com/keevosh/nb-springboot-configuration-support</url>
<connection>scm:git:git://github.com/keevosh/nb-springboot-configuration-support.git</connection>
<developerConnection>scm:git:[email protected]:keevosh/nb-springboot-configuration-support.git</developerConnection>
</scm>
<issueManagement>
<url>https://github.com/keevosh/nb-springboot-configuration-support/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<properties>
<plugins.nbm.version>3.13</plugins.nbm.version>
<plugins.compiler.version>2.5.1</plugins.compiler.version>
<plugins.jar.version>2.4</plugins.jar.version>
<plugins.javadoc.version>2.10.1</plugins.javadoc.version>
<plugins.source.version>2.4</plugins.source.version>
<plugins.ghdownloads.version>0.6</plugins.ghdownloads.version>
<plugins.ghsite.version>0.10</plugins.ghsite.version>
<plugins.site.version>3.4</plugins.site.version>
<plugins.projectinfo.version>2.8</plugins.projectinfo.version>
<plugins.surefire.version>2.6</plugins.surefire.version>
<plugins.checkstyle.version>2.6</plugins.checkstyle.version>
<netbeans.api.version>RELEASE80</netbeans.api.version>
<spring.version>1.2.3.RELEASE</spring.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>${plugins.nbm.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${plugins.compiler.version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${plugins.jar.version}</version>
<configuration>
<useDefaultManifestFile>true</useDefaultManifestFile>
</configuration>
</plugin>
<!--plugin>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<version>${plugins.ghdownloads.version}</version>
<configuration>
<description>Official ${project.name} build of the ${project.version} release</description>
<override>true</override>
<includeAttached>true</includeAttached>
<server>github</server>
</configuration>
<executions>
<execution>
<goals>
<goal>upload</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin-->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>${plugins.ghsite.version}</version>
<configuration>
<skip>${skipGithubSite}</skip>
<message>Building site for ${project.version}</message>
<server>github</server>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${plugins.site.version}</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${plugins.projectinfo.version}</version>
<reportSets>
<reportSet>
<id>default</id>
<reports>
<report>project-team</report>
<report>scm</report>
<report>issue-tracking</report>
<report>license</report>
<report>dependencies</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<dependencyDetailsEnabled>true</dependencyDetailsEnabled>
<dependencyLocationsEnabled>true</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugins.javadoc.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${plugins.surefire.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${plugins.checkstyle.version}</version>
</plugin>
</reportPlugins>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugins.javadoc.version}</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${plugins.source.version}</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<!-- Add NetBeans modules maven repository -->
<repository>
<id>netbeans</id>
<name>Repository hosting NetBeans modules</name>
<url>http://bits.netbeans.org/nexus/content/groups/netbeans</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- Add spring.io maven repository -->
<repository>
<id>spring-snapshots</id>
<url>http://repo.spring.io/snapshot</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<!--
NetBeans Module Dependencies. We depend on:
Editor Code Completion API
ClassPath API
File System API
Nodes API
Window System API
Utilities API
Lookup API
Datasystems API
Common Annotations API
-->
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-api-annotations-common</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-editor-completion</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-api-java-classpath</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-filesystems</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-windows</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-nodes</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-loaders</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<!--
Spring Boot Dependencies. We depend on:
Spring Boot Configuration Processor
+ org.json
- commons-logging
- spring-core
Spring Boot
- spring-aop
- spring-beans
- spring-context
- spring-core
We get a dependency on boot's configuration processor in order to
use its object model for configuration metadata and the json
marshaller. So we keep its json dep but we exclude everything else
as they are not needed.
We normally don't need spring-boot either but the configuration
processor has a META-INF/services javax.annotation Processor that
scans for classes annotated with
org.springframework.boot.context.properties.ConfigurationProperties
so we have 4 options here:
1. add the dependency to the module (this is what we do), but
exclude and transitive dependency as they are not needed.
2. hack the dependency to remove the META-INF/services from
jar. But this will make it hard for other developers to
get the project and just compile/run it
3. run javac with the -proc:none compiler argument, but this is
not viable either because several netbeans modules (like the
Common Annotations API) use this mechanism too
4. run javac with -proc:none and enable the maven-process-plugin
to do the annotations processing, but this is also not viable
because they just give an option to whitelist processors so
we must know every required processor from netbeans API or
any other dependency which is a pain again for other devs
So we pay the cost of bringing in the npm the spring-boot.jar. We
could probably configure the nbm packaging to have a way to
exclude dependencies from the final package but this is left as a
task for a future version.
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>