pom.xml 29.7 KB
Newer Older
K
kohsuke 已提交
1 2 3
<!--
The MIT License

4 5
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
Daniel Dyer, Erik Ramfelt, Stephen Connolly, Tom Huybrechts, Alan Harder
K
kohsuke 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

K
TAB->WS  
kohsuke 已提交
26 27
<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>
28

K
TAB->WS  
kohsuke 已提交
29
  <parent>
30
    <groupId>org.jenkins-ci.main</groupId>
K
TAB->WS  
kohsuke 已提交
31
    <artifactId>pom</artifactId>
32
    <version>1.518-SNAPSHOT</version>
K
TAB->WS  
kohsuke 已提交
33 34
    <relativePath>../pom.xml</relativePath>
  </parent>
35

K
Kohsuke Kawaguchi 已提交
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 44
  <properties>
    <staplerFork>true</staplerFork>
K
Kohsuke Kawaguchi 已提交
45
    <stapler.version>1.207</stapler.version>
J
Jesse Glick 已提交
46
    <spring.version>2.5.6.SEC03</spring.version>
47
  </properties>
48

K
TAB->WS  
kohsuke 已提交
49 50
  <dependencies>
    <dependency>
51
      <groupId>${project.groupId}</groupId>
K
TAB->WS  
kohsuke 已提交
52
      <artifactId>remoting</artifactId>
53
      <!-- specified in the parent -->
K
TAB->WS  
kohsuke 已提交
54
    </dependency>
55 56 57 58 59
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>cli</artifactId>
      <version>${project.version}</version>
    </dependency>
60 61 62
    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>version-number</artifactId>
K
Kohsuke Kawaguchi 已提交
63
      <version>1.1</version>
64
    </dependency>
K
kohsuke 已提交
65
    <dependency>
66
      <groupId>org.jenkins-ci</groupId>
67
      <artifactId>crypto-util</artifactId>
68
      <version>1.1</version>
69 70 71
    </dependency>
    <dependency>
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
72 73
      <artifactId>jtidy</artifactId>
      <version>4aug2000r7-dev-hudson-1</version>
74 75 76 77 78 79
      <exclusions>
        <exclusion>
          <groupId>jdom</groupId>
          <artifactId>jdom</artifactId>
        </exclusion>
      </exclusions>
80
    </dependency>
81

82 83 84 85
    <dependency><!-- working around MCOMPILER-97 -->
      <groupId>org.jenkins-ci</groupId>
      <artifactId>core-annotation-processors</artifactId>
      <version>1.0</version>
86
      <scope>provided</scope>
87 88 89
      <optional>true</optional>
    </dependency>

90
    <!--
K
Kohsuke Kawaguchi 已提交
91
    <dependency>
K
Kohsuke Kawaguchi 已提交
92
      <groupId>com.google.inject</groupId>
K
Kohsuke Kawaguchi 已提交
93
      <artifactId>guice</artifactId>
K
Kohsuke Kawaguchi 已提交
94
      <version>3.0</version>
K
Kohsuke Kawaguchi 已提交
95
    </dependency>
96 97 98 99 100 101
    -->
    <dependency>
      <!-- we'd like to use stock Guice, but that breaks Maven embedder
           because it uses a modified Guice called Sisu -->
      <groupId>org.sonatype.sisu</groupId>
      <artifactId>sisu-guice</artifactId>
102 103 104 105 106 107 108 109 110 111 112
      <exclusions>
        <!--
             sisu-guice wants a patched version of guava, which is old.
             but from what I can tell from changes, it's GWT related
             and we don't care. So let's stick to the proper guava
        -->
        <exclusion>
          <groupId>org.sonatype.sisu</groupId>
          <artifactId>sisu-guava</artifactId>
        </exclusion>
      </exclusions>
113
    </dependency>
K
Kohsuke Kawaguchi 已提交
114

K
kohsuke 已提交
115 116 117
    <dependency>
      <groupId>org.jruby.ext.posix</groupId>
      <artifactId>jna-posix</artifactId>
K
kohsuke 已提交
118
      <version>1.0.3</version>
K
kohsuke 已提交
119
    </dependency>
K
kohsuke 已提交
120 121 122
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>trilead-putty-extension</artifactId>
123
      <version>1.2</version>
K
kohsuke 已提交
124
    </dependency>
125
    <dependency>
126
      <groupId>org.jenkins-ci</groupId>
