pom.xml 26.3 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.433-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.174</stapler.version>
46
  </properties>
47

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

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

88
    <!--
K
Kohsuke Kawaguchi 已提交
89
    <dependency>
K
Kohsuke Kawaguchi 已提交
90
      <groupId>com.google.inject</groupId>
K
Kohsuke Kawaguchi 已提交
91
      <artifactId>guice</artifactId>
K
Kohsuke Kawaguchi 已提交
92
      <version>3.0</version>
K
Kohsuke Kawaguchi 已提交
93
    </dependency>
94 95 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>
      <version>3.0.3</version>
    </dependency>
K
Kohsuke Kawaguchi 已提交
102

K
kohsuke 已提交
103 104 105
    <dependency>
      <groupId>org.jruby.ext.posix</groupId>
      <artifactId>jna-posix</artifactId>
K
kohsuke 已提交
106
      <version>1.0.3</version>
K
kohsuke 已提交
107
    </dependency>
K
kohsuke 已提交
108 109 110 111 112
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>trilead-putty-extension</artifactId>
      <version>1.0</version>
    </dependency>
113 114 115 116 117
    <dependency>
      <groupId>org.jvnet.hudson</groupId>
      <artifactId>trilead-ssh2</artifactId>
      <version>build212-hudson-5</version>
    </dependency>
K
TAB->WS  
kohsuke 已提交
118 119
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
120
      <artifactId>stapler-groovy</artifactId>
K
Kohsuke Kawaguchi 已提交
121
      <version>${stapler.version}</version>
122 123 124 125 126 127 128 129 130
      <exclusions>
        <exclusion>
          <groupId>commons-jelly</groupId>
          <artifactId>commons-jelly</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-jexl</groupId>
          <artifactId>commons-jexl</artifactId>
        </exclusion>
131 132 133 134 135
        <exclusion>
          <!-- we bundle groovy-all -->
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy</artifactId>
        </exclusion>
136
      </exclusions>
K
TAB->WS  
kohsuke 已提交
137
    </dependency>
K
Kohsuke Kawaguchi 已提交
138 139 140 141 142
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-jrebel</artifactId>
      <version>${stapler.version}</version>
    </dependency>
143 144 145
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
146
      <version>1.3</version>
147
    </dependency>
148 149 150
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-codemirror</artifactId>
151
      <version>1.1</version>
152
    </dependency>
153
    <dependency><!-- this helps us see the source code of the control while we edit Jenkins. -->
154 155 156 157 158 159 160
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
      <version>1.0</version>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>

161
    <dependency>
162
      <groupId>com.infradna.tool</groupId>
163
      <artifactId>bridge-method-annotation</artifactId>
164
      <version>1.4</version>
165 166
    </dependency>

167 168 169
    <dependency><!-- until we get this version through Stapler -->
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>json-lib</artifactId>
170 171 172 173 174
      <version>2.1-rev7</version>
    </dependency>
    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>htmlunit</artifactId>
K
Kohsuke Kawaguchi 已提交
175
      <version>2.6-jenkins-5</version>
176 177 178 179 180 181
      <exclusions>
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
      </exclusions>
182
    </dependency>
183 184 185
    <dependency>
      <groupId>args4j</groupId>
      <artifactId>args4j</artifactId>
186
      <version>2.0.16</version>
187
    </dependency>
188 189 190
    <dependency>
      <groupId>org.jvnet.hudson</groupId>
      <artifactId>annotation-indexer</artifactId>
K
kohsuke 已提交
191 192 193 194 195
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>org.jvnet.hudson</groupId>
      <artifactId>task-reactor</artifactId>
196
      <version>1.2</version>
197
    </dependency>
K
kohsuke 已提交
198 199 200
    <dependency>
      <groupId>org.jvnet.localizer</groupId>
      <artifactId>localizer</artifactId>
K
kohsuke 已提交
201
      <version>1.10</version>
K
kohsuke 已提交
202
    </dependency>
K
kohsuke 已提交
203 204 205 206 207 208
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>2.7.6</version>
    </dependency>
    <dependency>
