pom.xml 7.3 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<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>
5
    <groupId>org.jenkins-ci</groupId>
K
Kohsuke Kawaguchi 已提交
6
    <artifactId>jenkins</artifactId>
7
    <version>1.13</version>
8 9
  </parent>

10
  <groupId>org.jenkins-ci.plugins</groupId>
11
  <artifactId>plugin</artifactId>
12
  <name>Jenkins plugin POM</name>
13
  <version>1.400-SNAPSHOT</version>
14 15 16 17 18 19 20 21 22 23 24 25
  <packaging>pom</packaging>

  <properties>
    <!-- if your java.net user name is different from local user name, specify it here -->
    <java.net.id>${user.name}</java.net.id>
  </properties>

  <!--
    We need the following because the artifactId=plugin but directoryName=plugins, and
    Maven infers the wrong value if I don't specify it explicitly.
  -->
  <scm>
K
Kohsuke Kawaguchi 已提交
26 27 28
    <connection>scm:svn:https://svn.jenkins-ci.org/trunk/hudson/plugins/</connection>
    <developerConnection>scm:svn:https://svn.jenkins-ci.org/trunk/hudson/plugins/</developerConnection>
    <url>https://svn.jenkins-ci.org/trunk/hudson/plugins/</url>
29 30 31 32
  </scm>

  <issueManagement>
    <system>JIRA</system>
K
Kohsuke Kawaguchi 已提交
33
    <url>http://issues.jenkins-ci.org/</url>
34 35 36 37 38
  </issueManagement>

  <dependencyManagement>
    <dependencies>
      <dependency><!-- if a plugin wants to depend on the maven plugin, choose the right version automatically -->
39
        <groupId>org.jenkins-ci.main</groupId>
40
        <artifactId>maven-plugin</artifactId>
41
        <version>1.400-SNAPSHOT</version>
42 43 44 45 46 47
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
48
      <groupId>org.jenkins-ci.main</groupId>
K
Kohsuke Kawaguchi 已提交
49
      <artifactId>jenkins-war</artifactId>
50
      <type>war</type>
51
      <version>1.400-SNAPSHOT</version>
52 53 54
      <scope>test</scope>
    </dependency>
    <dependency>
55
      <groupId>org.jenkins-ci.main</groupId>
K
Kohsuke Kawaguchi 已提交
56
      <artifactId>jenkins-core</artifactId>
57
      <version>1.400-SNAPSHOT</version>
58 59 60
      <scope>provided</scope>
    </dependency>
    <dependency>
61
      <groupId>org.jenkins-ci.main</groupId>
K
Kohsuke Kawaguchi 已提交
62
      <artifactId>jenkins-test-harness</artifactId>
63
      <version>1.400-SNAPSHOT</version>
64 65 66
      <scope>test</scope>
    </dependency>
    <dependency>
67
      <groupId>org.jenkins-ci.main</groupId>
68
      <artifactId>ui-samples-plugin</artifactId>
69
      <version>1.400-SNAPSHOT</version>
70 71 72 73 74 75 76 77 78 79 80
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.3.1</version>
      <scope>test</scope>
    </dependency>
    <!--
      Maven is so brain-dead that when a dependency is like:

K
Kohsuke Kawaguchi 已提交
81
      plugin -(provided)-> jenkins-core -(compile)-> stapler -(provided)-> servlet-api
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

      Artifacts beyond the provided/provided dependency will not be made available to the plugin.
      See this in DefaultArtifactFactory.createArtifact() in the maven-artifact module.

      So for us to have servlet API in the classpath, we need to explicitly list servlet-api.
    -->
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <!--dependencyManagement>
       <dependencies>
       <dependency>
98
       <groupId>org.jenkins-ci.main</groupId>
99
       <artifactId>maven-plugin</artifactId>
100
       <version>1.395</version>
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
       </dependency>
       </dependencies>
       </dependencyManagement-->

  <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>
    <!--
      I don't really understand how this works, but it makes Maven recognizes
      <packaging>hpi</packaging> defined in maven-hpi-plugin.

      <extensions>true</extensions> is apparently needed to have Maven read
      the plugin's Plexus component file.
    -->
    <defaultGoal>package</defaultGoal>
    <plugins>
      <plugin>
K
Kohsuke Kawaguchi 已提交
121
        <groupId>org.jenkins-ci.tools</groupId>
122
        <artifactId>maven-hpi-plugin</artifactId>
K
Kohsuke Kawaguchi 已提交
123
        <version>1.63</version>
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
        <extensions>true</extensions>
        <configuration>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
        <version>1.12</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.0-beta-9</version>
        <configuration>
139
          <goals>deploy</goals>
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jvnet.localizer</groupId>
        <artifactId>maven-localizer-plugin</artifactId>
        <version>1.8</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <fileMask>Messages.properties</fileMask>
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <!--
          javadoc plugin 2.3 apparently interferes with the release process,
          so sticking to 2.2 (http://www.nabble.com/description-setting-plugin-tp14846399p14950047.html)
        -->
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <version>1.0-rc-5</version>
        <executions>
          <execution>
            <id>test-in-groovy</id>
            <!-- allow tests written in Groovy -->
            <goals>
              <goal>generateTestStubs</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.6.5</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemProperties>
            <property>
              <name>hudson.udp</name>
              <value>33849</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>m.g.o-public</id>
      <url>http://maven.glassfish.org/content/groups/public/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>m.g.o-public</id>
      <url>http://maven.glassfish.org/content/groups/public/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

228 229 230
  <distributionManagement>
    <snapshotRepository>
      <id>maven.hudson-labs.org</id>
K
Kohsuke Kawaguchi 已提交
231
      <url>http://maven.jenkins-ci.org:8081/content/repositories/snapshots</url>
232 233
    </snapshotRepository>
  </distributionManagement>
234
</project>