127
      <artifactId>trilead-ssh2</artifactId>
K
Kohsuke Kawaguchi 已提交
128
      <version>build214-jenkins-2</version>
129
    </dependency>
K
TAB->WS  
kohsuke 已提交
130 131
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
132
      <artifactId>stapler-groovy</artifactId>
K
Kohsuke Kawaguchi 已提交
133
      <version>${stapler.version}</version>
134 135 136 137 138 139 140 141 142
      <exclusions>
        <exclusion>
          <groupId>commons-jelly</groupId>
          <artifactId>commons-jelly</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-jexl</groupId>
          <artifactId>commons-jexl</artifactId>
        </exclusion>
143 144 145 146
        <exclusion>
          <groupId>org.jvnet.hudson</groupId>
          <artifactId>commons-jexl</artifactId>
        </exclusion>
147 148 149 150 151
        <exclusion>
          <!-- we bundle groovy-all -->
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy</artifactId>
        </exclusion>
152
      </exclusions>
K
TAB->WS  
kohsuke 已提交
153
    </dependency>
K
Kohsuke Kawaguchi 已提交
154 155 156 157 158
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-jrebel</artifactId>
      <version>${stapler.version}</version>
    </dependency>
159 160 161 162 163
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>windows-package-checker</artifactId>
      <version>1.0</version>
    </dependency>
164 165 166
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-zeroclipboard</artifactId>
K
Kohsuke Kawaguchi 已提交
167
      <version>1.1.7-1</version>
168
    </dependency>
169 170 171
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
172
      <version>1.4</version>
173
    </dependency>
174 175 176
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <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 181
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
182
      <version>1.4</version>
183 184 185 186
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>

187
    <dependency>
188
      <groupId>com.infradna.tool</groupId>
189
      <artifactId>bridge-method-annotation</artifactId>
190
      <version>1.4</version>
J
Jesse Glick 已提交
191 192 193 194 195 196
      <exclusions> <!-- https://github.com/infradna/bridge-method-injector/issues/1 -->
        <exclusion>
          <artifactId>annotation-indexer</artifactId>
          <groupId>org.jvnet.hudson</groupId>
        </exclusion>
      </exclusions>
197 198
    </dependency>

199 200 201
    <dependency><!-- until we get this version through Stapler -->
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>json-lib</artifactId>
K
Kohsuke Kawaguchi 已提交
202
      <version>2.4-jenkins-1</version>
203 204
    </dependency>
    <dependency>
205 206
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
207
    </dependency>
208 209 210
    <dependency>
      <groupId>args4j</groupId>
      <artifactId>args4j</artifactId>
211
      <version>2.0.21</version>
212
    </dependency>
213
    <dependency>
J
Jesse Glick 已提交
214
      <groupId>org.jenkins-ci</groupId>
215
      <artifactId>annotation-indexer</artifactId>
J
Jesse Glick 已提交
216
      <version>1.4</version>
K
kohsuke 已提交
217 218
    </dependency>
    <dependency>
219
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
220
      <artifactId>task-reactor</artifactId>
221
      <version>1.2</version>
222
    </dependency>
K
kohsuke 已提交
223 224 225
    <dependency>
      <groupId>org.jvnet.localizer</groupId>
      <artifactId>localizer</artifactId>
K
kohsuke 已提交
226
      <version>1.10</version>
K
kohsuke 已提交
227
    </dependency>
K
kohsuke 已提交
228 229 230 231 232 233
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>2.7.6</version>
    </dependency>
    <dependency>
234
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
235
      <artifactId>xstream</artifactId>
236
      <version>1.4.4-jenkins-3</version>
K
kohsuke 已提交
237 238 239 240
    </dependency>
    <dependency>
      <groupId>jfree</groupId>
      <artifactId>jfreechart</artifactId>
241
      <version>1.0.9</version>
K
kohsuke 已提交
242 243
    </dependency>
    <dependency>
244
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
245 246 247 248 249 250
      <artifactId>ant</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
251
      <scope>provided</scope>
K
kohsuke 已提交
252 253 254 255 256
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
257 258 259
    <dependency><!-- hudson doesn't use this directly, but some plugins wanted to use the latest -->
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
260
      <version>2.6</version>
261
    </dependency>
K
kohsuke 已提交
262 263 264
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
265
      <version>2.1</version>
266 267 268 269 270 271
      <exclusions>
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
      </exclusions>