209
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
210
      <artifactId>xstream</artifactId>
211
      <version>1.3.1-jenkins-9</version>
K
kohsuke 已提交
212 213 214 215
    </dependency>
    <dependency>
      <groupId>jfree</groupId>
      <artifactId>jfreechart</artifactId>
216
      <version>1.0.9</version>
K
kohsuke 已提交
217 218
    </dependency>
    <dependency>
219
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
220 221 222 223 224 225
      <artifactId>ant</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
226
      <scope>provided</scope>
K
kohsuke 已提交
227 228 229 230 231
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
232 233 234 235 236
    <dependency><!-- hudson doesn't use this directly, but some plugins wanted to use the latest -->
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.4</version>
    </dependency>
K
kohsuke 已提交
237 238 239 240
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.7</version>
241 242 243 244 245 246
      <exclusions>
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
      </exclusions>
K
kohsuke 已提交
247
    </dependency>
K
kohsuke 已提交
248 249 250 251 252 253 254
    <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>
255
      <version>1.8.0</version>
K
kohsuke 已提交
256 257
    </dependency>
    <dependency>
K
kohsuke 已提交
258 259 260
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
261 262 263 264 265 266
      <exclusions>
        <exclusion><!-- using a patched version -->
          <groupId>javax.activation</groupId>
          <artifactId>activation</artifactId>
        </exclusion>
      </exclusions>
K
kohsuke 已提交
267 268
    </dependency>
    <dependency>
269
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
270
      <artifactId>activation</artifactId>
271
      <version>1.1.1-hudson-1</version>
K
kohsuke 已提交
272
    </dependency>
273 274 275 276
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1-beta-11</version>
K
kohsuke 已提交
277 278 279 280 281
      <exclusions>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
282 283 284 285
        <exclusion>
          <groupId>xom</groupId>
          <artifactId>xom</artifactId>
        </exclusion>
286 287 288 289 290 291 292 293 294 295 296 297
        <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 已提交
298
      </exclusions>
299
    </dependency>
K
kohsuke 已提交
300 301 302 303 304 305 306 307 308
    <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>
309 310 311 312 313 314 315 316 317 318 319 320 321
      <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>
322 323 324 325
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
326 327 328 329
        <exclusion>
          <groupId>xalan</groupId>
          <artifactId>xalan</artifactId>
        </exclusion>
330 331 332 333 334 335 336 337
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xercesImpl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
338
      </exclusions>
K
kohsuke 已提交
339 340
    </dependency>
    <dependency>
341
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
342
      <artifactId>commons-jelly-tags-define</artifactId>
343
      <version>1.0.1-hudson-20071021</version>
344 345 346 347 348 349 350 351 352
      <exclusions>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-cli</groupId>
          <artifactId>commons-cli</artifactId>
        </exclusion>
P
Paul Weiss 已提交
353 354 355 356
        <exclusion>
          <groupId>org.jvnet.hudson</groupId>
          <artifactId>commons-jelly</artifactId>
        </exclusion>
357
      </exclusions>
K
kohsuke 已提交
358 359
    </dependency>
    <dependency>
360
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
361
      <artifactId>commons-jexl</artifactId>
362
      <version>1.1-hudson-20090508</version>
K
kohsuke 已提交
363
    </dependency>
K
kohsuke 已提交
364
    <dependency>
365 366 367
      <groupId>org.acegisecurity</groupId>
      <artifactId>acegi-security</artifactId>
      <version>1.0.5</version>
K
kohsuke 已提交
368
      <exclusions>
K
kohsuke 已提交
369
        <exclusion>
370 371
          <groupId>org.springframework</groupId>
          <artifactId>spring-remoting</artifactId>
K
kohsuke 已提交
372
        </exclusion>
373 374 375 376
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-support</artifactId>
        </exclusion>
K
kohsuke 已提交
377
      </exclusions>
K
kohsuke 已提交
378
    </dependency>
379
    <dependency>
380
      <groupId>org.jenkins-ci.groovy</groupId>
381
      <artifactId>groovy-all</artifactId>
382
      <version>1.8.2-jenkins-1</version>
K
Kohsuke Kawaguchi 已提交
383 384 385 386 387 388
    </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>
389
    </dependency>
390 391 392 393
    <dependency><!-- groovy shell uses this but it doesn't declare this dependency -->
      <groupId>org.fusesource.jansi</groupId>
      <artifactId>jansi</artifactId>
      <version>1.6</version>
394 395 396 397 398 399 400 401
    </dependency>
    <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>
      <artifactId>spring-web</artifactId>
402
      <version>2.5</version>
403 404 405 406
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
407
      <version>2.5</version>
408
    </dependency>
409
    <dependency><!-- Jenkins core doesn't use it but HUDSON-3811 requires us to put it. -->
410 411
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
412
      <version>2.5</version>
413
    </dependency>
414 415 416
    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3</artifactId>
417
      <version>1.1.4c</version>
418
    </dependency>
K
kohsuke 已提交
419 420 421
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
K
kohsuke 已提交
422
      <version>4.3.1</version>
K
Kohsuke Kawaguchi 已提交
423
      <scope>test</scope>
K
kohsuke 已提交
424
    </dependency>
K
kohsuke 已提交
425
    <dependency><!-- needed by Jelly -->
426
      <groupId>javax.servlet</groupId>
K
kohsuke 已提交
427 428 429
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
430 431 432 433 434
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1</version>
    </dependency>
435 436 437
    <dependency>
      <groupId>com.sun.xml.txw2</groupId>
      <artifactId>txw2</artifactId>
K
kohsuke 已提交
438
      <version>20070624</version>
439
    </dependency>
440 441 442 443 444
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>
445 446 447
    <dependency>
      <groupId>org.jvnet.winp</groupId>
      <artifactId>winp</artifactId>
448
      <version>1.14</version>
449
    </dependency>
450
    <dependency>
451
      <groupId>org.jenkins-ci</groupId>
452
      <artifactId>memory-monitor</artifactId>
453
      <version>1.5</version>
K
kohsuke 已提交
454
    </dependency>
455 456 457 458 459
    <dependency><!-- StAX implementation. See HUDSON-2547. -->
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>wstx-asl</artifactId>
      <version>3.2.7</version>
    </dependency>
460
    <dependency>
461
      <groupId>org.jenkins-ci</groupId>
462
      <artifactId>jmdns</artifactId>
463
      <version>3.4.0-jenkins-3</version>
464
    </dependency>
465 466 467
    <dependency>
      <groupId>com.sun.winsw</groupId>
      <artifactId>winsw</artifactId>
468
      <version>1.10</version>
469 470 471 472
      <classifier>bin</classifier>
      <type>exe</type>
      <scope>provided</scope><!-- this isn't really a dependency that Maven should care about, so putting 'provided' -->
    </dependency>
473 474 475
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
476
      <version>3.3.0-jenkins-3</version>
477
    </dependency>
478
    <dependency>
479
      <groupId>org.kohsuke</groupId>
480
      <artifactId>akuma</artifactId>
481
      <version>1.5</version>
482
    </dependency>
K
kohsuke 已提交
483 484 485
    <dependency>
      <groupId>org.jvnet.libpam4j</groupId>
      <artifactId>libpam4j</artifactId>
486
      <version>1.4</version>
K
kohsuke 已提交
487
    </dependency>
488 489 490
    <dependency>
      <groupId>org.jvnet.libzfs</groupId>
      <artifactId>libzfs</artifactId>
K
kohsuke 已提交
491
      <version>0.5</version>
492 493 494 495
    </dependency>
    <dependency>
      <groupId>com.sun.solaris</groupId>
      <artifactId>embedded_su4j</artifactId>
K
bug fix  
kohsuke 已提交
496
      <version>1.1</version>
497
    </dependency>
498 499 500
    <dependency>
      <groupId>net.java.sezpoz</groupId>
      <artifactId>sezpoz</artifactId>
