pom.xml 14.9 KB
Newer Older
1 2 3 4 5
	<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.jvnet.hudson.main</groupId>
	    <artifactId>pom</artifactId>
6
	    <version>1.181-SNAPSHOT</version>
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
	    <relativePath>../pom.xml</relativePath>
	  </parent>
	  
	  <artifactId>hudson-core</artifactId>
	  <packaging>stapler-jar</packaging>
	  <name>Hudson core</name>
	  
	  <build>
	    <plugins>
	      <!--plugin>
		<artifactId>maven-enforcer-plugin</artifactId>
		<executions>
		  <execution>
		    <goals>
		      <goal>enforce</goal>
		    </goals>
		    <configuration>
		      <rules>
			- There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -
			<requireJavaVersion>
			  <version>[1.6.0,]</version>
			</requireJavaVersion>
		      </rules>
		    </configuration>
		  </execution>
		</executions>
	      </plugin-->
	      <plugin>
		<groupId>org.kohsuke.stapler</groupId>
		<artifactId>maven-stapler-plugin</artifactId>
		<extensions>true</extensions>
	      </plugin>
	      <plugin>
		<groupId>org.jvnet.localizer</groupId>
		<artifactId>maven-localizer-plugin</artifactId>
		<version>1.3</version>
		<executions>
		  <execution>
		    <goals>
		      <goal>generate</goal>
		    </goals>
		    <configuration>
		      <fileMask>Messages.properties</fileMask>
		      <outputDirectory>target/generated-sources/localizer</outputDirectory>
		    </configuration>
		  </execution>
		</executions>
	      </plugin>
	      <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>
	      <!--
		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>
		  <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>
		</executions>
	      </plugin>
	      <!-- set main class -->
	      <plugin>
		<artifactId>maven-jar-plugin</artifactId>
		<configuration>
		  <archive>
		    <manifest>
		      <mainClass>hudson.Main</mainClass>
		      <addClasspath>true</addClasspath>
		      <classpathPrefix />
		    </manifest>
		  </archive>
		</configuration>
	      </plugin>
	    </plugins>
	  </build>
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 217 218 219 220
	  <profiles>
	    <profile>
	      <id>debug</id>
	      <activation>
		<activeByDefault>true</activeByDefault>
	      </activation>
	    </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>
	    </profile>
	    <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>
	  </profiles>
221

222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
	  <dependencies>
	    <dependency>
	      <groupId>org.jvnet.hudson.main</groupId>
	      <artifactId>remoting</artifactId>
	      <version>${project.version}</version>
	    </dependency>
	    <dependency>
	      <groupId>org.apache.maven</groupId>
	      <artifactId>maven-embedder</artifactId>
	      <version>${maven.version}</version>
	      <!--exclusions>   These are needed for Maven embedder to resolve parent POMs in remote repositories
		<exclusion>
		  <groupId>org.apache.maven.wagon</groupId>
		  <artifactId>wagon-file</artifactId>
		</exclusion>
		<exclusion>
		  <groupId>org.apache.maven.wagon</groupId>
		  <artifactId>wagon-http-lightweight</artifactId>
		</exclusion>
		<exclusion>
		  <groupId>org.apache.maven.wagon</groupId>
		  <artifactId>wagon-ssh-external</artifactId>
		</exclusion>
		<exclusion>
		  <groupId>org.apache.maven.wagon</groupId>
		  <artifactId>wagon-ssh</artifactId>
		</exclusion>
	      </exclusions-->
	    </dependency>
	    <dependency>
	      <groupId>org.jvnet.hudson.svnkit</groupId>
	      <artifactId>svnkit</artifactId>
K
kohsuke 已提交
254
	      <version>1.1.4-hudson-5</version>
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
	      <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>
	    </dependency>
	    <dependency>
	      <groupId>${groupId}</groupId>
	      <artifactId>maven-agent</artifactId>
	      <version>${project.version}</version>
	    </dependency>
	    <dependency>
	      <groupId>org.kohsuke.stapler</groupId>
	      <artifactId>stapler</artifactId>
	      <version>1.59</version>
K
kohsuke 已提交
277
    </dependency>
278 279 280 281 282 283
    <dependency>
      <groupId>org.kohsuke</groupId>
      <artifactId>graph-layouter</artifactId>
      <classifier>jdk14</classifier>
      <version>1.0</version>
    </dependency>
K
kohsuke 已提交
284 285 286 287 288 289
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>2.7.6</version>
    </dependency>
    <dependency>
K
kohsuke 已提交
290
      <groupId>com.thoughtworks.xstream</groupId>
K
kohsuke 已提交
291
      <artifactId>xstream</artifactId>
292
      <version>1.2.1</version>
K
kohsuke 已提交
293 294 295 296
    </dependency>
    <dependency>
      <groupId>jfree</groupId>
      <artifactId>jfreechart</artifactId>
