pom.xml 17.6 KB
Newer Older
1
<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">
K
kohsuke 已提交
2 3 4 5
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.jvnet.hudson.main</groupId>
    <artifactId>pom</artifactId>
6
    <version>1.151-SNAPSHOT</version>
K
kohsuke 已提交
7 8 9 10
    <relativePath>../pom.xml</relativePath>
  </parent>
  
  <artifactId>hudson-core</artifactId>
11
  <packaging>stapler-jar</packaging>
K
kohsuke 已提交
12 13 14 15
  <name>Hudson core</name>
  
  <build>
    <plugins>
16
      <!--plugin>
17 18 19 20
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <goals>
21
              <goal>enforce</goal>
22 23 24
            </goals>
            <configuration>
              <rules>
25
                - There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -
26 27 28 29 30 31 32
                <requireJavaVersion>
                  <version>[1.6.0,]</version>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
33
      </plugin-->
K
kohsuke 已提交
34 35 36
      <plugin>
        <groupId>org.kohsuke.stapler</groupId>
        <artifactId>maven-stapler-plugin</artifactId>
K
kohsuke 已提交
37
        <version>1.2</version>
38
        <extensions>true</extensions>
K
kohsuke 已提交
39
      </plugin>
K
kohsuke 已提交
40 41 42 43 44 45 46 47 48 49 50 51 52 53
      <plugin>
        <artifactId>maven-antlr-plugin</artifactId>
        <configuration>
          <sourceDirectory>${basedir}/src/main/grammar</sourceDirectory>
          <grammars>crontab.g</grammars>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