K
kohsuke 已提交
272
    </dependency>
K
kohsuke 已提交
273 274 275 276 277 278 279
    <dependency>
      <!--
        The version included in the transitive dependency doesn't have the source zip,
        so explicitly using the newer version.
      -->
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
280
      <version>1.8.3</version>
K
kohsuke 已提交
281 282
    </dependency>
    <dependency>
K
kohsuke 已提交
283 284
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
285
      <version>1.4.4</version>
286 287 288 289 290 291
      <exclusions>
        <exclusion><!-- using a patched version -->
          <groupId>javax.activation</groupId>
          <artifactId>activation</artifactId>
        </exclusion>
      </exclusions>
K
kohsuke 已提交
292 293
    </dependency>
    <dependency>
294
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
295
      <artifactId>activation</artifactId>
296
      <version>1.1.1-hudson-1</version>
K
kohsuke 已提交
297
    </dependency>
298 299 300 301
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1-beta-11</version>
K
kohsuke 已提交
302 303 304 305 306
      <exclusions>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
307 308 309 310
        <exclusion>
          <groupId>xom</groupId>
          <artifactId>xom</artifactId>
        </exclusion>
311 312 313 314 315 316 317 318 319 320 321 322
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xercesImpl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>jdom</groupId>
          <artifactId>jdom</artifactId>
        </exclusion>
K
kohsuke 已提交
323
      </exclusions>
324
    </dependency>
K
kohsuke 已提交
325 326 327 328 329 330 331 332 333
    <dependency>
      <groupId>commons-jelly</groupId>
      <artifactId>commons-jelly-tags-fmt</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>commons-jelly</groupId>
      <artifactId>commons-jelly-tags-xml</artifactId>
      <version>1.1</version>
334 335 336 337 338 339 340 341 342 343 344 345 346
      <exclusions>
        <exclusion>
          <groupId>commons-jelly</groupId>
          <artifactId>commons-jelly</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-jexl</groupId>
          <artifactId>commons-jexl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-jelly</groupId>
          <artifactId>commons-jelly-tags-junit</artifactId>
        </exclusion>
347 348 349 350
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
351 352 353 354
        <exclusion>
          <groupId>xalan</groupId>
          <artifactId>xalan</artifactId>
        </exclusion>
355 356 357 358 359 360 361 362
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xercesImpl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
363
      </exclusions>
K
kohsuke 已提交
364 365
    </dependency>
    <dependency>
366
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
367
      <artifactId>commons-jelly-tags-define</artifactId>
368
      <version>1.0.1-hudson-20071021</version>
369 370 371 372 373 374 375 376 377
      <exclusions>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-cli</groupId>
          <artifactId>commons-cli</artifactId>
        </exclusion>
P
Paul Weiss 已提交
378 379 380 381
        <exclusion>
          <groupId>org.jvnet.hudson</groupId>
          <artifactId>commons-jelly</artifactId>
        </exclusion>
382
      </exclusions>
K
kohsuke 已提交
383 384
    </dependency>
    <dependency>
385
      <groupId>org.jenkins-ci</groupId>
K
kohsuke 已提交
386
      <artifactId>commons-jexl</artifactId>
387
      <version>1.1-jenkins-20111212</version>
K
kohsuke 已提交
388
    </dependency>
K
kohsuke 已提交
389
    <dependency>
390 391
      <groupId>org.acegisecurity</groupId>
      <artifactId>acegi-security</artifactId>
392
      <version>1.0.7</version>
K
kohsuke 已提交
393
      <exclusions>
K
kohsuke 已提交
394
        <exclusion>
395 396
          <groupId>org.springframework</groupId>
          <artifactId>spring-remoting</artifactId>
K
kohsuke 已提交
397
        </exclusion>
398 399 400 401
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-support</artifactId>
        </exclusion>
K
kohsuke 已提交
402
      </exclusions>
K
kohsuke 已提交
403
    </dependency>
404
    <dependency>
405
      <groupId>org.codehaus.groovy</groupId>
406
      <artifactId>groovy-all</artifactId>
K
Kohsuke Kawaguchi 已提交
407
      <version>1.8.5</version>
K
Kohsuke Kawaguchi 已提交
408 409 410 411 412 413
    </dependency>
    <dependency><!-- groovy shell uses this but it doesn't declare this dependency -->
      <groupId>jline</groupId>
      <artifactId>jline</artifactId>
      <version>0.9.94</version>
      <scope>compile</scope>
