~ubuntu-branches/ubuntu/saucy/jenkins/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/build/0001-build.patch/pom.xml

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!--
 
3
The MIT License
 
4
 
 
5
Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh
 
6
 
 
7
Permission is hereby granted, free of charge, to any person obtaining a copy
 
8
of this software and associated documentation files (the "Software"), to deal
 
9
in the Software without restriction, including without limitation the rights
 
10
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
11
copies of the Software, and to permit persons to whom the Software is
 
12
furnished to do so, subject to the following conditions:
 
13
 
 
14
The above copyright notice and this permission notice shall be included in
 
15
all copies or substantial portions of the Software.
 
16
 
 
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
20
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
22
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
23
THE SOFTWARE.
 
24
-->
 
25
<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">
 
26
  <modelVersion>4.0.0</modelVersion>
 
27
 
 
28
  <parent>
 
29
    <groupId>org.jenkins-ci</groupId>
 
30
    <artifactId>jenkins</artifactId>
 
31
    <version>1.30</version>
 
32
  </parent>
 
33
 
 
34
  <groupId>org.jenkins-ci.main</groupId>
 
35
  <artifactId>pom</artifactId>
 
36
  <version>1.509.2</version>
 
37
  <packaging>pom</packaging>
 
38
 
 
39
  <name>Jenkins main module</name>
 
40
  <description>The module that constitutes the main jenkins.war</description>
 
41
  <licenses>
 
42
    <license>
 
43
      <name>The MIT license</name>
 
44
      <url>http://www.opensource.org/licenses/mit-license.php</url>
 
45
      <distribution>repo</distribution>
 
46
    </license>
 
47
  </licenses>
 
48
 
 
49
  <modules>
 
50
    <module>core</module>
 
51
    <module>maven-plugin</module>
 
52
    <module>ui-samples-plugin</module>
 
53
    <module>war</module>
 
54
    <module>test</module>
 
55
    <module>cli</module>
 
56
    <module>plugins</module>
 
57
  </modules>
 
58
 
 
59
  <scm>
 
60
    <connection>scm:git:git://github.com/jenkinsci/jenkins.git</connection>
 
61
    <developerConnection>scm:git:ssh://git@github.com/jenkinsci/jenkins.git</developerConnection>
 
62
    <url>https://github.com/jenkinsci/jenkins</url>
 
63
  </scm>
 
64
  <distributionManagement>
 
65
    <site>
 
66
      <id>github-pages</id>
 
67
      <url>gitsite:git@github.com/jenkinsci/maven-site.git:core</url>
 
68
    </site>
 
69
    <snapshotRepository>
 
70
      <id>maven.jenkins-ci.org</id>
 
71
      <url>http://maven.jenkins-ci.org:8081/content/repositories/snapshots</url>
 
72
    </snapshotRepository>
 
73
  </distributionManagement>
 
74
 
 
75
  <issueManagement>
 
76
    <system>jira</system>
 
77
    <url>https://issues.jenkins-ci.org/browse/JENKINS/component/15593</url>
 
78
  </issueManagement>
 
79
 
 
80
  <ciManagement>
 
81
      <system>jenkins</system>
 
82
      <url>https://ci.jenkins-ci.org/job/jenkins_main_trunk/</url>
 
83
  </ciManagement>
 
84
 
 
85
  <properties>
 
86
    <!-- *.html files are in UTF-8, and *.properties are in iso-8859-1, so this configuration is acturally incorrect,
 
87
    but this suppresses a warning from Maven, and as long as we don't do filtering we should be OK. -->
 
88
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
89
    <build.type>private</build.type>
 
90
 
 
91
    <!-- configuration for patch tracker plugin  -->
 
92
    <project.patchManagement.system>github</project.patchManagement.system>
 
93
    <patch.request.organisation>jenkinsci</patch.request.organisation>
 
94
    <patch.request.repository>jenkins</patch.request.repository>
 
95
    <project.patchManagement.url>https://api.github.com</project.patchManagement.url>
 
96
    <patch.tracker.serverId>jenkins-jira</patch.tracker.serverId>
 
97
 
 
98
    <slf4jVersion>1.6.2</slf4jVersion> <!-- < 1.6.x version didn't specify the license (MIT) -->
 
99
    <netbeans.compile.on.save>none</netbeans.compile.on.save> <!-- we rely on Maven source generation -->
 
100
    <animal.sniffer.skip>${skipTests}</animal.sniffer.skip>
 
101
  </properties>
 