297
      <version>1.0.3</version>
K
kohsuke 已提交
298 299
    </dependency>
    <dependency>
300
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
301
      <artifactId>ant-junit</artifactId>
302
      <version>1.7.0</version>
K
kohsuke 已提交
303 304
    </dependency>
    <dependency>
305
      <groupId>org.apache.ant</groupId>
K
kohsuke 已提交
306
      <artifactId>ant</artifactId>
307
      <version>1.7.0</version>
K
kohsuke 已提交
308 309 310 311 312
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
313
      <scope>provided</scope>
K
kohsuke 已提交
314 315 316 317 318 319 320 321 322
    </dependency>
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
323
      <version>1.3.1</version>
K
kohsuke 已提交
324 325 326 327 328 329
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.7</version>
    </dependency>
K
kohsuke 已提交
330 331 332 333 334 335 336 337 338 339
    <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 已提交
340 341 342 343 344 345 346 347 348 349 350 351 352 353
      <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>
354 355 356 357 358
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1-beta-11</version>
    </dependency>
K
kohsuke 已提交
359 360 361 362 363 364 365 366 367
    <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>
368 369 370 371 372 373 374 375 376 377 378 379 380 381
      <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 已提交
382 383
    </dependency>
    <dependency>
384
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
385
      <artifactId>commons-jelly-tags-define</artifactId>
386
      <version>1.0.1-hudson-20071021</version>
K
kohsuke 已提交
387 388
    </dependency>
    <dependency>
389
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
390
      <artifactId>commons-jexl</artifactId>
K
kohsuke 已提交
391
      <version>1.1-hudson-20071129</version>
K
kohsuke 已提交
392 393
    </dependency>
    <dependency>
394
      <groupId>org.jvnet.hudson</groupId>
K
kohsuke 已提交
395
      <artifactId>commons-jelly</artifactId>
396
      <version>1.1-hudson-20071224</version>
K
kohsuke 已提交
397 398
    </dependency>
    <dependency>
399 400 401
      <groupId>org.acegisecurity</groupId>
      <artifactId>acegi-security</artifactId>
      <version>1.0.5</version>
K
kohsuke 已提交
402
      <exclusions>
K
kohsuke 已提交
403
        <exclusion>
404 405
          <groupId>org.springframework</groupId>
          <artifactId>spring-remoting</artifactId>
K
kohsuke 已提交
406
        </exclusion>
K
kohsuke 已提交
407
      </exclusions>
K
kohsuke 已提交
408
    </dependency>
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
    <dependency>
      <groupId>org.codehaus.groovy</groupId>
      <artifactId>groovy</artifactId>
      <version>1.1-rc-2</version>
    </dependency>
    <dependency>
      <!--
        for Grails spring bean builder.
        Ideally we should be able to modify BeanBuilder so as not to depend on this.
      -->
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>2.5</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>2.5</version>
    </dependency>
K
kohsuke 已提交
428 429 430 431 432 433 434 435 436 437
    <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 已提交
438
    <dependency><!-- needed by Jelly -->
439
      <groupId>javax.servlet</groupId>
K
kohsuke 已提交
440 441 442
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
443 444 445 446 447
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1</version>
    </dependency>
448 449 450
    <dependency>
      <groupId>com.sun.xml.txw2</groupId>
      <artifactId>txw2</artifactId>
K
kohsuke 已提交
451
      <version>20070624</version>
452
    </dependency>
453
    <dependency>
454
      <groupId>org.kohsuke.stapler</groupId>
455
      <artifactId>json-lib</artifactId>
K
kohsuke 已提交
456
      <version>2.1</version>
457 458
      <classifier>jdk15</classifier>
    </dependency>
459 460 461 462 463
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>
K
kohsuke 已提交
464 465 466 467 468 469 470 471 472 473 474 475 476 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 505 506
    <dependency>
      <groupId>com.octo.captcha</groupId>
      <artifactId>jcaptcha-all</artifactId>
      <version>1.0-RC6</version>
      <exclusions>
        <exclusion>
          <groupId>hsqldb</groupId>
          <artifactId>hsqldb</artifactId>
        </exclusion>
        <exclusion>
          <groupId>hsqldb</groupId>
          <artifactId>hsqldb</artifactId>
        </exclusion>
        <exclusion>
          <groupId>net.sf.ehcache</groupId>
          <artifactId>ehcache</artifactId>
        </exclusion>
        <exclusion>
          <groupId>quartz</groupId>
          <artifactId>quartz</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xercesImpl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xerces</groupId>
          <artifactId>xmlParserAPIs</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-dbcp</groupId>
          <artifactId>commons-dbcp</artifactId>
        </exclusion>
        <exclusion>
          <groupId>concurrent</groupId>
          <artifactId>concurrent</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
K
kohsuke 已提交
507
  </dependencies>
K
kohsuke 已提交
508 509

</project>