1
<?xml version="1.0" encoding="UTF-8"?>
5
Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh
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:
14
The above copyright notice and this permission notice shall be included in
15
all copies or substantial portions of the Software.
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
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>
29
<groupId>org.jenkins-ci</groupId>
30
<artifactId>jenkins</artifactId>
31
<version>1.30</version>
34
<groupId>org.jenkins-ci.main</groupId>
35
<artifactId>pom</artifactId>
36
<version>1.509.2</version>
37
<packaging>pom</packaging>
39
<name>Jenkins main module</name>
40
<description>The module that constitutes the main jenkins.war</description>
43
<name>The MIT license</name>
44
<url>http://www.opensource.org/licenses/mit-license.php</url>
45
<distribution>repo</distribution>
51
<module>maven-plugin</module>
52
<module>ui-samples-plugin</module>
56
<module>plugins</module>
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>
64
<distributionManagement>
67
<url>gitsite:git@github.com/jenkinsci/maven-site.git:core</url>
70
<id>maven.jenkins-ci.org</id>
71
<url>http://maven.jenkins-ci.org:8081/content/repositories/snapshots</url>
73
</distributionManagement>
77
<url>https://issues.jenkins-ci.org/browse/JENKINS/component/15593</url>
81
<system>jenkins</system>
82
<url>https://ci.jenkins-ci.org/job/jenkins_main_trunk/</url>
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>
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>
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>
108
<id>repo.jenkins-ci.org</id>
109
<url>http://repo.jenkins-ci.org/public/</url>
111
<enabled>true</enabled>
114
<enabled>false</enabled>
120
<id>repo.jenkins-ci.org</id>
121
<url>http://repo.jenkins-ci.org/public/</url>
123
<enabled>true</enabled>
126
<enabled>false</enabled>
129
</pluginRepositories>
131
<dependencyManagement>
135
<groupId>org.apache.ant</groupId>
136
<artifactId>ant</artifactId>
137
<version>1.8.3</version>
141
<groupId>commons-io</groupId>
142
<artifactId>commons-io</artifactId>
143
<version>1.4</version>
147
<groupId>junit</groupId>
148
<artifactId>junit</artifactId>
149
<version>4.11</version>
153
<groupId>org.mockito</groupId>
154
<artifactId>mockito-core</artifactId>
155
<version>1.8.5</version>
159
<groupId>org.powermock</groupId>
160
<artifactId>powermock-module-junit4</artifactId>
161
<version>1.4.10</version>
164
<groupId>org.powermock</groupId>
165
<artifactId>powermock-api-mockito</artifactId>
166
<version>1.4.10</version>
170
<groupId>commons-httpclient</groupId>
171
<artifactId>commons-httpclient</artifactId>
172
<version>3.1</version>
176
<groupId>org.jenkins-ci.main</groupId>
177
<artifactId>remoting</artifactId>
178
<version>2.23</version>
182
<groupId>com.google.guava</groupId>
183
<artifactId>guava</artifactId>
184
<version>11.0.1</version>
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>
195
<!-- SLF4J used in maven-plugin and core -->
197
<groupId>org.slf4j</groupId>
198
<artifactId>slf4j-api</artifactId>
199
<version>${slf4jVersion}</version>
202
<groupId>org.slf4j</groupId>
203
<artifactId>slf4j-nop</artifactId>
204
<version>${slf4jVersion}</version>
207
<groupId>org.slf4j</groupId>
208
<artifactId>slf4j-jdk14</artifactId>
209
<version>${slf4jVersion}</version>
212
<groupId>org.slf4j</groupId>
213
<artifactId>jcl-over-slf4j</artifactId>
214
<version>${slf4jVersion}</version>
217
</dependencyManagement>
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 -->
228
<groupId>org.jvnet.hudson</groupId>
229
<artifactId>test-annotations</artifactId>
230
<version>1.0</version>
236
<defaultGoal>install</defaultGoal>
239
<directory>${basedir}/src/main/resources</directory>
240
<filtering>false</filtering>
243
<directory>${basedir}/src/filter/resources</directory>
244
<filtering>true</filtering>
250
<groupId>org.codehaus.mojo</groupId>
251
<artifactId>build-helper-maven-plugin</artifactId>
252
<version>1.7</version>
255
<id>timestamp-property</id>
257
<goal>timestamp-property</goal>
261
<pattern>MM/dd/yyyy HH:mm z</pattern>
262
<locale>en_US</locale>
266
<id>version-property</id>
268
<goal>regex-property</goal>
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>
281
<groupId>org.kohsuke.gmaven</groupId>
282
<artifactId>gmaven-plugin</artifactId>
283
<version>1.0-rc-5-patch-2</version>
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>
291
<groupId>net.sourceforge.cobertura</groupId>
292
<artifactId>cobertura</artifactId>
293
<version>1.9</version>
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>
304
<groupId>org.apache.maven.plugins</groupId>
305
<artifactId>maven-deploy-plugin</artifactId>
306
<version>2.7</version>
309
<groupId>org.apache.maven.plugins</groupId>
310
<artifactId>maven-compiler-plugin</artifactId>
311
<version>3.0</version>
313
<compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
317
<artifactId>maven-gpg-plugin</artifactId>
318
<version>1.4</version>
321
<groupId>org.apache.maven.plugins</groupId>
322
<artifactId>maven-install-plugin</artifactId>
323
<version>2.3.1</version>
326
<groupId>org.apache.maven.plugins</groupId>
327
<artifactId>maven-javadoc-plugin</artifactId>
328
<version>2.8</version>
331
<groupId>org.apache.maven.plugins</groupId>
332
<artifactId>maven-jar-plugin</artifactId>
333
<version>2.4</version>
336
<groupId>org.apache.maven.plugins</groupId>
337
<artifactId>maven-war-plugin</artifactId>
338
<version>2.3</version>
341
<groupId>org.apache.maven.plugins</groupId>
342
<artifactId>maven-surefire-plugin</artifactId>
343
<version>2.14</version> <!-- ignoring ${maven-surefire-plugin.version} -->
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>
353
<groupId>org.apache.maven.plugins</groupId>
354
<artifactId>maven-dependency-plugin</artifactId>
355
<version>2.6</version>
358
<groupId>org.apache.maven.plugins</groupId>
359
<artifactId>maven-assembly-plugin</artifactId>
360
<version>2.4</version>
363
<artifactId>maven-jarsigner-plugin</artifactId>
364
<version>1.2</version>
367
during the development, debug profile will cause
368
the jars to be signed by a self-certified dummy public key.
370
For release, you should define the real values in ~/.m2/settings.xml
372
<alias>${hudson.sign.alias}</alias>
373
<storepass>${hudson.sign.storepass}</storepass>
374
<keystore>${hudson.sign.keystore}</keystore>
378
<groupId>org.apache.maven.plugins</groupId>
379
<artifactId>maven-resources-plugin</artifactId>
380
<version>2.6</version>
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.)
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.
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.
395
<groupId>org.kohsuke.stapler</groupId>
396
<artifactId>maven-stapler-plugin</artifactId>
397
<version>1.16</version>
398
<extensions>true</extensions>
401
<groupId>org.jvnet.maven-jellydoc-plugin</groupId>
402
<artifactId>maven-jellydoc-plugin</artifactId>
403
<version>1.4</version>
408
<groupId>org.kohsuke</groupId>
409
<artifactId>access-modifier-checker</artifactId>
410
<version>1.4</version>
413
<groupId>com.cloudbees</groupId>
414
<artifactId>maven-license-plugin</artifactId>
415
<version>1.7</version>
421
<phase>compile</phase>
423
<requireCompleteLicenseInfo>true</requireCompleteLicenseInfo>
424
<script>../licenseCompleter.groovy</script>
430
<groupId>org.jvnet.localizer</groupId>
431
<artifactId>maven-localizer-plugin</artifactId>
432
<version>1.14</version>
435
<groupId>org.jvnet.hudson.tools</groupId>
436
<artifactId>maven-encoding-plugin</artifactId>
437
<version>1.1</version>
440
<groupId>com.infradna.tool</groupId>
441
<artifactId>bridge-method-injector</artifactId>
442
<version>1.4</version>
445
<groupId>org.codehaus.mojo</groupId>
446
<artifactId>antlr-maven-plugin</artifactId>
447
<version>2.1</version>
450
<groupId>org.codehaus.mojo</groupId>
451
<artifactId>apt-maven-plugin</artifactId>
452
<version>1.0-alpha-5</version>
455
<groupId>org.codehaus.mojo</groupId>
456
<artifactId>cobertura-maven-plugin</artifactId>
457
<version>2.5.2</version>
460
<groupId>org.codehaus.mojo</groupId>
461
<artifactId>findbugs-maven-plugin</artifactId>
462
<version>2.5.2</version>
465
<groupId>org.apache.maven.plugins</groupId>
466
<artifactId>maven-pmd-plugin</artifactId>
467
<version>2.7.1</version>
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>
476
<groupId>org.jvnet.updatecenter2</groupId>
477
<artifactId>maven-makepkgs-plugin</artifactId>
478
<version>0.6.2</version>
481
<groupId>org.jenkins-ci.tools</groupId>
482
<artifactId>maven-hpi-plugin</artifactId>
483
<version>1.93</version>
486
<groupId>org.apache.maven.plugins</groupId>
487
<artifactId>maven-site-plugin</artifactId>
488
<version>3.1</version>
491
<groupId>org.kohsuke</groupId>
492
<artifactId>doxia-module-markdown</artifactId>
493
<version>1.0</version>
497
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
499
<groupId>org.eclipse.m2e</groupId>
500
<artifactId>lifecycle-mapping</artifactId>
501
<version>1.0.0</version>
503
<lifecycleMappingMetadata>
506
<pluginExecutionFilter>
507
<groupId>org.kohsuke.gmaven</groupId>
508
<artifactId>gmaven-plugin</artifactId>
509
<versionRange>[1.0-rc-5-patch-2,)</versionRange>
512
<goal>testCompile</goal>
514
</pluginExecutionFilter>
520
<pluginExecutionFilter>
521
<groupId>org.apache.maven.plugins</groupId>
522
<artifactId>maven-dependency-plugin</artifactId>
523
<versionRange>[2.3,)</versionRange>
526
<goal>unpack-dependencies</goal>
528
</pluginExecutionFilter>
534
</lifecycleMappingMetadata>
538
<groupId>org.codehaus.mojo</groupId>
539
<artifactId>animal-sniffer-maven-plugin</artifactId>
540
<version>1.9</version>
547
<groupId>org.codehaus.mojo</groupId>
548
<artifactId>build-helper-maven-plugin</artifactId>
551
<artifactId>maven-release-plugin</artifactId>
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>
564
<artifactId>maven-remote-resources-plugin</artifactId>
572
<resourceBundle>org.jvnet.hudson:license:1.0</resourceBundle>
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>
591
<groupId>org.codehaus.mojo.signature</groupId>
592
<artifactId>java15</artifactId>
593
<version>1.0</version>
599
<artifactId>maven-compiler-plugin</artifactId>
600
<configuration><!-- we specify this in the parent POM, so this is redundant, but otherwise IntelliJ is unhappy -->
603
<!-- default reuseCreated is more performant
604
feel free to uncomment if you have any issues on your platform
605
<compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
611
<groupId>org.apache.maven.plugins</groupId>
612
<artifactId>maven-enforcer-plugin</artifactId>
620
<!-- There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -->
622
<version>1.6.0-18</version>
623
</requireJavaVersion>
624
<requireMavenVersion>
625
<version>3.0</version>
626
</requireMavenVersion>
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.
638
<groupId>org.jenkins-ci.tools</groupId>
639
<artifactId>maven-jenkins-dev-plugin</artifactId>
643
<groupId>org.jvnet.fix1600</groupId>
644
<artifactId>fix1600</artifactId>
654
<groupId>org.codehaus.gmaven</groupId>
655
<artifactId>gmaven-plugin</artifactId>
659
<goal>generateStubs</goal>
661
<goal>generateTestStubs</goal>
662
<goal>testCompile</goal>
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>
673
<groupId>org.codehaus.gmaven.runtime</groupId>
674
<artifactId>gmaven-runtime-1.7</artifactId>
675
<version>1.3</version>
683
<groupId>org.kohsuke</groupId>
684
<artifactId>wagon-gitsite</artifactId>
685
<version>0.3.5</version>
694
<build.type>rc</build.type>
700
<groupId>org.codehaus.mojo</groupId>
701
<artifactId>build-helper-maven-plugin</artifactId>
704
<id>version-property</id>
706
<replacement>-RC (${now})</replacement>
720
<groupId>org.codehaus.mojo</groupId>
721
<artifactId>findbugs-maven-plugin</artifactId>
723
<threshold>High</threshold>
727
<!--<groupId>org.apache.maven.plugins</groupId>-->
728
<!--<artifactId>maven-pmd-plugin</artifactId>-->
729
<!--<version>2.5</version>-->
730
<!--<configuration>-->
731
<!--<!–rulesets>-->
732
<!--<ruleset>ruleset.xml</ruleset>-->
733
<!--</rulesets–>-->
734
<!--<targetJdk>1.5</targetJdk>-->
735
<!--</configuration>-->
738
<!--<groupId>org.apache.maven.plugins</groupId>-->
739
<!--<artifactId>maven-checkstyle-plugin</artifactId>-->
740
<!--<version>2.6</version>-->
748
<activeByDefault>true</activeByDefault>
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>
761
<groupId>org.jvnet.sorcerer</groupId>
762
<artifactId>maven-sorcerer-plugin</artifactId>
763
<version>0.8</version>
770
<groupId>org.jvnet.sorcerer</groupId>
771
<artifactId>maven-sorcerer-plugin</artifactId>
781
<artifactId>maven-assembly-plugin</artifactId>
782
<inherited>false</inherited>
786
<goal>attached</goal>
788
<phase>package</phase>
790
<finalName>jenkins-${project.version}</finalName>
792
<descriptor>assembly-src.xml</descriptor>
799
<artifactId>maven-gpg-plugin</artifactId>
802
<id>sign-artifacts</id>
803
<phase>verify</phase>
816
<m2BuildDirectory>target</m2BuildDirectory>
820
<name>m2e.version</name>
824
<directory>${m2BuildDirectory}</directory>
827
<artifactId>maven-compiler-plugin</artifactId>
829
<!-- Otherwise m2e is unhappy because of @Override annotations -->
836
<groupId>org.maven.ide.eclipse</groupId>
837
<artifactId>lifecycle-mapping</artifactId>
838
<version>0.12.0</version>
840
<mappingId>customizable</mappingId>
842
<configurator id="org.maven.ide.eclipse.jdt.javaConfigurator" />
843
<configurator id="org.maven.ide.eclipse.plexus.annotations.plexusConfigurator" />
846
<mojoExecution>org.apache.maven.plugins:maven-resources-plugin::</mojoExecution>