54 55 56 57 58 59 60 61 62
      <!--
        Generate retrotranslated 1.4 jar "on the side". I tried various approaches like
        "profile" (like http://testng.googlecode.com/svn/trunk/pom.xml), but in the
        end using Ant seems to be the easiest.
      -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
K
kohsuke 已提交
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
          <execution>
            <phase>generate-resources</phase>
            <configuration>
              <tasks>
                <tstamp>
                  <format property="now" pattern="MM/dd/yyyy hh:mm" unit="hour" />
                </tstamp>
                <property name="build.version" value="${version} (private-${now}-${user.name})" /><!-- default to release version -->
                <!-- put the version file -->
                <echo message="The build id is: ${build.version}" />
                <mkdir dir="target/classes/hudson" />
                <echo file="target/classes/hudson/hudson-version.properties">version=${build.version}
                </echo>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
82 83
        </executions>
      </plugin>
84 85 86 87 88 89 90 91
      <!-- set main class -->
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>hudson.Main</mainClass>
              <addClasspath>true</addClasspath>
92
              <classpathPrefix />
93 94 95 96
            </manifest>
          </archive>
        </configuration>
      </plugin>
K
kohsuke 已提交
97 98
    </plugins>
  </build>
99 100 101 102 103 104 105

  <profiles>
    <profile>
      <id>debug</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
106 107 108 109 110 111 112
    </profile>
    <profile>
      <id>release</id>
      <properties>
        <!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. -->
        <build.version>${version}</build.version>
      </properties>
113
    </profile>
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 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
    <profile>
      <id>hudson-libs-local</id>
      <!-- if we have the libs checked out of CVS, use them directly -->
      <activation>
        <file>
          <exists>main/lib</exists>
          <!-- this is relative to the current directory where you start
               maven.  Most likely if building for the first time
               you will be in ../.. relative to this pom.xml. So we 
               use that path in order to speed you up.
          -->
        </file>
      </activation>
      <repositories>
        <!-- checking the file system is fastest of all -->
        <repository>
          <id>hudson-libs</id>
          <url>file:main/lib</url>
          <layout>legacy</layout>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <!-- put central second to speed majority artifact resolution -->
        <repository>
          <id>central</id>
          <url>http://repo1.maven.org/maven2</url>
          <releases>
            <enabled>true</enabled>
            <!-- only look for jars here when they are not present locally -->
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <!-- last, but not least -->
        <repository>
          <id>java.net2</id>
          <url>http://download.java.net/maven/2/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
    <profile>
      <id>hudson-libs-remote</id>
      <!-- otherwise, we'll have to use the slower route -->
      <activation>
        <file>
          <missing>main/lib</missing>
        </file>
      </activation>
      <repositories>
        <!-- put central first to speed majority artifact resolution -->
        <repository>
          <id>central</id>
          <url>http://repo1.maven.org/maven2</url>
          <releases>
            <enabled>true</enabled>
            <!-- only look for jars here when they are not present locally -->
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <!-- put java.net2 second, as it's faster than the https CVS access -->
        <repository>
          <id>java.net2</id>
          <url>http://download.java.net/maven/2</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <!-- put hudson-libs last as it is the slowest to access -->
        <repository>
          <id>hudson-libs</id>
          <url>https://hudson.dev.java.net/source/browse/*checkout*/hudson/hudson/main/lib</url>
          <layout>legacy</layout>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
217 218
  </profiles>

K
kohsuke 已提交
219
  <dependencies>
220 221 222
    <dependency>
      <groupId>org.jvnet.hudson.main</groupId>
      <artifactId>remoting</artifactId>
223
      <version>${project.version}</version>
224
    </dependency>
225 226 227
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-embedder</artifactId>
228
      <version>${maven.version}</version>
229
    </dependency>
K
kohsuke 已提交
230
    <dependency>
K
kohsuke 已提交
231
      <groupId>org.jvnet.hudson.svnkit</groupId>
K
kohsuke 已提交
232
      <artifactId>svnkit</artifactId>
K
kohsuke 已提交
233
      <version>1.1.4-hudson-3</version>
234 235 236 237 238 239 240 241 242 243 244 245
      <exclusions>
        <!-- replaced by out patched version -->
        <exclusion>
          <groupId>ch.ethz.ganymed</groupId>
          <artifactId>ganymed-ssh2</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.jvnet.hudson</groupId>
      <artifactId>ganymed-ssh2</artifactId>
      <version>build210-hudson-1</version>
K
kohsuke 已提交
246
    </dependency>
247 248 249
    <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>maven-agent</artifactId>
250
      <version>${project.version}</version>
251
    </dependency>
K
kohsuke 已提交
252 253 254
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler</artifactId>
K
kohsuke 已提交
255
      <version>1.45</version>
K
kohsuke 已提交
256
    </dependency>
257 258 259 260 261 262
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>graph-layouter</artifactId>
      <classifier>jdk14</classifier>
      <version>1.0</version>
    </dependency>
K
kohsuke 已提交
263 264 265 266 267 268
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>2.7.6</version>
    </dependency>
    <dependency>
K
kohsuke 已提交
269
      <groupId>com.thoughtworks.xstream</groupId>
K
kohsuke 已提交
270
      <artifactId>xstream</artifactId>
271
      <version>1.2.1</version>
K
kohsuke 已提交
272 273 274 275
    </dependency>
    <dependency>
      <groupId>jfree</groupId>
      <artifactId>jfreechart</artifactId>
276
      <version>1.0.3</version>
K
kohsuke 已提交
277 278
    </dependency>
    <dependency>
279
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
280
      <artifactId>ant-junit</artifactId>
281
      <version>1.7.0</version>
K
kohsuke 已提交
282 283
    </dependency>
    <dependency>
284
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
285
      <artifactId>ant</artifactId>
286
      <version>1.7.0</version>
K
kohsuke 已提交
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
302
      <version>1.3.1</version>
K
kohsuke 已提交
303 304 305 306 307 308
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.7</version>
    </dependency>
K
kohsuke 已提交
309 310 311 312 313 314 315 316 317 318
    <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>
      <version>1.7.0</version>
    </dependency>
    <dependency>
K
kohsuke 已提交
319 320 321 322 323 324 325 326 327 328 329 330 331 332
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
    </dependency>
    <dependency>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
      <version>1.6.1</version>
    </dependency>
333 334 335 336 337
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1-beta-11</version>
    </dependency>
K
kohsuke 已提交
338 339 340 341 342 343 344 345 346
    <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>
347 348 349 350 351 352 353 354 355 356 357 358 359 360
      <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>
      </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>
K
kohsuke 已提交
366 367
    </dependency>
    <dependency>
368
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
369
      <artifactId>commons-jexl</artifactId>
370
      <version>1.1-hudson-20071021</version>
K
kohsuke 已提交
371 372
    </dependency>
    <dependency>
373
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
374
      <artifactId>commons-jelly</artifactId>
375
      <version>1.1-hudson-20071021</version>
K
kohsuke 已提交
376 377 378
    </dependency>
    <dependency>
      <groupId>groovy</groupId>
K
kohsuke 已提交
379
      <artifactId>groovy</artifactId>
K
kohsuke 已提交
380 381
      <version>1.0</version>
      <exclusions>
K
kohsuke 已提交
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456
        <!-- Groovy seems to mix mandatory dependencies and optional dependencies all in one, so
             our approach here is to find ones that seem mandatory and exclude everything else
        -->
        <!--exclusion>
          <groupId>antlr</groupId>
          <artifactId>antlr</artifactId>
        </exclusion>
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm</artifactId>
        </exclusion-->
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xerces</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-cli</groupId>
          <artifactId>commons-cli</artifactId>
        </exclusion>
        <exclusion>
          <groupId>ant</groupId>
          <artifactId>ant</artifactId>
        </exclusion>
        <exclusion>
          <groupId>ant</groupId>
          <artifactId>ant-junit</artifactId>
        </exclusion>
        <exclusion>
          <groupId>ant</groupId>
          <artifactId>ant-launcher</artifactId>
        </exclusion>
        <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </exclusion>
        <exclusion>
          <groupId>jmock</groupId>
          <artifactId>jmock</artifactId>
        </exclusion>
        <exclusion>
          <groupId>jmock</groupId>
          <artifactId>jmock-cglib</artifactId>
        </exclusion>
        <!--exclusion>
          <groupId>cglib</groupId>
          <artifactId>cglib-nodep</artifactId>
        </exclusion>
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm-util</artifactId>
        </exclusion>
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm-attrs</artifactId>
        </exclusion>
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm-analysis</artifactId>
        </exclusion>
        <exclusion>
          <groupId>asm</groupId>
          <artifactId>asm-tree</artifactId>
        </exclusion-->
        <exclusion>
          <groupId>bsf</groupId>
          <artifactId>bsf</artifactId>
        </exclusion>
        <exclusion>
          <groupId>mx4j</groupId>
          <artifactId>mx4j</artifactId>
        </exclusion>
K
kohsuke 已提交
457
        <exclusion>
K
kohsuke 已提交
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
          <groupId>mockobjects</groupId>
          <artifactId>mockobjects-core</artifactId>
        </exclusion>
        <exclusion>
          <groupId>openejb</groupId>
          <artifactId>openejb-loader</artifactId>
        </exclusion>
        <exclusion>
          <groupId>axion</groupId>
          <artifactId>axion</artifactId>
        </exclusion>
        <!--exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-collections</groupId>
          <artifactId>commons-collections</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-primitives</groupId>
          <artifactId>commons-primitives</artifactId>
        </exclusion-->
        <exclusion>
          <groupId>regexp</groupId>
          <artifactId>regexp</artifactId>
        </exclusion>
485
        <!--exclusion>
K
kohsuke 已提交
486 487
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
488
        </exclusion-->
K
kohsuke 已提交
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516
        <exclusion>
          <groupId>javax.servlet</groupId>
          <artifactId>jsp-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>radeox</groupId>
          <artifactId>radeox</artifactId>
        </exclusion>
        <exclusion>
          <groupId>radeox</groupId>
          <artifactId>radeox-oro</artifactId>
        </exclusion>
        <exclusion>
          <groupId>nekohtml</groupId>
          <artifactId>nekohtml</artifactId>
        </exclusion>
        <exclusion>
          <groupId>qdox</groupId>
          <artifactId>qdox</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-httpclient</groupId>
          <artifactId>commons-httpclient</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xstream</groupId>
          <artifactId>xstream</artifactId>
        </exclusion>
517
        <!--exclusion>
K
kohsuke 已提交
518 519
          <groupId>xpp3</groupId>
          <artifactId>xpp3</artifactId>
520
        </exclusioni-->
K
kohsuke 已提交
521 522 523 524
        <exclusion>
          <groupId>com.tonicsystems</groupId>
          <artifactId>jarjar</artifactId>
        </exclusion>
K
kohsuke 已提交
525
      </exclusions>
K
kohsuke 已提交
526 527 528 529 530 531 532 533 534 535 536
    </dependency>
    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3</artifactId>
      <version>1.1.3.3</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8</version>
    </dependency>
K
kohsuke 已提交
537
    <dependency><!-- needed by Jelly -->
538
      <groupId>javax.servlet</groupId>
K
kohsuke 已提交
539 540 541
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
542 543 544 545 546
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1</version>
    </dependency>
547 548 549
    <dependency>
      <groupId>com.sun.xml.txw2</groupId>
      <artifactId>txw2</artifactId>
K
kohsuke 已提交
550
      <version>20070624</version>
551
    </dependency>
552 553 554
    <dependency>
      <groupId>net.sf.json-lib</groupId>
      <artifactId>json-lib</artifactId>
K
kohsuke 已提交
555
      <version>2.1</version>
556 557
      <classifier>jdk15</classifier>
    </dependency>
558 559 560 561 562
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>
K
kohsuke 已提交
563
  </dependencies>
K
kohsuke 已提交
564 565

</project>