pom.xml 5.2 KB
Newer Older
1 2 3 4
<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">

5 6 7 8 9 10 11
  <!--
    
    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. 
    
  -->

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>
M
Mark Pollack 已提交
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 31

  <repositories>
    <repository>
      <id>java.net</id>
      <name>Java.net Repository for Maven</name>
      <url>http://download.java.net/maven/1/</url>
      <layout>legacy</layout>
    </repository>
M
Mark Pollack 已提交
32
    <!-- for use with jexcelapi 2.6.8, portlet 2.0, hibernate 3.3.1-->
33 34 35 36 37
    <repository>
      <id>jboss</id>
      <name>JBoss Repository</name>
      <url>http://repository.jboss.org/maven2</url>
    </repository>
M
Mark Pollack 已提交
38 39 40
    <repository>
      <id>EclipseLink Repo</id>
      <url>http://mirror.cc.vt.edu/pub/eclipse/rt/eclipselink/maven.repo/</url>
41
    </repository>
42 43 44 45 46 47 48 49 50 51
    <!-- 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>
      <url>http://repository.springsource.com/maven/bundles/release</url>
    </repository>
    <repository>
      <id>com.springsource.repository.bundles.external</id>
      <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
      <url>http://repository.springsource.com/maven/bundles/external</url>
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
    </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>
    </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>
90
          <url>file:///${user.dir}/target/staging</url>
91 92 93
        </site>
        <repository>
          <id>staging</id>
94
          <url>file:///${user.dir}/target/staging</url>
95 96 97
        </repository>
        <snapshotRepository>
          <id>staging</id>
98
          <url>file:///${user.dir}/target/staging</url>
99 100 101
        </snapshotRepository>
      </distributionManagement>
    </profile>
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
    <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>
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
    <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>

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
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </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>
        </configuration>
      </plugin>
    </plugins>
  </build>
166

167
</project>