501
      <version>1.9</version>
502
    </dependency>
503
    <dependency>
504
      <groupId>org.jenkins-ci</groupId>
505
      <artifactId>jinterop-wmi</artifactId>
506
      <version>1.1</version>
K
kohsuke 已提交
507 508
    </dependency>
    <dependency>
509
      <groupId>org.jenkins-ci</groupId>
K
kohsuke 已提交
510
      <artifactId>windows-remote-command</artifactId>
511
      <version>1.3</version>
512
    </dependency>
513 514 515 516 517 518
    <dependency>
      <groupId>org.kohsuke.metainf-services</groupId>
      <artifactId>metainf-services</artifactId>
      <version>1.1</version>
      <optional>true</optional>
    </dependency>
519 520 521
    <dependency>
      <groupId>org.jvnet.robust-http-client</groupId>
      <artifactId>robust-http-client</artifactId>
522
      <version>1.2</version>
523
    </dependency>
K
kohsuke 已提交
524

525
    <dependency><!-- Jenkins doesn't depend on it but some plugin wants the latest version. Bundling 1.4 until we figure out a mechanism to let plugins load its own -->
K
...  
kohsuke 已提交
526 527 528 529 530
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.4</version>
    </dependency>

531 532 533 534 535 536 537
    <dependency>
      <!-- with this, stapler can load parameter names from the debug info -->
      <groupId>asm</groupId>
      <artifactId>asm-commons</artifactId>
      <version>2.2.3</version>
    </dependency>

K
kohsuke 已提交
538 539 540 541 542 543
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>access-modifier-annotation</artifactId>
      <version>1.0</version>
    </dependency>

K
Kohsuke Kawaguchi 已提交
544 545 546 547 548 549 550
    <dependency>
      <groupId>findbugs</groupId>
      <artifactId>annotations</artifactId>
      <version>1.0.0</version>
      <scope>provided</scope>
    </dependency>

551 552 553 554 555 556 557 558
    <!-- 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 已提交
559
  </dependencies>
K
kohsuke 已提交
560

561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 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
  <build>
    <plugins>
      <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>1.16</version>
        <!-- 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>
665
        <artifactId>maven-dependency-plugin</artifactId>
666 667
        <executions>
          <execution>
668
            <id>winsw</id>
669 670
            <phase>generate-resources</phase>
            <goals>
671 672
              <!-- we use copy as this is a dependency from outside the reactor -->
              <goal>copy</goal>
673
            </goals>
674 675 676 677 678 679 680 681 682 683 684 685 686
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.sun.winsw</groupId>
                  <artifactId>winsw</artifactId>
                  <version>1.10</version>
                  <classifier>bin</classifier>
                  <type>exe</type>
                  <outputDirectory>${project.build.outputDirectory}/windows-service</outputDirectory>
                  <destFileName>jenkins.exe</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
          </execution>
        </executions>
      </plugin>
      <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>
    </plugins>
  </build>

K
kohsuke 已提交
706 707 708 709 710
  <reporting>
    <plugins>
      <plugin><!-- generate Jelly tag lib documentation -->
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
711
        <version>1.15</version>
K
kohsuke 已提交
712 713 714 715 716 717 718 719
        <configuration>
          <patterns>
            <pattern>/lib/.*</pattern>
          </patterns>
        </configuration>
      </plugin>
      <plugin><!-- skip slow dependency analysis -->
        <artifactId>maven-project-info-reports-plugin</artifactId>
720
        <version>2.4</version>
K
kohsuke 已提交
721 722 723
        <configuration>
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
        </configuration>
724
      </plugin>
K
kohsuke 已提交
725 726
    </plugins>
  </reporting>
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776

  <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 已提交
777
      <!-- run FindBugs for better error detection. run as "mvn -Pfindbugs install site" -->
778 779 780 781 782 783 784 785 786
      <id>findbugs</id>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
              <effort>Max</effort>
K
Kohsuke Kawaguchi 已提交
787
              <threshold>High</threshold>
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832
              <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>
833
</project>