pom.xml 7.4 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2 3
		 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">
4

5
  <!--
6 7 8 9 10
      
      This POM cannot be used to build Spring; it is a work in progress and should only be used as
      part of a Maven repository upload bundle using artifacts created by the spring build system. 
      
	-->
11

12 13
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.springframework</groupId>
M
Mark Pollack 已提交
14
  <artifactId>spring-parent</artifactId>
15
  <packaging>pom</packaging>
16
  <name>Spring Framework - Parent</name>
17
  <version>3.0.0.BUILD-SNAPSHOT</version>
18
  <description>Spring Framework Parent</description>
19 20 21 22 23
  <scm>
    <url>https://fisheye.springframework.org/browse/spring-framework</url>
    <connection>scm:svn:https://src.springframework.org/svn/spring-framework/trunk</connection>
    <developerConnection>scm:svn:https://src.springframework.org/svn/spring-framework/trunk</developerConnection>
  </scm>
24 25 26 27 28 29 30

  <repositories>
    <repository>
      <id>java.net</id>
      <name>Java.net Repository for Maven</name>
      <url>http://download.java.net/maven/1/</url>
      <layout>legacy</layout>
31
      <snapshots><enabled>false</enabled></snapshots>
32
    </repository>
33
    <!-- for use with jexcelapi 2.6.8, portlet 2.0, javax.el/el-api 2.1 -->
34 35 36 37
    <repository>
      <id>jboss</id>
      <name>JBoss Repository</name>
      <url>http://repository.jboss.org/maven2</url>
38
      <snapshots><enabled>false</enabled></snapshots>
39
    </repository>
M
Mark Pollack 已提交
40 41 42
    <repository>
      <id>EclipseLink Repo</id>
      <url>http://mirror.cc.vt.edu/pub/eclipse/rt/eclipselink/maven.repo/</url>
43
      <snapshots><enabled>false</enabled></snapshots>
44
    </repository>
45 46 47 48
    <!-- for rome 1.0 -->
    <repository>
      <id>sun-repo-2</id>
      <url>http://download.java.net/maven/2/</url>
49
      <snapshots><enabled>false</enabled></snapshots>
50
    </repository>    
51 52 53 54
    <!-- fallback to S2 bundle repo for com.ibm.websphere.uow, oracle.classloader, com.sun.enterprise.loader -->
    <repository>
      <id>com.springsource.repository.bundles.release</id>
      <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
55
      <url>http://repository.springsource.com/maven/bundles/release/</url>
56
      <snapshots><enabled>false</enabled></snapshots>
57 58 59 60
    </repository>
    <repository>
      <id>com.springsource.repository.bundles.external</id>
      <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
61
      <url>http://repository.springsource.com/maven/bundles/external/</url>
62
      <snapshots><enabled>false</enabled></snapshots>
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
    </repository>
  </repositories>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>javax.xml.ws</groupId>
        <artifactId>jaxws-api</artifactId>
        <version>2.1-1</version>
        <exclusions>
          <exclusion>
            <groupId>javax.jws</groupId>
            <artifactId>jsr181</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
M
Mark Pollack 已提交
79
      <dependency>
80 81 82 83
		<groupId>javax.inject</groupId>
		<artifactId>com.springsource.javax.inject</artifactId>
		<version>0.9.0.PFD</version>
		<scope>provided</scope> 
M
Mark Pollack 已提交
84
      </dependency>
85 86 87
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
M
Mark Pollack 已提交
88
        <version>4.7</version>
89 90 91
        <scope>test</scope>
      </dependency>
      <dependency>
92 93 94 95
		<groupId>org.aspectj</groupId>
		<artifactId>aspectjweaver</artifactId>
		<version>1.6.5</version>
		<optional>true</optional>
M
Mark Pollack 已提交
96 97
      </dependency>
      <dependency>
98 99 100 101
		<groupId>org.easymock</groupId>
		<artifactId>easymock</artifactId>
		<version>2.5.1</version>
		<scope>test</scope>
M
Mark Pollack 已提交
102 103
      </dependency>
      <dependency>
104 105 106 107 108 109 110 111 112 113 114 115
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>1.5.8</version>
      </dependency>
      <dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-log4j12</artifactId>
		<version>1.5.8</version>
      </dependency>
      <dependency>
		<groupId>log4j</groupId>
		<artifactId>log4j</artifactId>
M
Mark Pollack 已提交
116
        <version>1.2.15</version>
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
		<scope>test</scope>
		<exclusions>
		  <exclusion>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
		  </exclusion>
		  <exclusion>
			<groupId>javax.jms</groupId>
			<artifactId>jms</artifactId>
		  </exclusion>
		  <exclusion>
			<groupId>com.sun.jdmk</groupId>
			<artifactId>jmxtools</artifactId>
		  </exclusion>
		  <exclusion>
			<groupId>com.sun.jmx</groupId>
			<artifactId>jmxri</artifactId>
		  </exclusion>
		</exclusions>
136
      </dependency>
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
    </dependencies>
  </dependencyManagement>

  <profiles>
    <profile>
      <id>strict</id>
      <properties>
        <maven.test.failure.ignore>false</maven.test.failure.ignore>
      </properties>
    </profile>
    <profile>
      <id>fast</id>
      <properties>
        <maven.test.skip>true</maven.test.skip>
        <maven.javadoc.skip>true</maven.javadoc.skip>
      </properties>
    </profile>
    <profile>
      <id>staging</id>
      <distributionManagement>
        <site>
          <id>staging</id>
159
          <url>file:///${user.dir}/target/staging</url>
160 161 162
        </site>
        <repository>
          <id>staging</id>
163
          <url>file:///${user.dir}/target/staging</url>
164 165 166
        </repository>
        <snapshotRepository>
          <id>staging</id>
167
          <url>file:///${user.dir}/target/staging</url>
168 169 170
        </snapshotRepository>
      </distributionManagement>
    </profile>
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
    <profile>
      <id>central</id>
      <distributionManagement>
        <site>
          <id>staging</id>
          <url>file:///${user.dir}/target/staging</url>
        </site>
        <repository>
          <id>spring-milestone</id>
          <name>Spring Milestone Repository</name>
          <url>s3://maven.springframework.org/milestone</url>
        </repository>
        <snapshotRepository>
          <id>spring-snapshot</id>
          <name>Spring Snapshot Repository</name>
          <url>s3://maven.springframework.org/snapshot</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

210
  <build>
211 212 213 214 215 216 217
	<extensions>
	  <extension>
		<groupId>org.springframework.build.aws</groupId>
		<artifactId>org.springframework.build.aws.maven</artifactId>
		<version>2.0.0.RELEASE</version>
	  </extension>
	</extensions>
218 219 220 221
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
222 223 224
		<configuration>
		  <source>1.5</source>
		  <target>1.6</target>
225 226 227 228 229 230 231 232 233 234 235 236 237
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <includes>
            <include>**/*Tests.java</include>
          </includes>
          <excludes>
            <exclude>**/Abstract*.java</exclude>
          </excludes>
          <junitArtifactName>junit:junit</junitArtifactName>
238
		  <argLine>-Xmx512m</argLine>
239 240 241 242
        </configuration>
      </plugin>
    </plugins>
  </build>
243

244
</project>