102
 
 
103
 
 
104
 
 
105
 
 
106
  <repositories>
 
107
    <repository>
 
108
      <id>repo.jenkins-ci.org</id>
 
109
      <url>http://repo.jenkins-ci.org/public/</url>
 
110
      <releases>
 
111
        <enabled>true</enabled>
 
112
      </releases>
 
113
      <snapshots>
 
114
        <enabled>false</enabled>
 
115
      </snapshots>
 
116
    </repository>
 
117
  </repositories>
 
118
  <pluginRepositories>
 
119
    <pluginRepository>
 
120
      <id>repo.jenkins-ci.org</id>
 
121
      <url>http://repo.jenkins-ci.org/public/</url>
 
122
      <releases>
 
123
        <enabled>true</enabled>
 
124
      </releases>
 
125
      <snapshots>
 
126
        <enabled>false</enabled>
 
127
      </snapshots>
 
128
    </pluginRepository>
 
129
  </pluginRepositories>
 
130
 
 
131
  <dependencyManagement>
 
132
    <dependencies>
 
133
 
 
134
      <dependency>
 
135
        <groupId>org.apache.ant</groupId>
 
136
        <artifactId>ant</artifactId>
 
137
        <version>1.8.3</version>
 
138
      </dependency>
 
139
 
 
140
      <dependency>
 
141
        <groupId>commons-io</groupId>
 
142
        <artifactId>commons-io</artifactId>
 
143
        <version>1.4</version>
 
144
      </dependency>
 
145
 
 
146
      <dependency>
 
147
        <groupId>junit</groupId>
 
148
        <artifactId>junit</artifactId>
 
149
        <version>4.11</version>
 
150
      </dependency>
 
151
 
 
152
      <dependency>
 
153
        <groupId>org.mockito</groupId>
 
154
        <artifactId>mockito-core</artifactId>
 
155
        <version>1.8.5</version>
 
156
      </dependency>
 
157
      
 
158
      <dependency>
 
159
        <groupId>org.powermock</groupId>
 
160
        <artifactId>powermock-module-junit4</artifactId>
 
161
        <version>1.4.10</version>
 
162
      </dependency>
 
163
      <dependency>
 
164
        <groupId>org.powermock</groupId>
 
165
        <artifactId>powermock-api-mockito</artifactId>
 
166
        <version>1.4.10</version>
 
167
      </dependency>
 
168
 
 
169
      <dependency>
 
170
        <groupId>commons-httpclient</groupId>
 
171
        <artifactId>commons-httpclient</artifactId>
 
172
        <version>3.1</version>
 
173
      </dependency>
 
174
 
 
175
      <dependency>
 
176
        <groupId>org.jenkins-ci.main</groupId>
 
177
        <artifactId>remoting</artifactId>
 
178
        <version>2.23</version>
 
179
      </dependency>
 
180
 
 
181
      <dependency>
 
182
        <groupId>com.google.guava</groupId>
 
183
        <artifactId>guava</artifactId>
 
184
        <version>11.0.1</version>
 
185
      </dependency>
 
186
      
 
187
      <dependency>
 
188
        <!-- we'd like to use stock Guice, but that breaks Maven embedder
 
189
               because it uses a modified Guice called Sisu -->
 
190
        <groupId>org.sonatype.sisu</groupId>
 
191
        <artifactId>sisu-guice</artifactId>
 
192
        <version>3.1.0</version>
 
193
      </dependency>
 
194
 
 
195
      <!-- SLF4J used in maven-plugin and core -->
 
196
      <dependency>
 
197
        <groupId>org.slf4j</groupId>
 
198
        <artifactId>slf4j-api</artifactId>
 
199
        <version>${slf4jVersion}</version>
 
200
      </dependency>
 
201
      <dependency>
 
202
        <groupId>org.slf4j</groupId>
 
203
        <artifactId>slf4j-nop</artifactId>
 
204
        <version>${slf4jVersion}</version>
 
205
      </dependency>
 
206
      <dependency>
 
207
        <groupId>org.slf4j</groupId>
 
208
        <artifactId>slf4j-jdk14</artifactId>
 
209
        <version>${slf4jVersion}</version>
 
210
      </dependency>
 
211
      <dependency>
 
212
        <groupId>org.slf4j</groupId>
 
213
        <artifactId>jcl-over-slf4j</artifactId>
 
214
        <version>${slf4jVersion}</version>
 
215
      </dependency>
 
216
    </dependencies>
 
217
  </dependencyManagement>
 
218
  <dependencies>
 
219
    <dependency>
 
