pom.xml 17.1 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.152-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
    <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 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>
205 206
  </profiles>

K
kohsuke 已提交
207
  <dependencies>
208 209 210
    <dependency>
      <groupId>org.jvnet.hudson.main</groupId>
      <artifactId>remoting</artifactId>
211
      <version>${project.version}</version>
212
    </dependency>
213 214 215
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-embedder</artifactId>
216
      <version>${maven.version}</version>
217
    </dependency>
K
kohsuke 已提交
218
    <dependency>
K
kohsuke 已提交
219
      <groupId>org.jvnet.hudson.svnkit</groupId>
K
kohsuke 已提交
220
      <artifactId>svnkit</artifactId>
K
kohsuke 已提交
221
      <version>1.1.4-hudson-3</version>
222 223 224 225 226 227 228 229 230 231 232 233
      <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 已提交
234
    </dependency>
235 236 237
    <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>maven-agent</artifactId>
238
      <version>${project.version}</version>
239
    </dependency>
K
kohsuke 已提交
240 241 242
    <dependency>
      <groupId>org.kohsuke.stapler</groupId>
      <artifactId>stapler</artifactId>
K
kohsuke 已提交
243
      <version>1.45</version>
K
kohsuke 已提交
244
    </dependency>
245 246 247 248 249 250
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>graph-layouter</artifactId>
      <classifier>jdk14</classifier>
      <version>1.0</version>
    </dependency>
K
kohsuke 已提交
251 252 253 254 255 256
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>2.7.6</version>
    </dependency>
    <dependency>
K
kohsuke 已提交
257
      <groupId>com.thoughtworks.xstream</groupId>
K
kohsuke 已提交
258
      <artifactId>xstream</artifactId>
259
      <version>1.2.1</version>
K
kohsuke 已提交
260 261 262 263
    </dependency>
    <dependency>
      <groupId>jfree</groupId>
      <artifactId>jfreechart</artifactId>
264
      <version>1.0.3</version>
K
kohsuke 已提交
265 266
    </dependency>
    <dependency>
267
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
268
      <artifactId>ant-junit</artifactId>
269
      <version>1.7.0</version>
K
kohsuke 已提交
270 271
    </dependency>
    <dependency>
272
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
273
      <artifactId>ant</artifactId>
274
      <version>1.7.0</version>
K
kohsuke 已提交
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
    </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>
290
      <version>1.3.1</version>
K
kohsuke 已提交
291 292 293 294 295 296
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.7</version>
    </dependency>
K
kohsuke 已提交
297 298 299 300 301 302 303 304 305 306
    <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 已提交
307 308 309 310 311 312 313 314 315 316 317 318 319 320
      <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>
321 322 323 324 325
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1-beta-11</version>
    </dependency>
K
kohsuke 已提交
326 327 328 329 330 331 332 333 334
    <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>
335 336 337 338 339 340 341 342 343 344 345 346 347 348
      <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 已提交
349 350
    </dependency>
    <dependency>
351
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
352
      <artifactId>commons-jelly-tags-define</artifactId>
353
      <version>1.0.1-hudson-20071021</version>
K
kohsuke 已提交
354 355
    </dependency>
    <dependency>
356
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
357
      <artifactId>commons-jexl</artifactId>
358
      <version>1.1-hudson-20071021</version>
K
kohsuke 已提交
359 360
    </dependency>
    <dependency>
361
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
362
      <artifactId>commons-jelly</artifactId>
363
      <version>1.1-hudson-20071021</version>
K
kohsuke 已提交
364 365 366
    </dependency>
    <dependency>
      <groupId>groovy</groupId>
K
kohsuke 已提交
367
      <artifactId>groovy</artifactId>
K
kohsuke 已提交
368 369
      <version>1.0</version>
      <exclusions>
K
kohsuke 已提交
370 371 372 373 374 375 376 377 378 379 380 381 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
        <!-- 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 已提交
445
        <exclusion>
K
kohsuke 已提交
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
          <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>
473
        <!--exclusion>
K
kohsuke 已提交
474 475
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
476
        </exclusion-->
K
kohsuke 已提交
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
        <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>
505
        <!--exclusion>
K
kohsuke 已提交
506 507
          <groupId>xpp3</groupId>
          <artifactId>xpp3</artifactId>
508
        </exclusioni-->
K
kohsuke 已提交
509 510 511 512
        <exclusion>
          <groupId>com.tonicsystems</groupId>
          <artifactId>jarjar</artifactId>
        </exclusion>
K
kohsuke 已提交
513
      </exclusions>
K
kohsuke 已提交
514 515 516 517 518 519 520 521 522 523 524
    </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 已提交
525
    <dependency><!-- needed by Jelly -->
526
      <groupId>javax.servlet</groupId>
K
kohsuke 已提交
527 528 529
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
530 531 532 533 534
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1</version>
    </dependency>
535 536 537
    <dependency>
      <groupId>com.sun.xml.txw2</groupId>
      <artifactId>txw2</artifactId>
K
kohsuke 已提交
538
      <version>20070624</version>
539
    </dependency>
540 541 542
    <dependency>
      <groupId>net.sf.json-lib</groupId>
      <artifactId>json-lib</artifactId>
K
kohsuke 已提交
543
      <version>2.1</version>
544 545
      <classifier>jdk15</classifier>
    </dependency>
546 547 548 549 550
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>
K
kohsuke 已提交
551
  </dependencies>
K
kohsuke 已提交
552 553

</project>