414
    </dependency>
415 416 417
    <dependency><!-- groovy shell uses this but it doesn't declare this dependency -->
      <groupId>org.fusesource.jansi</groupId>
      <artifactId>jansi</artifactId>
418
      <version>1.9</version>
419
    </dependency>
420 421 422 423 424 425
    <dependency>
      <!--
        for Grails spring bean builder.
        Ideally we should be able to modify BeanBuilder so as not to depend on this.
      -->
      <groupId>org.springframework</groupId>
J
Jesse Glick 已提交
426 427
      <artifactId>spring-webmvc</artifactId>
      <version>${spring.version}</version>
428 429 430 431
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
J
Jesse Glick 已提交
432
      <version>${spring.version}</version>
433
    </dependency>
434
    <dependency><!-- Jenkins core doesn't use it but HUDSON-3811 requires us to put it. -->
435 436
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
J
Jesse Glick 已提交
437
      <version>${spring.version}</version>
438
    </dependency>
439 440 441
    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3</artifactId>
442
      <version>1.1.4c</version>
443
    </dependency>
K
kohsuke 已提交
444 445
    <dependency>
      <groupId>junit</groupId>
J
Jesse Glick 已提交
446
      <artifactId>junit</artifactId>
K
Kohsuke Kawaguchi 已提交
447
      <scope>test</scope>
K
kohsuke 已提交
448
    </dependency>
O
OHTAKE Tomohiro 已提交
449 450 451 452 453
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>
454 455 456 457 458 459 460 461 462 463
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito</artifactId>
      <scope>test</scope>
    </dependency>
K
kohsuke 已提交
464
    <dependency><!-- needed by Jelly -->
465
      <groupId>javax.servlet</groupId>
K
kohsuke 已提交
466 467 468
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
469 470 471
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
472
      <version>1.1.1</version>
473
    </dependency>
474 475 476
    <dependency>
      <groupId>com.sun.xml.txw2</groupId>
      <artifactId>txw2</artifactId>
477
      <version>20110809</version>
478
    </dependency>
479 480 481
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
482
      <version>3.2.1</version>
483
    </dependency>
484 485 486
    <dependency>
      <groupId>org.jvnet.winp</groupId>
      <artifactId>winp</artifactId>
487
      <version>1.16</version>
488
    </dependency>
489
    <dependency>
490
      <groupId>org.jenkins-ci</groupId>
491
      <artifactId>memory-monitor</artifactId>
492
      <version>1.7</version>
493
    </dependency>
494 495 496
    <dependency><!-- StAX implementation. See HUDSON-2547. -->
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>wstx-asl</artifactId>
497
      <version>3.2.9</version>
498
    </dependency>
499
    <dependency>
500
      <groupId>org.jenkins-ci</groupId>
501
      <artifactId>jmdns</artifactId>
502
      <version>3.4.0-jenkins-3</version>
503
    </dependency>
504 505 506
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
507
      <version>3.3.0-jenkins-3</version>
508
    </dependency>
509
    <dependency>
510
      <groupId>org.kohsuke</groupId>
511
      <artifactId>akuma</artifactId>
512
      <version>1.9</version>
513
    </dependency>
514 515 516 517 518
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>libpam4j</artifactId>
      <version>1.6</version>
    </dependency>
519 520 521
    <dependency>
      <groupId>org.jvnet.libzfs</groupId>
      <artifactId>libzfs</artifactId>
K
kohsuke 已提交
522
      <version>0.5</version>
523 524 525 526
    </dependency>
    <dependency>
      <groupId>com.sun.solaris</groupId>
      <artifactId>embedded_su4j</artifactId>
K
bug fix  
kohsuke 已提交
527
      <version>1.1</version>
528
    </dependency>
529 530 531
    <dependency>
      <groupId>net.java.sezpoz</groupId>
      <artifactId>sezpoz</artifactId>
532
      <version>1.9</version>
533
    </dependency>
534
    <dependency>
535
      <groupId>org.jenkins-ci</groupId>
536
      <artifactId>jinterop-wmi</artifactId>
537
      <version>1.1</version>
K
kohsuke 已提交
538 539
    </dependency>
    <dependency>
540
      <groupId>org.jenkins-ci</groupId>
K
kohsuke 已提交
541
      <artifactId>windows-remote-command</artifactId>
542
      <version>1.3</version>