220
      <!-- for JRE requirement check annotation -->
 
221
      <groupId>org.codehaus.mojo</groupId>
 
222
      <artifactId>animal-sniffer-annotations</artifactId>
 
223
      <version>1.9</version>
 
224
      <scope>provided</scope>
 
225
      <optional>true</optional><!-- no need to have this at runtime -->
 
226
    </dependency>
 
227
    <dependency>
 
228
      <groupId>org.jvnet.hudson</groupId>
 
229
      <artifactId>test-annotations</artifactId>
 
230
      <version>1.0</version>
 
231
      <scope>test</scope>
 
232
    </dependency>
 
233
  </dependencies>
 
234
 
 
235
  <build>
 
236
    <defaultGoal>install</defaultGoal>
 
237
    <resources>
 
238
      <resource>
 
239
        <directory>${basedir}/src/main/resources</directory>
 
240
        <filtering>false</filtering>
 
241
      </resource>
 
242
      <resource>
 
243
        <directory>${basedir}/src/filter/resources</directory>
 
244
        <filtering>true</filtering>
 
245
      </resource>
 
246
    </resources>
 
247
    <pluginManagement>
 
248
      <plugins>
 
249
        <plugin>
 
250
          <groupId>org.codehaus.mojo</groupId>
 
251
          <artifactId>build-helper-maven-plugin</artifactId>
 
252
          <version>1.7</version>
 
253
          <executions>
 
254
            <execution>
 
255
              <id>timestamp-property</id>
 
256
              <goals>
 
257
                <goal>timestamp-property</goal>
 
258
              </goals>
 
259
              <configuration>
 
260
                <name>now</name>
 
261
                <pattern>MM/dd/yyyy HH:mm z</pattern>
 
262
                <locale>en_US</locale>
 
263
              </configuration>
 
264
            </execution>
 
265
            <execution>
 
266
              <id>version-property</id>
 
267
              <goals>
 
268
                <goal>regex-property</goal>
 
269
              </goals>
 
270
              <configuration>
 
271
                <name>build.version</name>
 
272
                <value>${project.version}</value>
 
273
                <regex>-SNAPSHOT</regex>
 
274
                <replacement>-SNAPSHOT (${build.type}-${now}-${user.name})</replacement>
 
275
                <failIfNoMatch>false</failIfNoMatch>
 
276
              </configuration>
 
277
            </execution>
 
278
          </executions>
 
279
        </plugin>
 
280
        <plugin>
 
281
          <groupId>org.kohsuke.gmaven</groupId>
 
282
          <artifactId>gmaven-plugin</artifactId>
 
283
          <version>1.0-rc-5-patch-2</version>
 
284
          <dependencies>
 
285
            <dependency><!-- this needs to be visible to Ant inside GMaven, so has to be a plugin dependency -->
 
286
              <groupId>org.apache.ant</groupId>
 
287
              <artifactId>ant-junit</artifactId>
 
288
              <version>1.7.0</version>
 
289
            </dependency>
 
290
            <dependency>
 
291
              <groupId>net.sourceforge.cobertura</groupId>
 
292
              <artifactId>cobertura</artifactId>
 
293
              <version>1.9</version>
 
294
            </dependency>
 
295
            <dependency>
 
296
              <!-- this provided scope dependency doesn't get added to GMaven unless explicitly added here -->
 
297
              <groupId>javax.servlet</groupId>
 
298
              <artifactId>servlet-api</artifactId>
 
299
              <version>2.4</version>
 
300
            </dependency>
 
301
          </dependencies>
 
302
        </plugin>
 
303
        <plugin>
 
304
          <groupId>org.apache.maven.plugins</groupId>
 
305
          <artifactId>maven-deploy-plugin</artifactId>
 
306
          <version>2.7</version>
 
307
        </plugin>
 
308
        <plugin>
 
309
          <groupId>org.apache.maven.plugins</groupId>
 
310
          <artifactId>maven-compiler-plugin</artifactId>
 
311
          <version>3.0</version>
 
312
          <configuration>
 
313
            <compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
 
314
          </configuration>
 
315
        </plugin>
 
316
        <plugin>
 
317
          <artifactId>maven-gpg-plugin</artifactId>
 
318
          <version>1.4</version>
 
319
        </plugin>
 
320
        <plugin>
 
321
          <groupId>org.apache.maven.plugins</groupId>
 
322
          <artifactId>maven-install-plugin</artifactId>
 
323
          <version>2.3.1</version>
 
324
        </plugin>
 
