pom.xml 29.4 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
K
kohsuke 已提交
2 3 4
<!--
The MIT License

5 6
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
Daniel Dyer, Erik Ramfelt, Stephen Connolly, Tom Huybrechts, Alan Harder
K
kohsuke 已提交
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.618-SNAPSHOT</version>
K
TAB->WS  
kohsuke 已提交
33
  </parent>
34

K
Kohsuke Kawaguchi 已提交
35
  <artifactId>jenkins-core</artifactId>
36

37
  <name>Jenkins core</name>
38
  <description>Jenkins core code and view files to render HTML.</description>
39

40 41
  <properties>
    <staplerFork>true</staplerFork>
42
    <stapler.version>1.237</stapler.version>
J
Jesse Glick 已提交
43
    <spring.version>2.5.6.SEC03</spring.version>
44
    <groovy.version>1.8.9</groovy.version>
45
  </properties>
46

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

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

K
Kohsuke Kawaguchi 已提交
93
    <dependency>
K
Kohsuke Kawaguchi 已提交
94
      <groupId>com.google.inject</groupId>
K
Kohsuke Kawaguchi 已提交
95
      <artifactId>guice</artifactId>
96
    </dependency>
K
Kohsuke Kawaguchi 已提交
97

98
    <dependency> <!-- for compatibility only; all new code should use JNR -->
K
kohsuke 已提交
99 100
      <groupId>org.jruby.ext.posix</groupId>
      <artifactId>jna-posix</artifactId>
101
      <version>1.0.3-jenkins-1</version>
K
kohsuke 已提交
102
    </dependency>
103 104 105
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-posix</artifactId>
106
      <version>3.0.1</version>
107
    </dependency>
K
kohsuke 已提交
108 109 110
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>trilead-putty-extension</artifactId>
111
      <version>1.2</version>
K
kohsuke 已提交
112
    </dependency>
113
    <dependency>
114
      <groupId>org.jenkins-ci</groupId>
115
      <artifactId>trilead-ssh2</artifactId>
116
      <version>build217-jenkins-8</version>
117
    </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
        <exclusion>
          <groupId>org.jvnet.hudson</groupId>
          <artifactId>commons-jexl</artifactId>
        </exclusion>
135 136 137 138 139
        <exclusion>
          <!-- we bundle groovy-all -->
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy</artifactId>
        </exclusion>
140
      </exclusions>
K
TAB->WS  
kohsuke 已提交
141
    </dependency>
K
Kohsuke Kawaguchi 已提交
142 143 144 145 146
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-jrebel</artifactId>
      <version>${stapler.version}</version>
    </dependency>
147 148 149 150 151
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>windows-package-checker</artifactId>
      <version>1.0</version>
    </dependency>
152 153 154
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-zeroclipboard</artifactId>
K
Kohsuke Kawaguchi 已提交
155
      <version>1.3.5-1</version>
156
    </dependency>
157 158 159
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
160
      <version>1.4</version>
161
    </dependency>
162 163 164
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-codemirror</artifactId>
K
Kohsuke Kawaguchi 已提交
165
      <version>1.3</version>
166
    </dependency>
167
    <dependency><!-- this helps us see the source code of the control while we edit Jenkins. -->
168 169
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler-adjunct-timeline</artifactId>
170
      <version>1.4</version>
171 172 173 174
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>

175
    <dependency>
176
      <groupId>com.infradna.tool</groupId>
177
      <artifactId>bridge-method-annotation</artifactId>
K
Kohsuke Kawaguchi 已提交
178
      <version>1.13</version>
179 180
    </dependency>

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

548
    <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 已提交
549 550
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
551
      <version>1.8</version>
K
...  
kohsuke 已提交
552 553
    </dependency>

K
kohsuke 已提交
554 555 556
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>access-modifier-annotation</artifactId>
557
      <version>1.4</version>
K
kohsuke 已提交
558 559
    </dependency>

K
Kohsuke Kawaguchi 已提交
560
    <dependency>
561
      <groupId>com.google.code.findbugs</groupId>
K
Kohsuke Kawaguchi 已提交
562
      <artifactId>annotations</artifactId>
563
      <version>3.0.0</version>
K
Kohsuke Kawaguchi 已提交
564 565 566
      <scope>provided</scope>
    </dependency>

K
Kohsuke Kawaguchi 已提交
567 568 569 570 571 572
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.3.1-jenkins-1</version>
    </dependency>