543
    </dependency>
544 545 546
    <dependency>
      <groupId>org.kohsuke.metainf-services</groupId>
      <artifactId>metainf-services</artifactId>
K
Kohsuke Kawaguchi 已提交
547
      <version>1.4</version>
548
      <scope>provided</scope>
549 550
      <optional>true</optional>
    </dependency>
551 552 553
    <dependency>
      <groupId>org.jvnet.robust-http-client</groupId>
      <artifactId>robust-http-client</artifactId>
554
      <version>1.2</version>
555
    </dependency>
K
kohsuke 已提交
556

557
    <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 -->
K
...  
kohsuke 已提交
558 559
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
560 561
      <!--  NOTE: 1.7 requires Java 6, so don't use it! -->
      <version>1.6</version>
K
...  
kohsuke 已提交
562 563
    </dependency>

K
kohsuke 已提交
564 565 566
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>access-modifier-annotation</artifactId>
567
      <version>1.4</version>
K
kohsuke 已提交
568 569
    </dependency>

K
Kohsuke Kawaguchi 已提交
570 571 572 573 574 575 576
    <dependency>
      <groupId>findbugs</groupId>
      <artifactId>annotations</artifactId>
      <version>1.0.0</version>
      <scope>provided</scope>
    </dependency>

577 578 579 580 581
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>owasp-html-sanitizer</artifactId>
      <version>r88</version>
    </dependency>
582 583 584 585 586 587 588

    <dependency>
        <groupId>org.mindrot</groupId>
        <artifactId>jbcrypt</artifactId>
        <version>0.3m</version>
    </dependency>

589 590 591 592 593 594 595 596
    <!-- offline profiler API to put in the classpath if we need it -->
    <!--dependency>
      <groupId>com.yourkit.api</groupId>
      <artifactId>yjp</artifactId>
      <version>dontcare</version>
      <scope>system</scope>
      <systemPath>/usr/local/yjp/lib/yjp.jar</systemPath>
    </dependency-->
K
Kohsuke Kawaguchi 已提交
597 598 599 600 601

      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
      </dependency>
K
kohsuke 已提交
602
  </dependencies>
K
kohsuke 已提交
603

604 605
  <build>
    <plugins>
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
        <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>build-helper-maven-plugin</artifactId>
         <executions>
             <execution>
                 <id>add-source</id>
                 <phase>generate-sources</phase>
                 <goals>
                     <goal>add-source</goal>
                 </goals>
                 <configuration>
                     <sources>
                         <source>${project.build.directory}/generated-sources/antlr</source>
                         <source>${project.build.directory}/generated-sources/localizer</source>
                         <source>${project.build.directory}/generated-sources/taglib-interface</source>
                     </sources>
                 </configuration>
             </execution>
         </executions>
      </plugin>    
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
      <plugin>
        <groupId>org.jenkins-ci.tools</groupId>
        <artifactId>maven-hpi-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>generate-taglib-interface</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.jvnet.hudson.tools</groupId>
        <artifactId>maven-encoding-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>check-encoding</goal>
            </goals>
            <phase>compile</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.infradna.tool</groupId>
        <artifactId>bridge-method-injector</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>process</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <configuration>
          <fork>${staplerFork}</fork><!-- the source code is big enough now that otherwise it fails with OutOfMemoryError -->
          <maxmem>128m</maxmem>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jvnet.localizer</groupId>
        <artifactId>maven-localizer-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <fileMask>Messages.properties</fileMask>
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.kohsuke</groupId>
        <artifactId>access-modifier-checker</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>enforce</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>antlr-maven-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <id>cron</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <sourceDirectory>${basedir}/src/main/grammar</sourceDirectory>
              <grammars>crontab.g</grammars>
            </configuration>
          </execution>
          <execution>
            <id>labelExpr</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <sourceDirectory>${basedir}/src/main/grammar</sourceDirectory>
              <grammars>labelExpr.g</grammars>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
727
        <artifactId>maven-dependency-plugin</artifactId>
728 729
        <executions>
          <execution>
730
            <id>winsw</id>
731 732
            <phase>generate-resources</phase>
            <goals>
733 734
              <!-- we use copy as this is a dependency from outside the reactor -->
              <goal>copy</goal>
735
            </goals>
736 737 738 739 740
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.sun.winsw</groupId>
                  <artifactId>winsw</artifactId>
741
                  <version>1.13</version>