325
        <plugin>
 
326
          <groupId>org.apache.maven.plugins</groupId>
 
327
          <artifactId>maven-javadoc-plugin</artifactId>
 
328
          <version>2.8</version>
 
329
        </plugin>
 
330
        <plugin>
 
331
          <groupId>org.apache.maven.plugins</groupId>
 
332
          <artifactId>maven-jar-plugin</artifactId>
 
333
          <version>2.4</version>
 
334
        </plugin>
 
335
        <plugin>
 
336
          <groupId>org.apache.maven.plugins</groupId>
 
337
          <artifactId>maven-war-plugin</artifactId>
 
338
          <version>2.3</version>
 
339
        </plugin>
 
340
        <plugin>
 
341
          <groupId>org.apache.maven.plugins</groupId>
 
342
          <artifactId>maven-surefire-plugin</artifactId>
 
343
          <version>2.14</version> <!-- ignoring ${maven-surefire-plugin.version} -->
 
344
          <configuration>
 
345
            <systemPropertyVariables>
 
346
              <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
 
347
              <forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
 
348
              <java.awt.headless>true</java.awt.headless>
 
349
            </systemPropertyVariables>
 
350
          </configuration>
 
351
        </plugin>
 
352
        <plugin>
 
353
          <groupId>org.apache.maven.plugins</groupId>
 
354
          <artifactId>maven-dependency-plugin</artifactId>
 
355
          <version>2.6</version>
 
356
        </plugin>
 
357
        <plugin>
 
358
          <groupId>org.apache.maven.plugins</groupId>
 
359
          <artifactId>maven-assembly-plugin</artifactId>
 
360
          <version>2.4</version>
 
361
        </plugin>
 
362
        <plugin>
 
363
          <artifactId>maven-jarsigner-plugin</artifactId>
 
364
          <version>1.2</version>
 
365
          <configuration>
 
366
            <!--
 
367
              during the development, debug profile will cause
 
368
              the jars to be signed by a self-certified dummy public key.
 
369
 
 
370
              For release, you should define the real values in ~/.m2/settings.xml
 
371
            -->
 
372
            <alias>${hudson.sign.alias}</alias>
 
373
            <storepass>${hudson.sign.storepass}</storepass>
 
374
            <keystore>${hudson.sign.keystore}</keystore>
 
375
          </configuration>
 
376
        </plugin>
 
377
        <plugin>
 
378
          <groupId>org.apache.maven.plugins</groupId>
 
379
          <artifactId>maven-resources-plugin</artifactId>
 
380
          <version>2.6</version>
 
381
        </plugin>
 
382
        <plugin>
 
383
          <!--
 
384
            Both test harness and core uses stapler as an extension,
 
385
            and apparently without having extension preloaded at the parent, the main artifact of the 'test' module
 
386
            ends up installed with 'stapler-jar' extension (which normally is an indication that the ArtifactTypeHandler
 
387
            defined in this extension is not getting picked up.)
 
388
 
 
389
            To avoid this problem, I'm defining an extension here. Not sure if the nested <dependencies> is necessary.
 
390
            It's also possible that I misdiagnosed the problem and the root cause is something entirely different.
 
391
 
 
392
            To test if you can remove this work around, do a rebuild from main and see if the test harness
 
393
            is installed with the right extension into the local repository.
 
394
          -->
 
395
          <groupId>org.kohsuke.stapler</groupId>
 
396
          <artifactId>maven-stapler-plugin</artifactId>
 
397
          <version>1.16</version>
 
398
          <extensions>true</extensions>
 
399
          <dependencies>
 
400
            <dependency>
 
401
              <groupId>org.jvnet.maven-jellydoc-plugin</groupId>
 
402
              <artifactId>maven-jellydoc-plugin</artifactId>
 
403
              <version>1.4</version>
 
404
            </dependency>
 
405
          </dependencies>
 
406
        </plugin>
 
407
        <plugin>
 
408
          <groupId>org.kohsuke</groupId>
 
409
          <artifactId>access-modifier-checker</artifactId>
 
410
          <version>1.4</version>
 
411
        </plugin>
 
412
        <plugin>
 
413
          <groupId>com.cloudbees</groupId>
 
414
          <artifactId>maven-license-plugin</artifactId>
 
415
          <version>1.7</version>
 
416
          <executions>
 
417
            <execution>
 
418
              <goals>
 
419
                <goal>process</goal>
 
420
              </goals>
 
421
              <phase>compile</phase>
 
422
              <configuration>
 
