~ubuntu-branches/ubuntu/trusty/jenkins/trusty

« back to all changes in this revision

Viewing changes to .pc/dependency-upgrades/0012-jnr-posix-upgrade.patch/core/pom.xml

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-13 12:35:19 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130813123519-tizgfxcr70trl7r0
Tags: 1.509.2+dfsg-1
* New upstream release (Closes: #706725):
  - d/control: Update versioned BD's:
    * jenkins-executable-war >= 1.28.
    * jenkins-instance-identity >= 1.3.
    * libjenkins-remoting-java >= 2.23.
    * libjenkins-winstone-java >= 0.9.10-jenkins-44.
    * libstapler-java >= 1.207.
    * libjenkins-json-java >= 2.4-jenkins-1.
    * libstapler-adjunct-timeline-java >= 1.4.
    * libstapler-adjunct-codemirror-java >= 1.2.
    * libmaven-hpi-plugin-java >= 1.93.
    * libjenkins-xstream-java >= 1.4.4-jenkins-3.
  - d/maven.rules: Map to older version of animal-sniffer-maven-plugin.
  - Add patch for compatibility with guava >= 0.14.
  - Add patch to exclude asm4 dependency via jnr-posix.
  - Fixes the following security vulnerabilities:
    CVE-2013-2034, CVE-2013-2033, CVE-2013-2034, CVE-2013-1808
* d/patches/*: Switch to using git patch-queue for managing patches.
* De-duplicate jars between libjenkins-java and jenkins-external-job-monitor
  (Closes: #701163):
  - d/control: Add dependency between jenkins-external-job-monitor ->
    libjenkins-java.
  - d/rules: 
    Drop installation of jenkins-core in jenkins-external-job-monitor.
  - d/jenkins-external-job-monitor.{links,install}: Link to jenkins-core
    in /usr/share/java instead of included version.
* Wait longer for jenkins to stop during restarts (Closes: #704848):
  - d/jenkins.init: Re-sync init script from upstream codebase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
The MIT License
 
3
 
 
4
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
 
5
Daniel Dyer, Erik Ramfelt, Stephen Connolly, Tom Huybrechts, Alan Harder
 
6
 
 
7
Permission is hereby granted, free of charge, to any person obtaining a copy
 
8
of this software and associated documentation files (the "Software"), to deal
 
9
in the Software without restriction, including without limitation the rights
 
10
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
11
copies of the Software, and to permit persons to whom the Software is
 
12
furnished to do so, subject to the following conditions:
 
13
 
 
14
The above copyright notice and this permission notice shall be included in
 
15
all copies or substantial portions of the Software.
 
16
 
 
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
20
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
22
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
23
THE SOFTWARE.
 
24
-->
 
25
 
 
26
<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">
 
27
  <modelVersion>4.0.0</modelVersion>
 
28
 
 
29
  <parent>
 
30
    <groupId>org.jenkins-ci.main</groupId>
 
31
    <artifactId>pom</artifactId>
 
32
    <version>1.509.2</version>
 
33
    <relativePath>../pom.xml</relativePath>
 
34
  </parent>
 
35
 
 
36
  <artifactId>jenkins-core</artifactId>
 
37
 
 
38
  <name>Jenkins core</name>
 
39
  <description>
 
40
    Contains the core Jenkins code and view files to render HTML.
 
41
  </description>
 
42
 
 
43
  <properties>
 
44
    <staplerFork>true</staplerFork>
 
45
    <stapler.version>1.207</stapler.version>
 
46
    <spring.version>2.5.6.SEC03</spring.version>
 
47
  </properties>
 
48
 
 
49
  <dependencies>
 
50
    <dependency>
 
51
      <groupId>${project.groupId}</groupId>
 
52
      <artifactId>remoting</artifactId>
 
53
      <!-- specified in the parent -->
 
54
    </dependency>
 
55
    <dependency>
 
56
      <groupId>${project.groupId}</groupId>
 
57
      <artifactId>cli</artifactId>
 
58
      <version>${project.version}</version>
 
59
    </dependency>
 
60
    <dependency>
 
61
      <groupId>org.jenkins-ci</groupId>
 
62
      <artifactId>version-number</artifactId>
 
63
      <version>1.1</version>
 
64
    </dependency>
 
65
    <dependency>
 
66
      <groupId>org.jenkins-ci</groupId>
 
67
      <artifactId>crypto-util</artifactId>
 
68
      <version>1.1</version>
 
69
    </dependency>
 
70
    <dependency>
 
71
      <groupId>org.jvnet.hudson</groupId>
 
72
      <artifactId>jtidy</artifactId>
 
73
      <version>4aug2000r7-dev-hudson-1</version>
 
74
      <exclusions>
 
75
        <exclusion>
 
76
          <groupId>jdom</groupId>
 
77
          <artifactId>jdom</artifactId>
 
78
        </exclusion>
 
79
      </exclusions>
 
80
    </dependency>
 
81
 
 
82
    <dependency><!-- working around MCOMPILER-97 -->
 
83
      <groupId>org.jenkins-ci</groupId>
 
84
      <artifactId>core-annotation-processors</artifactId>
 
85
      <version>1.0</version>
 
86
      <scope>provided</scope>
 
87
      <optional>true</optional>
 
88
    </dependency>
 
89
 
 
90
    <!--
 
91
    <dependency>
 
92
      <groupId>com.google.inject</groupId>
 
93
      <artifactId>guice</artifactId>
 
94
      <version>3.0</version>
 
95
    </dependency>
 
96
    -->
 
97
    <dependency>
 
98
      <!-- we'd like to use stock Guice, but that breaks Maven embedder
 
99
           because it uses a modified Guice called Sisu -->
 
100
      <groupId>org.sonatype.sisu</groupId>
 
101
      <artifactId>sisu-guice</artifactId>
 
102
      <exclusions>
 
103
        <!--
 
104
             sisu-guice wants a patched version of guava, which is old.
 
105
             but from what I can tell from changes, it's GWT related
 
106
             and we don't care. So let's stick to the proper guava
 
107
        -->
 
108
        <exclusion>
 
109
          <groupId>org.sonatype.sisu</groupId>
 
110
          <artifactId>sisu-guava</artifactId>
 
111
        </exclusion>
 
112
      </exclusions>
 
113
    </dependency>
 
114
 
 
115
    <dependency>
 
116
      <groupId>org.jruby.ext.posix</groupId>
 
117
      <artifactId>jna-posix</artifactId>
 
118
      <version>1.0.3</version>
 
119
    </dependency>
 
120
    <dependency>
 
121
      <groupId>org.kohsuke</groupId>
 
122
      <artifactId>trilead-putty-extension</artifactId>
 
123
      <version>1.2</version>
 
124
    </dependency>
 
125
    <dependency>
 
126
      <groupId>org.jenkins-ci</groupId>
 
127
      <artifactId>trilead-ssh2</artifactId>
 
128
      <version>build214-jenkins-2</version>
 
129
    </dependency>
 
130
    <dependency>
 
131
      <groupId>org.kohsuke.stapler</groupId>
 
132
      <artifactId>stapler-groovy</artifactId>
 
133
      <version>${stapler.version}</version>
 
134
      <exclusions>
 
135
        <exclusion>
 
136
          <groupId>commons-jelly</groupId>
 
137
          <artifactId>commons-jelly</artifactId>
 
138
        </exclusion>
 
139
        <exclusion>
 
140
          <groupId>commons-jexl</groupId>
 
141
          <artifactId>commons-jexl</artifactId>
 
142
        </exclusion>
 
143
        <exclusion>
 
144
          <groupId>org.jvnet.hudson</groupId>
 
145
          <artifactId>commons-jexl</artifactId>
 
146
        </exclusion>
 
147
        <exclusion>
 
148
          <!-- we bundle groovy-all -->
 
149
          <groupId>org.codehaus.groovy</groupId>
 
150
          <artifactId>groovy</artifactId>
 
151
        </exclusion>
 
152
      </exclusions>
 
153
    </dependency>
 
154
    <dependency>
 
155
      <groupId>org.kohsuke.stapler</groupId>
 
156
      <artifactId>stapler-jrebel</artifactId>
 
157
      <version>${stapler.version}</version>
 
158
    </dependency>
 
159
    <dependency>
 
160
      <groupId>org.kohsuke</groupId>
 
161
      <artifactId>windows-package-checker</artifactId>
 
162
      <version>1.0</version>
 
163
    </dependency>
 
164
    <dependency>
 
165
      <groupId>org.kohsuke.stapler</groupId>
 
166
      <artifactId>stapler-adjunct-zeroclipboard</artifactId>
 
167
      <version>1.1.7-1</version>
 
168
    </dependency>
 
169
    <dependency>
 
170
      <groupId>org.kohsuke.stapler</groupId>
 
171
      <artifactId>stapler-adjunct-timeline</artifactId>
 
172
      <version>1.4</version>
 
173
    </dependency>
 
174
    <dependency>
 
175
      <groupId>org.kohsuke.stapler</groupId>
 
176
      <artifactId>stapler-adjunct-codemirror</artifactId>
 
177
      <version>1.2</version>
 
178
    </dependency>
 
179
    <dependency><!-- this helps us see the source code of the control while we edit Jenkins. -->
 
180
      <groupId>org.kohsuke.stapler</groupId>
 
181
      <artifactId>stapler-adjunct-timeline</artifactId>
 
182
      <version>1.4</version>
 
183
      <classifier>tests</classifier>
 
184
      <scope>test</scope>
 
185
    </dependency>
 
186
 
 
187
    <dependency>
 
188
      <groupId>com.infradna.tool</groupId>
 
189
      <artifactId>bridge-method-annotation</artifactId>
 
190
      <version>1.4</version>
 
191
      <exclusions> <!-- https://github.com/infradna/bridge-method-injector/issues/1 -->
 
192
        <exclusion>
 
193
          <artifactId>annotation-indexer</artifactId>
 
194
          <groupId>org.jvnet.hudson</groupId>
 
195
        </exclusion>
 
196
      </exclusions>
 
197
    </dependency>
 
198
 
 
199
    <dependency><!-- until we get this version through Stapler -->
 
200
      <groupId>org.kohsuke.stapler</groupId>
 
201
      <artifactId>json-lib</artifactId>
 
202
      <version>2.4-jenkins-1</version>
 
203
    </dependency>
 
204
    <dependency>
 
205
      <groupId>commons-httpclient</groupId>
 
206
      <artifactId>commons-httpclient</artifactId>
 
207
    </dependency>
 
208
    <dependency>
 
209
      <groupId>args4j</groupId>
 
210
      <artifactId>args4j</artifactId>
 
211
      <version>2.0.21</version>
 
212
    </dependency>
 
213
    <dependency>
 
214
      <groupId>org.jenkins-ci</groupId>
 
215
      <artifactId>annotation-indexer</artifactId>
 
216
      <version>1.4</version>
 
217
    </dependency>
 
218
    <dependency>
 
219
      <groupId>org.jvnet.hudson</groupId>
 
220
      <artifactId>task-reactor</artifactId>
 
221
      <version>1.2</version>
 
222
    </dependency>
 
223
    <dependency>
 
224
      <groupId>org.jvnet.localizer</groupId>
 
225
      <artifactId>localizer</artifactId>
 
226
      <version>1.10</version>
 
227
    </dependency>
 
228
    <dependency>
 
229
      <groupId>antlr</groupId>
 
230
      <artifactId>antlr</artifactId>
 
231
      <version>2.7.6</version>
 
232
    </dependency>
 
233
    <dependency>
 
234
      <groupId>org.jvnet.hudson</groupId>
 
235
      <artifactId>xstream</artifactId>
 
236
      <version>1.4.4-jenkins-3</version>
 
237
    </dependency>
 
238
    <dependency>
 
239
      <groupId>jfree</groupId>
 
240
      <artifactId>jfreechart</artifactId>
 
241
      <version>1.0.9</version>
 
242
    </dependency>
 
243
    <dependency>
 
244
      <groupId>org.apache.ant</groupId>
 
245
      <artifactId>ant</artifactId>
 
246
    </dependency>
 
247
    <dependency>
 
248
      <groupId>javax.servlet</groupId>
 
249
      <artifactId>servlet-api</artifactId>
 
250
      <version>2.4</version>
 
251
      <scope>provided</scope>
 
252
    </dependency>
 
253
    <dependency>
 
254
      <groupId>commons-io</groupId>
 
255
      <artifactId>commons-io</artifactId>
 
256
    </dependency>
 
257
    <dependency><!-- hudson doesn't use this directly, but some plugins wanted to use the latest -->
 
258
      <groupId>commons-lang</groupId>
 
259
      <artifactId>commons-lang</artifactId>
 
260
      <version>2.6</version>
 
261
    </dependency>
 
262
    <dependency>
 
263
      <groupId>commons-digester</groupId>
 
264
      <artifactId>commons-digester</artifactId>
 
265
      <version>2.1</version>
 
266
      <exclusions>
 
267
        <exclusion>
 
268
          <groupId>xml-apis</groupId>
 
269
          <artifactId>xml-apis</artifactId>
 
270
        </exclusion>
 
271
      </exclusions>
 
272
    </dependency>
 
273
    <dependency>
 
274
      <!--
 
275
        The version included in the transitive dependency doesn't have the source zip,
 
276
        so explicitly using the newer version.
 
277
      -->
 
278
      <groupId>commons-beanutils</groupId>
 
279
      <artifactId>commons-beanutils</artifactId>
 
280
      <version>1.8.3</version>
 
281
    </dependency>
 
282
    <dependency>
 
283
      <groupId>javax.mail</groupId>
 
284
      <artifactId>mail</artifactId>
 
285
      <version>1.4.4</version>
 
286
      <exclusions>
 
287
        <exclusion><!-- using a patched version -->
 
288
          <groupId>javax.activation</groupId>
 
289
          <artifactId>activation</artifactId>
 
290
        </exclusion>
 
291
      </exclusions>
 
292
    </dependency>
 
293
    <dependency>
 
294
      <groupId>org.jvnet.hudson</groupId>
 
295
      <artifactId>activation</artifactId>
 
296
      <version>1.1.1-hudson-1</version>
 
297
    </dependency>
 
298
    <dependency>
 
299
      <groupId>jaxen</groupId>
 
300
      <artifactId>jaxen</artifactId>
 
301
      <version>1.1-beta-11</version>
 
302
      <exclusions>
 
303
        <exclusion>
 
304
          <groupId>dom4j</groupId>
 
305
          <artifactId>dom4j</artifactId>
 
306
        </exclusion>
 
307
        <exclusion>
 
308
          <groupId>xom</groupId>
 
309
          <artifactId>xom</artifactId>
 
310
        </exclusion>
 
311
        <exclusion>
 
312
          <groupId>xml-apis</groupId>
 
313
          <artifactId>xml-apis</artifactId>
 
314
        </exclusion>
 
315
        <exclusion>
 
316
          <groupId>xerces</groupId>
 
317
          <artifactId>xercesImpl</artifactId>
 
318
        </exclusion>
 
319
        <exclusion>
 
320
          <groupId>jdom</groupId>
 
321
          <artifactId>jdom</artifactId>
 
322
        </exclusion>
 
323
      </exclusions>
 
324
    </dependency>
 
325
    <dependency>
 
326
      <groupId>commons-jelly</groupId>
 
327
      <artifactId>commons-jelly-tags-fmt</artifactId>
 
328
      <version>1.0</version>
 
329
      <exclusions>
 
330
        <exclusion>
 
331
          <groupId>commons-jelly</groupId>
 
332
          <artifactId>commons-jelly</artifactId>
 
333
        </exclusion>
 
334
        <exclusion>
 
335
          <groupId>commons-jexl</groupId>
 
336
          <artifactId>commons-jexl</artifactId>
 
337
        </exclusion>
 
338
      </exclusions>
 
339
    </dependency>
 
340
    <dependency>
 
341
      <groupId>commons-jelly</groupId>
 
342
      <artifactId>commons-jelly-tags-xml</artifactId>
 
343
      <version>1.1</version>
 
344
      <exclusions>
 
345
        <exclusion>
 
346
          <groupId>commons-jelly</groupId>
 
347
          <artifactId>commons-jelly</artifactId>
 
348
        </exclusion>
 
349
        <exclusion>
 
350
          <groupId>commons-jexl</groupId>
 
351
          <artifactId>commons-jexl</artifactId>
 
352
        </exclusion>
 
353
        <exclusion>
 
354
          <groupId>commons-jelly</groupId>
 
355
          <artifactId>commons-jelly-tags-junit</artifactId>
 
356
        </exclusion>
 
357
        <exclusion>
 
358
          <groupId>xml-apis</groupId>
 
359
          <artifactId>xml-apis</artifactId>
 
360
        </exclusion>
 
361
        <exclusion>
 
362
          <groupId>xalan</groupId>
 
363
          <artifactId>xalan</artifactId>
 
364
        </exclusion>
 
365
        <exclusion>
 
366
          <groupId>xerces</groupId>
 
367
          <artifactId>xercesImpl</artifactId>
 
368
        </exclusion>
 
369
        <exclusion>
 
370
          <groupId>dom4j</groupId>
 
371
          <artifactId>dom4j</artifactId>
 
372
        </exclusion>
 
373
      </exclusions>
 
374
    </dependency>
 
375
    <dependency>
 
376
      <groupId>org.jvnet.hudson</groupId>
 
377
      <artifactId>commons-jelly-tags-define</artifactId>
 
378
      <version>1.0.1-hudson-20071021</version>
 
379
      <exclusions>
 
380
        <exclusion>
 
381
          <groupId>dom4j</groupId>
 
382
          <artifactId>dom4j</artifactId>
 
383
        </exclusion>
 
384
        <exclusion>
 
385
          <groupId>commons-cli</groupId>
 
386
          <artifactId>commons-cli</artifactId>
 
387
        </exclusion>
 
388
        <exclusion>
 
389
          <groupId>org.jvnet.hudson</groupId>
 
390
          <artifactId>commons-jelly</artifactId>
 
391
        </exclusion>
 
392
      </exclusions>
 
393
    </dependency>
 
394
    <dependency>
 
395
      <groupId>org.jenkins-ci</groupId>
 
396
      <artifactId>commons-jexl</artifactId>
 
397
      <version>1.1-jenkins-20111212</version>
 
398
    </dependency>
 
399
    <dependency>
 
400
      <groupId>org.acegisecurity</groupId>
 
401
      <artifactId>acegi-security</artifactId>
 
402
      <version>1.0.7</version>
 
403
      <exclusions>
 
404
        <exclusion>
 
405
          <groupId>org.springframework</groupId>
 
406
          <artifactId>spring-remoting</artifactId>
 
407
        </exclusion>
 
408
        <exclusion>
 
409
          <groupId>org.springframework</groupId>
 
410
          <artifactId>spring-support</artifactId>
 
411
        </exclusion>
 
412
      </exclusions>
 
413
    </dependency>
 
414
    <dependency>
 
415
      <groupId>org.codehaus.groovy</groupId>
 
416
      <artifactId>groovy-all</artifactId>
 
417
      <version>1.8.5</version>
 
418
    </dependency>
 
419
    <dependency><!-- groovy shell uses this but it doesn't declare this dependency -->
 
420
      <groupId>jline</groupId>
 
421
      <artifactId>jline</artifactId>
 
422
      <version>0.9.94</version>
 
423
      <scope>compile</scope>
 
424
    </dependency>
 
425
    <dependency><!-- groovy shell uses this but it doesn't declare this dependency -->
 
426
      <groupId>org.fusesource.jansi</groupId>
 
427
      <artifactId>jansi</artifactId>
 
428
      <version>1.9</version>
 
429
    </dependency>
 
430
    <dependency>
 
431
      <!--
 
432
        for Grails spring bean builder.
 
433
        Ideally we should be able to modify BeanBuilder so as not to depend on this.
 
434
      -->
 
435
      <groupId>org.springframework</groupId>
 
436
      <artifactId>spring-webmvc</artifactId>
 
437
      <version>${spring.version}</version>
 
438
    </dependency>
 
439
    <dependency>
 
440
      <groupId>org.springframework</groupId>
 
441
      <artifactId>spring-core</artifactId>
 
442
      <version>${spring.version}</version>
 
443
    </dependency>
 
444
    <dependency><!-- Jenkins core doesn't use it but HUDSON-3811 requires us to put it. -->
 
445
      <groupId>org.springframework</groupId>
 
446
      <artifactId>spring-aop</artifactId>
 
447
      <version>${spring.version}</version>
 
448
    </dependency>
 
449
    <dependency>
 
450
      <groupId>xpp3</groupId>
 
451
      <artifactId>xpp3</artifactId>
 
452
      <version>1.1.4c</version>
 
453
    </dependency>
 
454
    <dependency>
 
455
      <groupId>junit</groupId>
 
456
      <artifactId>junit</artifactId>
 
457
      <scope>test</scope>
 
458
    </dependency>
 
459
    <dependency>
 
460
      <groupId>org.mockito</groupId>
 
461
      <artifactId>mockito-core</artifactId>
 
462
      <scope>test</scope>
 
463
    </dependency>
 
464
    <dependency>
 
465
      <groupId>org.powermock</groupId>
 
466
      <artifactId>powermock-module-junit4</artifactId>
 
467
      <scope>test</scope>
 
468
    </dependency>
 
469
    <dependency>
 
470
      <groupId>org.powermock</groupId>
 
471
      <artifactId>powermock-api-mockito</artifactId>
 
472
      <scope>test</scope>
 
473
    </dependency>
 
474
    <dependency><!-- needed by Jelly -->
 
475
      <groupId>javax.servlet</groupId>
 
476
      <artifactId>jstl</artifactId>
 
477
      <version>1.1.0</version>
 
478
    </dependency>
 
479
    <dependency>
 
480
      <groupId>commons-logging</groupId>
 
481
      <artifactId>commons-logging</artifactId>
 
482
      <version>1.1.1</version>
 
483
    </dependency>
 
484
    <dependency>
 
485
      <groupId>com.sun.xml.txw2</groupId>
 
486
      <artifactId>txw2</artifactId>
 
487
      <version>20110809</version>
 
488
    </dependency>
 
489
    <dependency>
 
490
      <groupId>commons-collections</groupId>
 
491
      <artifactId>commons-collections</artifactId>
 
492
      <version>3.2.1</version>
 
493
    </dependency>
 
494
    <dependency>
 
495
      <groupId>org.jvnet.winp</groupId>
 
496
      <artifactId>winp</artifactId>
 
497
      <version>1.16</version>
 
498
    </dependency>
 
499
    <dependency>
 
500
      <groupId>org.jenkins-ci</groupId>
 
501
      <artifactId>memory-monitor</artifactId>
 
502
      <version>1.7</version>
 
503
    </dependency>
 
504
    <dependency><!-- StAX implementation. See HUDSON-2547. -->
 
505
      <groupId>org.codehaus.woodstox</groupId>
 
506
      <artifactId>wstx-asl</artifactId>
 
507
      <version>3.2.9</version>
 
508
    </dependency>
 
509
    <dependency>
 
510
      <groupId>org.jenkins-ci</groupId>
 
511
      <artifactId>jmdns</artifactId>
 
512
      <version>3.4.0-jenkins-3</version>
 
513
    </dependency>
 
514
    <dependency>
 
515
      <groupId>com.sun.winsw</groupId>
 
516
      <artifactId>winsw</artifactId>
 
517
      <version>1.10</version>
 
518
      <classifier>bin</classifier>
 
519
      <type>exe</type>
 
520
      <scope>provided</scope><!-- this isn't really a dependency that Maven should care about, so putting 'provided' -->
 
521
    </dependency>
 
522
    <dependency>
 
523
      <groupId>net.java.dev.jna</groupId>
 
524
      <artifactId>jna</artifactId>
 
525
      <version>3.3.0-jenkins-3</version>
 
526
    </dependency>
 
527
    <dependency>
 
528
      <groupId>org.kohsuke</groupId>
 
529
      <artifactId>akuma</artifactId>
 
530
      <version>1.9</version>
 
531
    </dependency>
 
532
    <dependency>
 
533
      <groupId>org.kohsuke</groupId>
 
534
      <artifactId>libpam4j</artifactId>
 
535
      <version>1.6</version>
 
536
    </dependency>
 
537
    <dependency>
 
538
      <groupId>org.jvnet.libzfs</groupId>
 
539
      <artifactId>libzfs</artifactId>
 
540
      <version>0.5</version>
 
541
    </dependency>
 
542
    <dependency>
 
543
      <groupId>com.sun.solaris</groupId>
 
544
      <artifactId>embedded_su4j</artifactId>
 
545
      <version>1.1</version>
 
546
    </dependency>
 
547
    <dependency>
 
548
      <groupId>net.java.sezpoz</groupId>
 
549
      <artifactId>sezpoz</artifactId>
 
550
      <version>1.9</version>
 
551
    </dependency>
 
552
    <dependency>
 
553
      <groupId>org.jenkins-ci</groupId>
 
554
      <artifactId>jinterop-wmi</artifactId>
 
555
      <version>1.1</version>
 
556
    </dependency>
 
557
    <dependency>
 
558
      <groupId>org.jenkins-ci</groupId>
 
559
      <artifactId>windows-remote-command</artifactId>
 
560
      <version>1.3</version>
 
561
    </dependency>
 
562
    <dependency>
 
563
      <groupId>org.kohsuke.metainf-services</groupId>
 
564
      <artifactId>metainf-services</artifactId>
 
565
      <version>1.4</version>
 
566
      <scope>provided</scope>
 
567
      <optional>true</optional>
 
568
    </dependency>
 
569
    <dependency>
 
570
      <groupId>org.jvnet.robust-http-client</groupId>
 
571
      <artifactId>robust-http-client</artifactId>
 
572
      <version>1.2</version>
 
573
    </dependency>
 
574
 
 
575
    <dependency><!-- Jenkins doesn't depend on it but some plugin wants the latest version. Bundling 1.6 until we figure out a mechanism to let plugins load its own -->
 
576
      <groupId>commons-codec</groupId>
 
577
      <artifactId>commons-codec</artifactId>
 
578
      <!--  NOTE: 1.7 requires Java 6, so don't use it! -->
 
579
      <version>1.6</version>
 
580
    </dependency>
 
581
 
 
582
    <dependency>
 
583
      <groupId>org.kohsuke</groupId>
 
584
      <artifactId>access-modifier-annotation</artifactId>
 
585
      <version>1.4</version>
 
586
    </dependency>
 
587
 
 
588
    <dependency>
 
589
      <groupId>findbugs</groupId>
 
590
      <artifactId>annotations</artifactId>
 
591
      <version>1.0.0</version>
 
592
      <scope>provided</scope>
 
593
    </dependency>
 
594
 
 
595
    <dependency>
 
596
      <groupId>org.kohsuke</groupId>
 
597
      <artifactId>owasp-html-sanitizer</artifactId>
 
598
      <version>r88</version>
 
599
    </dependency>
 
600
 
 
601
    <dependency>
 
602
        <groupId>org.mindrot</groupId>
 
603
        <artifactId>jbcrypt</artifactId>
 
604
        <version>0.3m</version>
 
605
    </dependency>
 
606
 
 
607
    <!-- offline profiler API to put in the classpath if we need it -->
 
608
    <!--dependency>
 
609
      <groupId>com.yourkit.api</groupId>
 
610
      <artifactId>yjp</artifactId>
 
611
      <version>dontcare</version>
 
612
      <scope>system</scope>
 
613
      <systemPath>/usr/local/yjp/lib/yjp.jar</systemPath>
 
614
    </dependency-->
 
615
 
 
616
      <dependency>
 
617
        <groupId>com.google.guava</groupId>
 
618
        <artifactId>guava</artifactId>
 
619
      </dependency>
 
620
  </dependencies>
 
621
 
 
622
  <build>
 
623
    <plugins>
 
624
        <plugin>
 
625
         <groupId>org.codehaus.mojo</groupId>
 
626
         <artifactId>build-helper-maven-plugin</artifactId>
 
627
         <executions>
 
628
             <execution>
 
629
                 <id>add-source</id>
 
630
                 <phase>generate-sources</phase>
 
631
                 <goals>
 
632
                     <goal>add-source</goal>
 
633
                 </goals>
 
634
                 <configuration>
 
635
                     <sources>
 
636
                         <source>${project.build.directory}/generated-sources/antlr</source>
 
637
                         <source>${project.build.directory}/generated-sources/localizer</source>
 
638
                         <source>${project.build.directory}/generated-sources/taglib-interface</source>
 
639
                     </sources>
 
640
                 </configuration>
 
641
             </execution>
 
642
         </executions>
 
643
      </plugin>    
 
644
      <plugin>
 
645
        <groupId>org.jenkins-ci.tools</groupId>
 
646
        <artifactId>maven-hpi-plugin</artifactId>
 
647
        <executions>
 
648
          <execution>
 
649
            <goals>
 
650
              <goal>generate-taglib-interface</goal>
 
651
            </goals>
 
652
          </execution>
 
653
        </executions>
 
654
      </plugin>
 
655
      <plugin>
 
656
        <groupId>org.jvnet.hudson.tools</groupId>
 
657
        <artifactId>maven-encoding-plugin</artifactId>
 
658
        <!-- version specified in grandparent pom -->
 
659
        <executions>
 
660
          <execution>
 
661
            <goals>
 
662
              <goal>check-encoding</goal>
 
663
            </goals>
 
664
            <phase>compile</phase>
 
665
          </execution>
 
666
        </executions>
 
667
      </plugin>
 
668
      <plugin>
 
669
        <groupId>com.infradna.tool</groupId>
 
670
        <artifactId>bridge-method-injector</artifactId>
 
671
        <!-- version specified in grandparent pom -->
 
672
        <executions>
 
673
          <execution>
 
674
            <goals>
 
675
              <goal>process</goal>
 
676
            </goals>
 
677
          </execution>
 
678
        </executions>
 
679
      </plugin>
 
680
      <plugin>
 
681
        <groupId>org.apache.maven.plugins</groupId>
 
682
        <artifactId>maven-compiler-plugin</artifactId>
 
683
        <version>2.3.2</version>
 
684
        <configuration>
 
685
          <excludes>
 
686
             <exclude>**/os/solaris/*</exclude>
 
687
             <exclude>**/os/windows/*</exclude>
 
688
             <exclude>**/DCOMSandbox.java</exclude>
 
689
             <exclude>**/DotNet.java</exclude>
 
690
             <exclude>**/WindowsSlaveInstaller.java</exclude>
 
691
             <exclude>**/WindowsInstallerLink.java</exclude>
 
692
          </excludes>
 
693
          <testExcludes>
 
694
             <exclude>**/DCOMSandbox.java</exclude>
 
695
          </testExcludes>
 
696
        </configuration>
 
697
      </plugin>
 
698
      <plugin>
 
699
        <groupId>org.kohsuke.stapler</groupId>
 
700
        <artifactId>maven-stapler-plugin</artifactId>
 
701
        <!-- version specified in grandparent pom -->
 
702
        <configuration>
 
703
          <fork>${staplerFork}</fork><!-- the source code is big enough now that otherwise it fails with OutOfMemoryError -->
 
704
          <maxmem>128m</maxmem>
 
705
          <excludes>
 
706
             <exclude>**/os/solaris/*</exclude>
 
707
             <exclude>**/os/windows/*</exclude>
 
708
             <exclude>**/DCOMSandbox.java</exclude>
 
709
             <exclude>**/DotNet.java</exclude>
 
710
             <exclude>**/WindowsSlaveInstaller.java</exclude>
 
711
             <exclude>**/WindowsInstallerLink.java</exclude>
 
712
          </excludes>
 
713
          <testExcludes>
 
714
             <exclude>**/DCOMSandbox.java</exclude>
 
715
          </testExcludes>
 
716
        </configuration>
 
717
      </plugin>
 
718
      <plugin>
 
719
        <groupId>org.jvnet.localizer</groupId>
 
720
        <artifactId>maven-localizer-plugin</artifactId>
 
721
        <!-- version specified in grandparent pom -->
 
722
        <executions>
 
723
          <execution>
 
724
            <goals>
 
725
              <goal>generate</goal>
 
726
            </goals>
 
727
            <configuration>
 
728
              <fileMask>Messages.properties</fileMask>
 
729
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
 
730
            </configuration>
 
731
          </execution>
 
732
        </executions>
 
733
      </plugin>
 
734
      <plugin>
 
735
        <groupId>org.kohsuke</groupId>
 
736
        <artifactId>access-modifier-checker</artifactId>
 
737
        <!-- version specified in grandparent pom -->
 
738
        <executions>
 
739
          <execution>
 
740
            <goals>
 
741
              <goal>enforce</goal>
 
742
            </goals>
 
743
          </execution>
 
744
        </executions>
 
745
      </plugin>
 
746
      <plugin>
 
747
        <groupId>org.codehaus.mojo</groupId>
 
748
        <artifactId>antlr-maven-plugin</artifactId>
 
749
        <!-- version specified in grandparent pom -->
 
750
        <executions>
 
751
          <execution>
 
752
            <id>cron</id>
 
753
            <goals>
 
754
              <goal>generate</goal>
 
755
            </goals>
 
756
            <configuration>
 
757
              <sourceDirectory>${basedir}/src/main/grammar</sourceDirectory>
 
758
              <grammars>crontab.g</grammars>
 
759
            </configuration>
 
760
          </execution>
 
761
          <execution>
 
762
            <id>labelExpr</id>
 
763
            <goals>
 
764
              <goal>generate</goal>
 
765
            </goals>
 
766
            <configuration>
 
767
              <sourceDirectory>${basedir}/src/main/grammar</sourceDirectory>
 
768
              <grammars>labelExpr.g</grammars>
 
769
            </configuration>
 
770
          </execution>
 
771
        </executions>
 
772
      </plugin>
 
773
      <plugin><!-- set main class -->
 
774
        <artifactId>maven-jar-plugin</artifactId>
 
775
        <!-- version specified in grandparent pom -->
 
776
        <configuration>
 
777
          <archive>
 
778
            <manifest>
 
779
              <mainClass>hudson.Main</mainClass>
 
780
              <addClasspath>true</addClasspath>
 
781
              <classpathPrefix />
 
782
            </manifest>
 
783
          </archive>
 
784
        </configuration>
 
785
      </plugin>
 
786
      <plugin><!-- run unit test in src/test/java -->
 
787
        <groupId>org.kohsuke.gmaven</groupId>
 
788
        <artifactId>gmaven-plugin</artifactId>
 
789
        <!-- version specified in grandparent pom -->
 
790
        <executions>
 
791
          <execution>
 
792
            <goals>
 
793
              <goal>testCompile</goal>
 
794
            </goals>
 
795
            <configuration>
 
796
              <sources>
 
797
                <fileset>
 
798
                  <directory>${project.basedir}/src/test/java</directory>
 
799
                  <includes>
 
800
                    <include>**/*.groovy</include>
 
801
                  </includes>
 
802
                </fileset>
 
803
              </sources>
 
804
            </configuration>
 
805
          </execution>
 
806
        </executions>
 
807
        <dependencies>
 
808
          <dependency>
 
809
            <groupId>org.codehaus.groovy</groupId>
 
810
            <artifactId>groovy-all</artifactId>
 
811
            <version>1.8.5</version>
 
812
          </dependency>
 
813
        </dependencies>
 
814
      </plugin>
 
815
    </plugins>
 
816
  </build>
 
817
 
 
818
  <reporting>
 
819
    <plugins>
 
820
      <plugin><!-- generate Jelly tag lib documentation -->
 
821
        <groupId>org.kohsuke.stapler</groupId>
 
822
        <artifactId>maven-stapler-plugin</artifactId>
 
823
        <version>1.16</version>
 
824
        <configuration>
 
825
          <patterns>
 
826
            <pattern>/lib/.*</pattern>
 
827
          </patterns>
 
828
        </configuration>
 
829
      </plugin>
 
830
      <plugin><!-- skip slow dependency analysis -->
 
831
        <artifactId>maven-project-info-reports-plugin</artifactId>
 
832
        <version>2.6</version>
 
833
        <configuration>
 
834
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
 
835
        </configuration>
 
836
      </plugin>
 
837
    </plugins>
 
838
  </reporting>
 
839
 
 
840
  <profiles>
 
841
    <profile>
 
842
      <id>debug</id>
 
843
      <activation>
 
844
        <activeByDefault>true</activeByDefault>
 
845
      </activation>
 
846
    </profile>
 
847
    <profile>
 
848
      <id>release</id>
 
849
      <build>
 
850
        <plugins>
 
851
          <plugin><!-- execute apt:process for "Extension points" Wiki page generation -->
 
852
            <groupId>org.codehaus.mojo</groupId>
 
853
            <artifactId>apt-maven-plugin</artifactId>
 
854
            <!-- version specified in grandparent pom -->
 
855
            <executions>
 
856
              <execution>
 
857
                <goals>
 
858
                  <goal>process</goal>
 
859
                </goals>
 
860
              </execution>
 
861
            </executions>
 
862
          </plugin>
 
863
          <plugin>
 
864
            <!--
 
865
              generate jelly taglib docs from src/main/resoruces.
 
866
              this is necessary in addition to the <reporting> configuration
 
867
              to get the results deployed.
 
868
            -->
 
869
            <groupId>org.kohsuke.stapler</groupId>
 
870
            <artifactId>maven-stapler-plugin</artifactId>
 
871
            <!-- version specified in grandparent pom -->
 
872
            <executions>
 
873
              <execution>
 
874
                <goals>
 
875
                  <goal>jelly-taglibdoc</goal>
 
876
                </goals>
 
877
                <configuration>
 
878
                  <patterns>
 
879
                    <pattern>/lib/.*</pattern>
 
880
                  </patterns>
 
881
                </configuration>
 
882
              </execution>
 
883
            </executions>
 
884
          </plugin>
 
885
        </plugins>
 
886
      </build>
 
887
    </profile>
 
888
    <profile>
 
889
      <!-- run FindBugs for better error detection. run as "mvn -Pfindbugs install site" -->
 
890
      <id>findbugs</id>
 
891
      <reporting>
 
892
        <plugins>
 
893
          <plugin>
 
894
            <groupId>org.codehaus.mojo</groupId>
 
895
            <artifactId>findbugs-maven-plugin</artifactId>
 
896
            <version>2.5.2</version>
 
897
            <configuration>
 
898
              <effort>Max</effort>
 
899
              <threshold>High</threshold>
 
900
              <excludeFilterFile>src/findbugs-filter.xml</excludeFilterFile>
 
901
            </configuration>
 
902
          </plugin>
 
903
        </plugins>
 
904
      </reporting>
 
905
    </profile>
 
906
    <profile>
 
907
      <!--
 
908
        Obtain code coverage report. This is done by running Unit tests on our own and suppressing surefire.
 
909
      -->
 
910
      <id>cobertura</id>
 
911
      <build>
 
912
        <plugins>
 
913
          <plugin>
 
914
            <groupId>org.kohsuke.gmaven</groupId>
 
915
            <artifactId>gmaven-plugin</artifactId>
 
916
            <!-- version specified in grandparent pom -->
 
917
            <executions>
 
918
              <!-- run unit test -->
 
919
              <execution>
 
920
                <phase>test</phase>
 
921
                <goals>
 
922
                  <goal>execute</goal>
 
923
                </goals>
 
924
                <configuration>
 
925
                  <scriptpath>
 
926
                    <element>${project.basedir}/src/build-script</element>
 
927
                  </scriptpath>
 
928
                  <source>${project.basedir}/src/build-script/unitTest.groovy</source>
 
929
                </configuration>
 
930
              </execution>
 
931
            </executions>
 
932
          </plugin>
 
933
          <plugin>
 
934
            <!-- unit tests are run by GMaven through Ant. -->
 
935
            <artifactId>maven-surefire-plugin</artifactId>
 
936
            <!-- version specified in grandparent pom -->
 
937
            <configuration>
 
938
              <skipTests>true</skipTests>
 
939
            </configuration>
 
940
          </plugin>
 
941
        </plugins>
 
942
      </build>
 
943
    </profile>
 
944
  </profiles>
 
945
</project>