742 743 744 745 746 747 748
                  <classifier>bin</classifier>
                  <type>exe</type>
                  <outputDirectory>${project.build.outputDirectory}/windows-service</outputDirectory>
                  <destFileName>jenkins.exe</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
749 750 751
          </execution>
        </executions>
      </plugin>
752 753 754 755 756 757 758 759
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkCount>0.5C</forkCount>
          <reuseForks>true</reuseForks>
          <argLine>-XX:MaxPermSize=128m</argLine>
        </configuration>
      </plugin>
760 761 762 763 764 765 766 767 768 769 770 771 772
      <plugin><!-- set main class -->
        <artifactId>maven-jar-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <configuration>
          <archive>
            <manifest>
              <mainClass>hudson.Main</mainClass>
              <addClasspath>true</addClasspath>
              <classpathPrefix />
            </manifest>
          </archive>
        </configuration>
      </plugin>
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801
      <plugin><!-- run unit test in src/test/java -->
        <groupId>org.kohsuke.gmaven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <sources>
                <fileset>
                  <directory>${project.basedir}/src/test/java</directory>
                  <includes>
                    <include>**/*.groovy</include>
                  </includes>
                </fileset>
              </sources>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>1.8.5</version>
          </dependency>
        </dependencies>
      </plugin>
802 803 804
    </plugins>
  </build>

K
kohsuke 已提交
805 806 807 808 809
  <reporting>
    <plugins>
      <plugin><!-- generate Jelly tag lib documentation -->
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
C
Christoph Kutzinski 已提交
810
        <version>1.16</version>
K
kohsuke 已提交
811 812 813 814 815 816 817 818
        <configuration>
          <patterns>
            <pattern>/lib/.*</pattern>
          </patterns>
        </configuration>
      </plugin>
      <plugin><!-- skip slow dependency analysis -->
        <artifactId>maven-project-info-reports-plugin</artifactId>
C
Christoph Kutzinski 已提交
819
        <version>2.6</version>
K
kohsuke 已提交
820 821 822
        <configuration>
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
        </configuration>
823
      </plugin>
K
kohsuke 已提交
824 825
    </plugins>
  </reporting>
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875

  <profiles>
    <profile>
      <id>debug</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
    </profile>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin><!-- execute apt:process for "Extension points" Wiki page generation -->
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>apt-maven-plugin</artifactId>
            <!-- version specified in grandparent pom -->
            <executions>
              <execution>
                <goals>
                  <goal>process</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <!--
              generate jelly taglib docs from src/main/resoruces.
              this is necessary in addition to the <reporting> configuration
              to get the results deployed.
            -->
            <groupId>org.kohsuke.stapler</groupId>
            <artifactId>maven-stapler-plugin</artifactId>
            <!-- version specified in grandparent pom -->
            <executions>
              <execution>
                <goals>
                  <goal>jelly-taglibdoc</goal>
                </goals>
                <configuration>
                  <patterns>
                    <pattern>/lib/.*</pattern>
                  </patterns>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
K
Kohsuke Kawaguchi 已提交
876
      <!-- run FindBugs for better error detection. run as "mvn -Pfindbugs install site" -->
877 878 879 880 881 882
      <id>findbugs</id>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
C
Christoph Kutzinski 已提交
883
            <version>2.5.2</version>
884 885
            <configuration>
              <effort>Max</effort>
K
Kohsuke Kawaguchi 已提交
886
              <threshold>High</threshold>
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931
              <excludeFilterFile>src/findbugs-filter.xml</excludeFilterFile>
            </configuration>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
      <!--
        Obtain code coverage report. This is done by running Unit tests on our own and suppressing surefire.
      -->
      <id>cobertura</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.kohsuke.gmaven</groupId>
            <artifactId>gmaven-plugin</artifactId>
            <!-- version specified in grandparent pom -->
            <executions>
              <!-- run unit test -->
              <execution>
                <phase>test</phase>
                <goals>
                  <goal>execute</goal>
                </goals>
                <configuration>
                  <scriptpath>
                    <element>${project.basedir}/src/build-script</element>
                  </scriptpath>
                  <source>${project.basedir}/src/build-script/unitTest.groovy</source>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <!-- unit tests are run by GMaven through Ant. -->
            <artifactId>maven-surefire-plugin</artifactId>
            <!-- version specified in grandparent pom -->
            <configuration>
              <skipTests>true</skipTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
932
</project>