423
                <requireCompleteLicenseInfo>true</requireCompleteLicenseInfo>
 
424
                <script>../licenseCompleter.groovy</script>
 
425
              </configuration>
 
426
            </execution>
 
427
          </executions>
 
428
        </plugin>
 
429
        <plugin>
 
430
          <groupId>org.jvnet.localizer</groupId>
 
431
          <artifactId>maven-localizer-plugin</artifactId>
 
432
          <version>1.14</version>
 
433
         </plugin>
 
434
        <plugin>
 
435
          <groupId>org.jvnet.hudson.tools</groupId>
 
436
          <artifactId>maven-encoding-plugin</artifactId>
 
437
          <version>1.1</version>
 
438
        </plugin>
 
439
        <plugin>
 
440
          <groupId>com.infradna.tool</groupId>
 
441
          <artifactId>bridge-method-injector</artifactId>
 
442
          <version>1.4</version>
 
443
        </plugin>
 
444
        <plugin>
 
445
          <groupId>org.codehaus.mojo</groupId>
 
446
          <artifactId>antlr-maven-plugin</artifactId>
 
447
          <version>2.1</version>
 
448
        </plugin>
 
449
        <plugin>
 
450
          <groupId>org.codehaus.mojo</groupId>
 
451
          <artifactId>apt-maven-plugin</artifactId>
 
452
          <version>1.0-alpha-5</version>
 
453
        </plugin>
 
454
        <plugin>
 
455
          <groupId>org.codehaus.mojo</groupId>
 
456
          <artifactId>cobertura-maven-plugin</artifactId>
 
457
          <version>2.5.2</version>
 
458
        </plugin>
 
459
        <plugin>
 
460
          <groupId>org.codehaus.mojo</groupId>
 
461
          <artifactId>findbugs-maven-plugin</artifactId>
 
462
          <version>2.5.2</version>
 
463
        </plugin>
 
464
        <plugin>
 
465
          <groupId>org.apache.maven.plugins</groupId>
 
466
          <artifactId>maven-pmd-plugin</artifactId>
 
467
          <version>2.7.1</version>
 
468
         </plugin>
 
469
        <plugin>
 
470
          <!-- this is really just a patched version of maven-jetty-plugin to workaround issue #932 -->
 
471
          <groupId>org.jenkins-ci.tools</groupId>
 
472
          <artifactId>maven-jenkins-dev-plugin</artifactId>
 
473
          <version>8.1.4.v20120524-jenkins-1</version>
 
474
        </plugin>
 
475
        <plugin>
 
476
          <groupId>org.jvnet.updatecenter2</groupId>
 
477
          <artifactId>maven-makepkgs-plugin</artifactId>
 
478
          <version>0.6.2</version>
 
479
        </plugin>
 
480
        <plugin>
 
481
          <groupId>org.jenkins-ci.tools</groupId>
 
482
          <artifactId>maven-hpi-plugin</artifactId>
 
483
          <version>1.93</version>
 
484
        </plugin>
 
485
        <plugin>
 
486
          <groupId>org.apache.maven.plugins</groupId>
 
487
          <artifactId>maven-site-plugin</artifactId>
 
488
          <version>3.1</version>
 
489
          <dependencies>
 
490
            <dependency>
 
491
              <groupId>org.kohsuke</groupId>
 
492
              <artifactId>doxia-module-markdown</artifactId>
 
493
              <version>1.0</version>
 
494
            </dependency>
 
495
          </dependencies>
 
496
        </plugin>
 
497
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
 
498
        <plugin>
 
499
                <groupId>org.eclipse.m2e</groupId>
 
500
                <artifactId>lifecycle-mapping</artifactId>
 
501
                <version>1.0.0</version>
 
502
                <configuration>
 
503
                        <lifecycleMappingMetadata>
 
504
                                <pluginExecutions>
 
505
                                        <pluginExecution>
 
506
                                                <pluginExecutionFilter>
 
507
                                                        <groupId>org.kohsuke.gmaven</groupId>
 
508
                                                        <artifactId>gmaven-plugin</artifactId>
 
509
                                                        <versionRange>[1.0-rc-5-patch-2,)</versionRange>
 
510
                                                        <goals>
 
511
                                                                <goal>execute</goal>
 
512
                                                                <goal>testCompile</goal>
 
513
                                                        </goals>
 
514
                                                </pluginExecutionFilter>
 
515
                                                <action>
 
516
                                                        <ignore />
 
517
                                                </action>
 
518
                                        </pluginExecution>
 
