spring2.5源码编译

使用maven 下载编译spring源码需要的jar包,里面有很多jar版本比较低,版本号很重要.
步骤:
  1.首先安装maven,添加 eclipse工具需要的maven插件.
  2.在eclipse中建立maven项目, 项目建立后会自动生成一个pom.xml
  3.将附件中的pom.xml 内容copy到项目中的pom.xml maven会自动下载所需要的jar包.

pom.xml内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--groupID and version search URL http://mvnrepository.com -->
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.dmx.helloword</groupId>
  <artifactId>testHellowrod</artifactId>
  <version>1.0</version>
  <packaging>jar</packaging>

  <name>testHellowrod</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>
    
    <dependency>
      <groupId>commons-logging</groupId>
  	  <artifactId>commons-logging-api</artifactId>
  	  <version>1.0.4</version>
    </dependency>
    
    <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjweaver</artifactId>
        <version>1.5.4</version>
    </dependency>
    
    <dependency>
	    <groupId>hessian</groupId>
	    <artifactId>hessian</artifactId>
	    <version>3.1.3</version>
    </dependency>
    
    <dependency>
	    <groupId>com.oracle.toplink</groupId>
	    <artifactId>toplink</artifactId>
	    <version>10.1.3</version>
    </dependency>
  
    <dependency>
		<groupId>struts</groupId>
		<artifactId>struts</artifactId>
		<version>1.2.9</version>
	</dependency>
    
    <dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>servlet-api</artifactId>
		<version>2.5</version>
	</dependency>
    
    <dependency>
		<groupId>javax.portlet</groupId>
		<artifactId>portlet-api</artifactId>
		<version>1.0</version>
	</dependency>
    
    <dependency>
		<groupId>javax.resource</groupId>
		<artifactId>connector-api</artifactId>
		<version>1.5</version>
	</dependency>
    
    <dependency>
    	<groupId>javax.mail</groupId>
    	<artifactId>mail</artifactId>
    	<version>1.4.2</version>
    </dependency>
    
    <dependency>
		<groupId>aopalliance</groupId>
		<artifactId>aopalliance</artifactId>
		<version>1.0</version>
	</dependency>
    
    <dependency>
	    <groupId>commons-attributes</groupId>
	    <artifactId>commons-attributes-api</artifactId>
	    <version>2.2</version>
	</dependency>
    
	<dependency>
		<groupId>org.apache.ibatis</groupId>
		<artifactId>ibatis-sqlmap</artifactId>
		<version>2.3.4.726</version>
	</dependency>

    <dependency>
		<groupId>org.apache.tiles</groupId>
		<artifactId>tiles-core</artifactId>
		<version>2.2.1</version>
	</dependency>
    
    <dependency>
		<groupId>org.apache.tiles</groupId>
		<artifactId>tiles-servlet</artifactId>
		<version>2.1.0</version>
	</dependency>
    
     <dependency>
		<groupId>org.apache.tiles</groupId>
		<artifactId>tiles-jsp</artifactId>
		<version>2.0.5</version>
	</dependency>
    
    <dependency>
		<groupId>javax.xml.rpc</groupId>
		<artifactId>javax.xml.rpc-api</artifactId>
		<version>1.1</version>
	</dependency>
    
    <dependency>
		<groupId>org.apache.axis</groupId>
		<artifactId>axis</artifactId>
		<version>1.4</version>
	</dependency>
    
    <dependency>
		<groupId>net.sf.ehcache</groupId>
		<artifactId>ehcache</artifactId>
		<version>2.7.0</version>
	</dependency>
    
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <version>2.2</version>
    </dependency>
    
    <dependency>
		<groupId>backport-util-concurrent</groupId>
		<artifactId>backport-util-concurrent-java12</artifactId>
		<version>3.1</version>
	</dependency>

	<dependency>
		<groupId>javax.servlet.jsp</groupId>
		<artifactId>jsp-api</artifactId>
		<version>2.2.1-b03</version>
	</dependency>
	
	<dependency>
		<groupId>javax.servlet.jsp.jstl</groupId>
		<artifactId>jstl-api</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>commons-httpclient</groupId>
		<artifactId>commons-httpclient</artifactId>
		<version>3.0-rc1</version>
	</dependency>

	<dependency>
		<groupId>org.glassfish.main.javaee-api</groupId>
		<artifactId>javax.jms</artifactId>
		<version>3.1.2.2</version>
	</dependency>
	
	<dependency>
		<groupId>com.mchange</groupId>
		<artifactId>c3p0</artifactId>
		<version>0.9.2-pre8</version>
	</dependency>
	
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate</artifactId>
		<version>3.2.1.ga</version>
	</dependency>
	
	<dependency>
		<groupId>commons-collections</groupId>
		<artifactId>commons-collections</artifactId>
		<version>3.1</version>
	</dependency>
	
	<dependency>
		<groupId>org.apache.velocity</groupId>
		<artifactId>velocity-tools</artifactId>
		<version>1.3</version>
	</dependency>
	
	<dependency>
	  <groupId>org.opensymphony.quartz</groupId>
	  <artifactId>quartz</artifactId>
	  <version>1.6.1</version>
	</dependency>
	
	<dependency>
		<groupId>org.jruby</groupId>
		<artifactId>jruby</artifactId>
		<version>1.0</version>
	</dependency>
	
	<dependency>
		<groupId>org.codehaus.groovy</groupId>
		<artifactId>groovy-all</artifactId>
		<version>2.1.1</version>
	</dependency>
	
	<dependency>
		<groupId>com.lowagie</groupId>
		<artifactId>itext</artifactId>
		<version>1.3</version>
	</dependency>
	
	<dependency>
		<groupId>javax.ejb</groupId>
		<artifactId>javax.ejb-api</artifactId>
		<version>3.2-b02</version>
	</dependency>
	
	<dependency>
		<groupId>org.eclipse.jetty.orbit</groupId>
		<artifactId>org.objectweb.asm</artifactId>
		<version>3.3.1.v201105211655</version>
	</dependency>
	
	<dependency>
		<groupId>freemarker</groupId>
		<artifactId>freemarker</artifactId>
		<version>2.3.8</version>
	</dependency>
	
	<dependency>
		<groupId>com.experlog</groupId>
		<artifactId>xapool</artifactId>
		<version>1.5.0</version>
	</dependency>
	
	<dependency>
		<groupId>org.ow2.jotm</groupId>
		<artifactId>jotm-core</artifactId>
		<version>2.1.1</version>
	</dependency>
	
	<dependency>
		<groupId>commons-fileupload</groupId>
		<artifactId>commons-fileupload</artifactId>
		<version>1.1</version>
	</dependency>
	
	<dependency>
		<groupId>org.beanshell</groupId>
		<artifactId>bsh-core</artifactId>
		<version>2.0b4</version>
	</dependency>
	
	<dependency>
		<groupId>log4j</groupId>
		<artifactId>log4j</artifactId>
		<version>1.2.16</version>
	</dependency>
	
	<dependency>
		<groupId>javax.faces</groupId>
		<artifactId>jsf-api</artifactId>
		<version>1.1_02</version>
	</dependency>
	
	<dependency>
		<groupId>jstl</groupId>
		<artifactId>jstl</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>org.apache.directory.studio</groupId>
		<artifactId>org.apache.commons.pool</artifactId>
		<version>1.6</version>
	</dependency>

	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi</artifactId>
		<version>3.2-FINAL</version>
	</dependency>

	<dependency>
		<groupId>net.sf.jasperreports</groupId>
		<artifactId>jasperreports</artifactId>
		<version>4.0.0</version>
	</dependency>
	
	<dependency>
		<groupId>javax.jdo</groupId>
		<artifactId>jdo-api</artifactId>
		<version>3.0</version>
	</dependency>
	
	<dependency>
		<groupId>org.codehaus.fabric3.api</groupId>
		<artifactId>commonj</artifactId>
		<version>1.1.1</version>
	</dependency>
	
	<dependency>
		<groupId>com.jamonapi</groupId>
		<artifactId>jamon</artifactId>
		<version>2.0</version>
	</dependency>
	
	<dependency>
		<groupId>jexcelapi</groupId>
		<artifactId>jxl</artifactId>
		<version>2.6</version>
	</dependency>
	<!-- 添加自己的jar. maven 仓库中没有的jar 到本地仓库 
	mvn install:install-file -DgroupId=com.dmx.ibm.websphere -DartifactId=websphere -Dversion=6.0.2.17 
	-Dpackaging=jar -Dfile=E:\com.springsource.com.ibm.websphere.uow-6.0.2.17.jar
	-Dfile 路径为jar存放路径,把此jar 安装到本地仓库  
	-->
	<dependency> 
		<groupId>com.dmx.ibm.websphere</groupId> 
		<artifactId>websphere</artifactId> 
		<version>6.0.2.17</version> 
	</dependency>
	
  </dependencies>
  
</project>

 

你可能感兴趣的:(spring)