573 574 575 576 577 578
    <dependency>
        <groupId>org.mindrot</groupId>
        <artifactId>jbcrypt</artifactId>
        <version>0.3m</version>
    </dependency>

579 580 581 582 583 584 585 586
    <!-- 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 已提交
587 588 589 590 591

      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
      </dependency>
592
    <!-- Overriding Stapler’s 1.1.3 version to diagnose JENKINS-20618: -->
593 594 595
    <dependency>
      <groupId>com.jcraft</groupId>
      <artifactId>jzlib</artifactId>
K
Kohsuke Kawaguchi 已提交
596
      <version>1.1.3-kohsuke-1</version>
597
    </dependency>
K
kohsuke 已提交
598
  </dependencies>
K
kohsuke 已提交
599

600 601
  <build>
    <plugins>
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621
        <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>    
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 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
      <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>
        <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>
722
        <artifactId>maven-dependency-plugin</artifactId>
723 724
        <executions>
          <execution>
725
            <id>winsw</id>
726 727
            <phase>generate-resources</phase>
            <goals>
728 729
              <!-- we use copy as this is a dependency from outside the reactor -->
              <goal>copy</goal>
730
            </goals>
731 732 733 734 735
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.sun.winsw</groupId>
                  <artifactId>winsw</artifactId>
K
Kohsuke Kawaguchi 已提交
736
                  <version>1.16</version>
737 738 739 740 741 742 743
                  <classifier>bin</classifier>
                  <type>exe</type>
                  <outputDirectory>${project.build.outputDirectory}/windows-service</outputDirectory>
                  <destFileName>jenkins.exe</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
744 745 746
          </execution>
        </executions>
      </plugin>
747 748 749 750 751
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkCount>0.5C</forkCount>
          <reuseForks>true</reuseForks>
K
Kohsuke Kawaguchi 已提交
752
          <argLine>-XX:MaxPermSize=128m -noverify</argLine> <!-- some versions of JDK7/8 causes VerifyError during mock tests: http://code.google.com/p/powermock/issues/detail?id=504 -->
753 754
        </configuration>
      </plugin>
755 756 757 758 759 760 761 762 763 764 765 766 767
      <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>
768
      <plugin><!-- run unit test in src/test/java -->
769
        <groupId>org.codehaus.gmaven</groupId>
770 771 772 773 774 775 776 777 778 779 780 781 782
        <artifactId>gmaven-plugin</artifactId>
        <!-- version specified in grandparent pom -->
        <executions>
          <execution>
            <goals>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
783
            <version>${groovy.version}</version>
784 785 786
          </dependency>
        </dependencies>
      </plugin>
787 788 789
    </plugins>
  </build>

K
kohsuke 已提交
790 791 792 793 794
  <reporting>
    <plugins>
      <plugin><!-- generate Jelly tag lib documentation -->
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
J
Jesse Glick 已提交
795
        <version>${maven-stapler-plugin.version}</version>
K
kohsuke 已提交
796 797 798 799 800 801 802 803
        <configuration>
          <patterns>
            <pattern>/lib/.*</pattern>
          </patterns>
        </configuration>
      </plugin>
      <plugin><!-- skip slow dependency analysis -->
        <artifactId>maven-project-info-reports-plugin</artifactId>
C
Christoph Kutzinski 已提交
804
        <version>2.6</version>
K
kohsuke 已提交
805 806 807
        <configuration>
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
        </configuration>
808
      </plugin>
K
kohsuke 已提交
809 810
    </plugins>
  </reporting>
811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 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

  <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>
861
      <!-- Run FindBugs for better error detection. Run as "mvn -Pfindbugs install site". -->
862 863 864 865 866 867 868 869
      <id>findbugs</id>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <configuration>
              <effort>Max</effort>
K
Kohsuke Kawaguchi 已提交
870
              <threshold>High</threshold>
871 872 873 874 875 876 877
              <excludeFilterFile>src/findbugs-filter.xml</excludeFilterFile>
            </configuration>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
878
      <!-- Obtain code coverage report. This is done by running Unit tests on our own and suppressing surefire. -->
879 880 881 882
      <id>cobertura</id>
      <build>
        <plugins>
          <plugin>
883
            <groupId>org.codehaus.gmaven</groupId>
884 885 886 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
            <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>
914
</project>