519
                                        <pluginExecution>
 
520
                                                <pluginExecutionFilter>
 
521
                                                        <groupId>org.apache.maven.plugins</groupId>
 
522
                                                        <artifactId>maven-dependency-plugin</artifactId>
 
523
                                                        <versionRange>[2.3,)</versionRange>
 
524
                                                        <goals>
 
525
                                                                <goal>list</goal>
 
526
                                                                <goal>unpack-dependencies</goal>
 
527
                                                        </goals>
 
528
                                                </pluginExecutionFilter>
 
529
                                                <action>
 
530
                                                        <ignore />
 
531
                                                </action>
 
532
                                        </pluginExecution>
 
533
                                </pluginExecutions>
 
534
                        </lifecycleMappingMetadata>
 
535
                </configuration>
 
536
        </plugin>
 
537
        <plugin>
 
538
                <groupId>org.codehaus.mojo</groupId>
 
539
                <artifactId>animal-sniffer-maven-plugin</artifactId>
 
540
                <version>1.9</version>
 
541
        </plugin>
 
542
      </plugins>
 
543
    </pluginManagement>
 
544
 
 
545
    <plugins>
 
546
      <plugin>
 
547
        <groupId>org.codehaus.mojo</groupId>
 
548
        <artifactId>build-helper-maven-plugin</artifactId>
 
549
      </plugin>
 
550
      <plugin>
 
551
        <artifactId>maven-release-plugin</artifactId>
 
552
        <configuration>
 
553
          <!-- enable release profile during the release, create IPS package, and sign bits. -->
 
554
          <prepareVerifyArgs>-P release,sign</prepareVerifyArgs>
 
555
          <!-- work around for a bug in javadoc plugin that causes the release to fail. see MRELEASE-271 -->
 
556
          <preparationGoals>clean install</preparationGoals>
 
557
          <goals>-DskipTests -Danimal.sniffer.skip=false javadoc:javadoc deploy javadoc:aggregate</goals>
 
558
          <pushChanges>false</pushChanges>
 
559
          <localCheckout>true</localCheckout>
 
560
          <tagNameFormat>jenkins-@{project.version}</tagNameFormat>
 
561
        </configuration>
 
562
      </plugin>
 
563
      <plugin>
 
564
        <artifactId>maven-remote-resources-plugin</artifactId>
 
565
        <executions>
 
566
          <execution>
 
567
            <goals>
 
568
              <goal>process</goal>
 
569
            </goals>
 
570
            <configuration>
 
571
              <resourceBundles>
 
572
                <resourceBundle>org.jvnet.hudson:license:1.0</resourceBundle>
 
573
              </resourceBundles>
 
574
            </configuration>
 
575
          </execution>
 
576
        </executions>
 
577
      </plugin>
 
578
      <plugin>
 
579
        <!-- make sure our code doesn't have 1.6 dependencies except where we know it -->
 
580
        <groupId>org.codehaus.mojo</groupId>
 
581
        <artifactId>animal-sniffer-maven-plugin</artifactId>
 
582
        <executions>
 
583
          <execution>
 
584
            <goals>
 
585
              <goal>check</goal>
 
586
            </goals>
 
587
          </execution>
 
588
        </executions>
 
589
        <configuration>
 
590
          <signature>
 
591
            <groupId>org.codehaus.mojo.signature</groupId>
 
592
            <artifactId>java15</artifactId>
 
593
            <version>1.0</version>
 
594
          </signature>
 
595
        </configuration>
 
596
      </plugin>
 
597
 
 
598
      <plugin>
 
599
        <artifactId>maven-compiler-plugin</artifactId>
 
600
        <configuration><!-- we specify this in the parent POM, so this is redundant, but otherwise IntelliJ is unhappy -->
 
601
          <source>1.5</source>
 
602
          <target>1.5</target>
 
603
          <!-- default reuseCreated is more performant 
 
604
          feel free to uncomment if you have any issues on your platform
 
605
          <compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
 
606
          -->
 
607
        </configuration>
 
608
      </plugin>
 
609
 
 
610
      <plugin>
 
611
        <groupId>org.apache.maven.plugins</groupId>
 
612
        <artifactId>maven-enforcer-plugin</artifactId>
 
613
        <executions>
 
614
          <execution>
 
615
            <goals>
 
616
              <goal>enforce</goal>
 
617
            </goals>
 
618
            <configuration>
 
619
              <rules>
 
620
                <!-- There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -->
 
621
                <requireJavaVersion>
 
622
                  <version>1.6.0-18</version>
 
