SpringMaven

HomePage | RecentChanges | Preferences

Maven 2 poms to drop into a Spring Framework distribution so that 'mvn idea:idea' will work.

These do NOT build Spring with Maven 2.

Top level pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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>
   <groupId>org.springframework</groupId>
   <artifactId>spring</artifactId>
   <packaging>pom</packaging>
   <version>2.0.0</version>
   <name>Spring Framework</name>
   <url>http://www.springframework.org</url>
	
   <build>
      <sourceDirectory>src</sourceDirectory>
      <testSourceDirectory>test</testSourceDirectory>
   </build>

   <modules>
      <module>tiger</module>
      <module>mock</module>
   </modules>

   <dependencies>
       <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <version>2.4</version>
       </dependency>
      <dependency>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.4</version>
      </dependency>
      <dependency>
         <groupId>easymock</groupId>
         <artifactId>easymock</artifactId>
         <version>1.1</version>
      </dependency>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </dependency>
   </dependencies>

</project>

mock/pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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">

   <parent>
     <groupId>org.springframework</groupId>
     <artifactId>spring</artifactId>
     <version>2.0.0</version>
   </parent>
   
   <modelVersion>4.0.0</modelVersion>
   <artifactId>spring-mock</artifactId>
   <packaging>jar</packaging>
   <name>Spring Framework - Mock</name>
   <url>http://www.springframework.org</url>

	<build>
       <sourceDirectory>.</sourceDirectory>
   </build>
   
</project>

tiger/pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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">

   <parent>
     <groupId>org.springframework</groupId>
     <artifactId>spring</artifactId>
     <version>2.0.0</version>
   </parent>
   
   <modelVersion>4.0.0</modelVersion>
   <artifactId>spring-tiger</artifactId>
   <packaging>jar</packaging>
   <name>Spring Framework - Tiger</name>
   <url>http://www.springframework.org</url>

	<build>
       <sourceDirectory>src</sourceDirectory>
       <testSourceDirectory>test</testSourceDirectory>
   </build>
   
</project>


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited November 15, 2006 12:10 pm by WendySmoak (diff)
Search: