mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 10:06:13 +00:00
505 lines
17 KiB
XML
505 lines
17 KiB
XML
<!--
|
|
The MIT License
|
|
|
|
Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
|
|
Daniel Dyer, Erik Ramfelt, Stephen Connolly, Tom Huybrechts, Olivier Lamy
|
|
|
|
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.
|
|
-->
|
|
|
|
<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>
|
|
|
|
<parent>
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
<artifactId>pom</artifactId>
|
|
<version>1.460-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>maven-plugin</artifactId>
|
|
<packaging>hpi</packaging>
|
|
|
|
<name>Maven Integration plugin</name>
|
|
<description>This plug-in provides deep integration of Jenkins and Maven. This functionality used to be part of the Jenkins core.
|
|
Now it is a plug-in that is installed by default, but can be disabled.</description>
|
|
<url>http://wiki.jenkins-ci.org/display/JENKINS/Maven+2+Project+Plugin</url>
|
|
|
|
<properties>
|
|
<mavenInterceptorsVersion>1.2</mavenInterceptorsVersion>
|
|
<mavenVersion>3.0.4</mavenVersion>
|
|
<maven.version>${mavenVersion}</maven.version>
|
|
<aetherVersion>1.13.1</aetherVersion>
|
|
<sisuInjectVersion>2.3.0</sisuInjectVersion>
|
|
<wagonVersion>2.2</wagonVersion>
|
|
</properties>
|
|
|
|
<issueManagement>
|
|
<system>jira</system>
|
|
<url>https://issues.jenkins-ci.org/browse/JENKINS/component/15487</url>
|
|
</issueManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
<artifactId>jenkins-core</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
<artifactId>javadoc</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>2.4</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.main.maven</groupId>
|
|
<artifactId>maven-agent</artifactId>
|
|
<version>${mavenInterceptorsVersion}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>classworlds</groupId>
|
|
<artifactId>classworlds</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.main.maven</groupId>
|
|
<artifactId>maven-interceptor</artifactId>
|
|
<version>${mavenInterceptorsVersion}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>classworlds</groupId>
|
|
<artifactId>classworlds</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jvnet.hudson</groupId>
|
|
<artifactId>maven2.1-interceptor</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.main.maven</groupId>
|
|
<artifactId>maven3-agent</artifactId>
|
|
<version>${mavenInterceptorsVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.main.maven</groupId>
|
|
<artifactId>maven3-interceptor</artifactId>
|
|
<version>${mavenInterceptorsVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<!-- this plugin is optional and is used to provide settigns.xml from a central UI -->
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
<artifactId>config-file-provider</artifactId>
|
|
<version>1.9.1</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-core</artifactId>
|
|
<version>${mavenVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-compat</artifactId>
|
|
<version>${mavenVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-aether-provider</artifactId>
|
|
<version>${mavenVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-embedder</artifactId>
|
|
<version>${mavenVersion}</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-api</artifactId>
|
|
<version>${aetherVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-impl</artifactId>
|
|
<version>${aetherVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-spi</artifactId>
|
|
<version>${aetherVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-util</artifactId>
|
|
<version>${aetherVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-connector-wagon</artifactId>
|
|
<version>${aetherVersion}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
<artifactId>plexus-container-default</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
<artifactId>sisu-inject-plexus</artifactId>
|
|
<version>${sisuInjectVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
<artifactId>sisu-guice</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
<artifactId>sisu-inject-bean</artifactId>
|
|
<version>${sisuInjectVersion}</version>
|
|
<exclusions>
|
|
<!-- prevent inclusion of one with classfifier no_aop -->
|
|
<exclusion>
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
<artifactId>sisu-guice</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- JENKINS-10819 : This wagon is safer and more configurable to provide http(s) support -->
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-http</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
<classifier>shaded</classifier>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-http-shared4</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpcore</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-file</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-ftp</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-ssh</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-ssh-external</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-provider-api</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.reporting</groupId>
|
|
<artifactId>maven-reporting-api</artifactId>
|
|
<version>3.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
<artifactId>plexus-classworlds</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.lib</groupId>
|
|
<artifactId>lib-jenkins-maven-artifact-manager</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.lib</groupId>
|
|
<artifactId>lib-jenkins-maven-embedder</artifactId>
|
|
<version>3.9</version>
|
|
<exclusions>
|
|
<exclusion><!-- we'll add our own patched version. see https://issues.jenkins-ci.org/browse/JENKINS-1680 -->
|
|
<groupId>jtidy</groupId>
|
|
<artifactId>jtidy</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>commons-cli</groupId>
|
|
<artifactId>commons-cli</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>xml-apis</groupId>
|
|
<artifactId>xml-apis</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<!-- we bundle our own version below -->
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-webdav</artifactId>
|
|
</exclusion>
|
|
|
|
<!-- prefer net.sourceforge.nekohtml:nekohtml:jar:1.9.13 so that we use consistent version across Jenkins -->
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>nekohtml</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>xercesMinimal</artifactId>
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>commons-httpclient</groupId>
|
|
<artifactId>commons-httpclient</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JENKINS-10076 : This wagon is better to provide webdav support -->
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
|
<version>${wagonVersion}</version>
|
|
<exclusions>
|
|
<exclusion><!-- jcl-over-slf4j version needs to match with slf4j-api version, which makes this fragile. let's not try to intercept jcl calls -->
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
</exclusion>
|
|
<!-- prefer net.sourceforge.nekohtml:nekohtml:jar:1.9.13 so that we use consistent version across Jenkins -->
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>nekohtml</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>xercesMinimal</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.sourceforge.nekohtml</groupId>
|
|
<artifactId>nekohtml</artifactId>
|
|
<version>1.9.13</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
<artifactId>token-macro</artifactId>
|
|
<version>1.1</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>findbugs</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
<version>1.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit-dep</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<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>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-jdk14</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!--
|
|
Since new versions need to overwrite old versions, it's better
|
|
not to have version number in the .hpi file name.
|
|
-->
|
|
<finalName>${project.artifactId}</finalName>
|
|
<defaultGoal>package</defaultGoal>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jenkins-ci.tools</groupId>
|
|
<artifactId>maven-hpi-plugin</artifactId>
|
|
<!-- version specified in grandparent pom -->
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<showDeprecation>true</showDeprecation>
|
|
<disabledTestInjection>true</disabledTestInjection>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.kohsuke.stapler</groupId>
|
|
<artifactId>maven-stapler-plugin</artifactId>
|
|
<!-- version specified in grandparent pom -->
|
|
<extensions>true</extensions>
|
|
</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><!-- generate licenses.xml -->
|
|
<groupId>com.cloudbees</groupId>
|
|
<artifactId>maven-license-plugin</artifactId>
|
|
<!-- version specified in grandparent pom -->
|
|
<configuration>
|
|
<generateLicenseXml>target/${project.artifactId}/WEB-INF/licenses.xml</generateLicenseXml>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>resgen</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<!-- we use copy as this is a dependency from outside the reactor -->
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<!-- classworld 1.1 for maven 2 builds -->
|
|
<artifactItem>
|
|
<groupId>classworlds</groupId>
|
|
<artifactId>classworlds</artifactId>
|
|
<version>1.1</version>
|
|
<type>jar</type>
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
<destFileName>classworlds.jar</destFileName>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>cobertura2</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<!-- version specified in grandparent pom -->
|
|
<inherited>true</inherited>
|
|
<configuration>
|
|
<formats>
|
|
<format>html</format>
|
|
<format>xml</format>
|
|
</formats>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>coverage-instrument</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>instrument</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>coverage-report</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>generate-report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|