623
                </requireJavaVersion>
 
624
                <requireMavenVersion>
 
625
                  <version>3.0</version>
 
626
                </requireMavenVersion>
 
627
              </rules>
 
628
            </configuration>
 
629
          </execution>
 
630
        </executions>
 
631
      </plugin>
 
632
 
 
633
      <plugin>
 
634
        <!--
 
635
          Since some developers try to run hudson-dev:run from main, define it here so that at least the plugin resolves.
 
636
          This enables us to report a better error message.
 
637
        -->
 
638
        <groupId>org.jenkins-ci.tools</groupId>
 
639
        <artifactId>maven-jenkins-dev-plugin</artifactId>
 
640
      </plugin>
 
641
 
 
642
      <!--<plugin>
 
643
        <groupId>org.jvnet.fix1600</groupId>
 
644
        <artifactId>fix1600</artifactId>
 
645
        <executions>
 
646
          <execution>
 
647
            <goals>
 
648
              <goal>fix</goal>
 
649
            </goals>
 
650
          </execution>
 
651
        </executions>
 
652
      </plugin>-->
 
653
      <plugin>
 
654
        <groupId>org.codehaus.gmaven</groupId>
 
655
        <artifactId>gmaven-plugin</artifactId>
 
656
        <executions>
 
657
          <execution>
 
658
            <goals>
 
659
              <goal>generateStubs</goal>
 
660
              <goal>compile</goal>
 
661
              <goal>generateTestStubs</goal>
 
662
              <goal>testCompile</goal>
 
663
            </goals>
 
664
          </execution>
 
665
        </executions>
 
666
        <configuration>
 
667
           <!-- 1.8 not yet supported by plugin but 1.7 works
 
668
                here so long as we provide explicit version -->
 
669
           <providerSelection>1.7</providerSelection>
 
670
        </configuration>
 
671
        <dependencies>
 
672
          <dependency>
 
673
            <groupId>org.codehaus.gmaven.runtime</groupId>
 
674
            <artifactId>gmaven-runtime-1.7</artifactId>
 
675
            <version>1.3</version>
 
676
          </dependency>
 
677
        </dependencies>
 
678
      </plugin>
 
679
    </plugins>
 
680
 
 
681
    <extensions>
 
682
      <extension>
 
683
        <groupId>org.kohsuke</groupId>
 
684
        <artifactId>wagon-gitsite</artifactId>
 
685
        <version>0.3.5</version>
 
686
      </extension>
 
687
    </extensions>
 
688
  </build>
 
689
 
 
690
  <profiles>
 
691
    <profile>
 
692
      <id>rc</id>
 
693
      <properties>
 
694
        <build.type>rc</build.type>
 
695
      </properties>
 
696
      <build>
 
697
        <pluginManagement>
 
698
          <plugins>
 
699
            <plugin>
 
700
              <groupId>org.codehaus.mojo</groupId>
 
701
              <artifactId>build-helper-maven-plugin</artifactId>
 
702
              <executions>
 
703
                <execution>
 
704
                  <id>version-property</id>
 
705
                  <configuration>
 
706
                    <replacement>-RC (${now})</replacement>
 
707
                  </configuration>
 
708
                </execution>
 
709
              </executions>
 
710
            </plugin>
 
711
          </plugins>
 
712
        </pluginManagement>
 
713
      </build>
 
714
    </profile>
 
715
    <profile>
 
716
      <id>metrics</id>
 
717
      <reporting>
 
718
        <plugins>
 
719
          <plugin>
 
720
            <groupId>org.codehaus.mojo</groupId>
 
721
            <artifactId>findbugs-maven-plugin</artifactId>
 
722
            <configuration>
 
723
              <threshold>High</threshold>
 
724
            </configuration>
 
725
          </plugin>
 
726
          <!--<plugin>-->
 
727
            <!--<groupId>org.apache.maven.plugins</groupId>-->
 
728
            <!--<artifactId>maven-pmd-plugin</artifactId>-->
 
729
            <!--<version>2.5</version>-->
 
730
            <!--<configuration>-->
 
731
              <!--&lt;!&ndash;rulesets>-->
 
732
                  <!--<ruleset>ruleset.xml</ruleset>-->
 
733
                  <!--</rulesets&ndash;&gt;-->
 
734
              <!--<targetJdk>1.5</targetJdk>-->
 
735
            <!--</configuration>-->
 
736
          <!--</plugin>-->
 
737
          <!--<plugin>-->
 
738
            <!--<groupId>org.apache.maven.plugins</groupId>-->
 
739
            <!--<artifactId>maven-checkstyle-plugin</artifactId>-->
 
740
            <!--<version>2.6</version>-->
 
741
          <!--</plugin>-->
 
742
        </plugins>
 
743
      </reporting>
 
744
    </profile>
 
745
    <profile>
 
746
      <id>debug</id>
 
747
      <activation>
 
748
        <activeByDefault>true</activeByDefault>
 
749
      </activation>
 
750
      <properties>
 
751
        <hudson.sign.alias>jenkins</hudson.sign.alias>
 
752
        <hudson.sign.keystore>../dummy.keystore</hudson.sign.keystore>
 
753
        <hudson.sign.storepass>jenkins</hudson.sign.storepass>
 
754
      </properties>
 
755
    </profile>
 
756
    <profile>
 
757
      <id>sorcerer</id>
 
758
      <reporting>
 
759
        <plugins>
 
760
          <plugin>
 
761
            <groupId>org.jvnet.sorcerer</groupId>
 
762
            <artifactId>maven-sorcerer-plugin</artifactId>
 
763
            <version>0.8</version>
 
764
          </plugin>
 
765
        </plugins>
 
766
      </reporting>
 
767
      <build>
 
768
        <plugins>
 
769
          <plugin>
 
770
            <groupId>org.jvnet.sorcerer</groupId>
 
771
            <artifactId>maven-sorcerer-plugin</artifactId>
 
772
          </plugin>
 
773
        </plugins>
 
774
      </build>
 
775
    </profile>
 
776
    <profile>
 
777
      <id>release</id>
 
778
      <build>
 
779
        <plugins>
 
780
          <plugin>
 
781
            <artifactId>maven-assembly-plugin</artifactId>
 
782
            <inherited>false</inherited>
 
783
            <executions>
 
784
              <execution>
 
785
                <goals>
 
786
                  <goal>attached</goal>
 
787
                </goals>
 
788
                <phase>package</phase>
 
789
                <configuration>
 
790
                  <finalName>jenkins-${project.version}</finalName>
 
791
                  <descriptors>
 
792
                    <descriptor>assembly-src.xml</descriptor>
 
793
                  </descriptors>
 
794
                </configuration>
 
795
              </execution>
 
796
            </executions>
 
797
          </plugin>
 
798
          <plugin>
 
799
            <artifactId>maven-gpg-plugin</artifactId>
 
800
            <executions>
 
801
              <execution>
 
802
                <id>sign-artifacts</id>
 
803
                <phase>verify</phase>
 
804
                <goals>
 
805
                  <goal>sign</goal>
 
806
                </goals>
 
807
              </execution>
 
808
            </executions>
 
809
          </plugin>
 
810
        </plugins>
 
811
      </build>
 
812
    </profile>
 
813
    <profile>
 
814
      <id>m2e</id>
 
815
      <properties>
 
816
        <m2BuildDirectory>target</m2BuildDirectory>
 
817
      </properties>
 
818
      <activation>
 
819
        <property>
 
820
          <name>m2e.version</name>
 
821
        </property>
 
822
      </activation>
 
823
      <build>
 
824
        <directory>${m2BuildDirectory}</directory>
 
825
        <plugins>
 
826
          <plugin>
 
827
            <artifactId>maven-compiler-plugin</artifactId>
 
828
            <configuration>
 
829
              <!-- Otherwise m2e is unhappy because of @Override annotations -->
 
830
              <source>1.6</source>
 
831
              <target>1.6</target>
 
832
            </configuration>
 
833
          </plugin>
 
834
 
 
835
          <plugin>
 
836
            <groupId>org.maven.ide.eclipse</groupId>
 
837
            <artifactId>lifecycle-mapping</artifactId>
 
838
            <version>0.12.0</version>
 
839
            <configuration>
 
840
              <mappingId>customizable</mappingId>
 
841
              <configurators>
 
842
                <configurator id="org.maven.ide.eclipse.jdt.javaConfigurator" />
 
843
                <configurator id="org.maven.ide.eclipse.plexus.annotations.plexusConfigurator" />
 
844
              </configurators>
 
845
              <mojoExecutions>
 
846
                <mojoExecution>org.apache.maven.plugins:maven-resources-plugin::</mojoExecution>
 
847
              </mojoExecutions>
 
848
            </configuration>
 
849
          </plugin>
 
850
        </plugins>
 
851
      </build>
 
852
    </profile>
 
853
  </profiles>
 
854
</project>