`
Gavin.Chen
  • 浏览: 325673 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

Spring初探-Spring的项目依赖与Package(附集成到Maven里的Spring源码)

阅读更多

  昨天突发奇想,在网上下载了Spring-2.5的源码下来,很失望,可能它比Maven早出世很久吧,它并不是用Maven建的项目,简单看了下,是用Eclipse开发的,与俺用的Netbeans又是不同,烦,于是发狠自己要把Spring的源码接到Maven下,方便自己查看(我共享到到本文附件里了,有需要的人可以下载下来看看)。

 

  刚开始的时候很傻很天真,居然想要自己一个一个找出Spring所有的Dependency,找了十几个,开始意识到这不是办法了,因为实在太多,没想到Spring居然要依赖这么多的包,看来功能强大也与用的包多有关啊!

 

  后来想了想,应该可以在网上找到它所有的依赖的,没多久就找到了,就在mvn-repository.com找到了,全部都在,版本号,GroupId, ArtifactId,所有都有,就差一个Scope,不过,这Scope应该可以猜出来,因为除了你用Spring必须加载的那些包(这些在网上很多Spring教程都有提到),其它的的包的Scope应该都是Provide,暂且这么认为吧。

 

  下面让我们来看看集成的Pom的Dependency列表吧,希望对某些人有用,也希望研究过Spring源码的高手们可以出来指点指点,评论评论,让咱这些新手见识下

<dependencies>
    <dependency>
      <groupId>aopalliance</groupId>
      <artifactId>aopalliance</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>2.2.3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-commons</artifactId>
      <version>2.2.3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-util</artifactId>
      <version>2.2.3</version>
    </dependency>
    <dependency>
      <groupId>backport-util-concurrent</groupId>
      <artifactId>backport-util-concurrent</artifactId>
      <version>3.0</version>
    </dependency>
    <dependency>
      <groupId>c3p0</groupId>
      <artifactId>c3p0</artifactId>
      <version>0.9.1.2</version>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <version>2.1_3</version>
    </dependency>
    <dependency>
      <groupId>com.bea.wlplatform</groupId>
      <artifactId>commonj-twm</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>com.experlog</groupId>
      <artifactId>xapool</artifactId>
      <version>1.5.0</version>
    </dependency>
    <dependency>
      <groupId>com.jamonapi</groupId>
      <artifactId>jamon</artifactId>
      <version>2.4</version>
    </dependency>
    <dependency>
      <groupId>com.lowagie</groupId>
      <artifactId>itext</artifactId>
      <version>2.0.7</version>
    </dependency>
    <dependency>
      <groupId>com.oracle.toplink</groupId>
      <artifactId>toplink</artifactId>
      <version>10.1.3</version>
    </dependency>
    <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>oc4j</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>toplink-essentials</artifactId>
      <version>2.4.1</version>
    </dependency>
    <dependency>
      <groupId>commons-attributes</groupId>
      <artifactId>commons-attributes-api</artifactId>
      <version>2.2</version>
    </dependency>
    <dependency>
      <groupId>commons-attributes</groupId>
      <artifactId>commons-attributes-compiler</artifactId>
      <version>2.2</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.7.0</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>
    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>1.2.2</version>
    </dependency>
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
    </dependency>
    <dependency>
      <groupId>commons-pool</groupId>
      <artifactId>commons-pool</artifactId>
      <version>1.3</version>
    </dependency>
    <dependency>
      <groupId>freemarker</groupId>
      <artifactId>freemarker</artifactId>
      <version>2.3.12</version>
    </dependency>
    <dependency>
      <groupId>groovy</groupId>
      <artifactId>groovy</artifactId>
      <version>1.5.5</version>
    </dependency>
    <dependency>
      <groupId>hessian</groupId>
      <artifactId>hessian</artifactId>
      <version>3.1.3</version>
    </dependency>
    <dependency>
      <groupId>jasperreports</groupId>
      <artifactId>jasperreports</artifactId>
      <version>2.0.5</version>
    </dependency>
    <dependency>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>javax.ejb</groupId>
      <artifactId>ejb</artifactId>
      <version>3.0</version>
    </dependency>
    <dependency>
      <groupId>javax.faces</groupId>
      <artifactId>jsf-api</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>javax.jdo</groupId>
      <artifactId>jdo2-api</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>javax.jms</groupId>
      <artifactId>jms</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
    </dependency>
    <dependency>
      <groupId>javax.persistence</groupId>
      <artifactId>persistence-api</artifactId>
      <version>1.0</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.servlet</groupId>
      <artifactId>jsp-api</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.1.0</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
    </dependency>
    <dependency>
      <groupId>javax.transaction</groupId>
      <artifactId>jta</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>javax.xml</groupId>
      <artifactId>jaxrpc-api</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>jexcelapi</groupId>
      <artifactId>jxl</artifactId>
      <version>2.6.6</version>
    </dependency>
    <dependency>
      <groupId>jotm</groupId>
      <artifactId>jotm</artifactId>
      <version>2.0.10</version>
    </dependency>
    <dependency>
      <groupId>jruby</groupId>
      <artifactId>jruby-bin</artifactId>
      <version>1.0.1</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.15</version>
    </dependency>
    <dependency>
      <groupId>net.sf.ehcache</groupId>
      <artifactId>ehcache</artifactId>
      <version>1.4.1</version>
    </dependency>
    <dependency>
      <groupId>opensymphony</groupId>
      <artifactId>quartz-all</artifactId>
      <version>1.6.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.axis</groupId>
      <artifactId>axis</artifactId>
      <version>1.4</version>
    </dependency>
    <dependency>
      <groupId>org.apache.ibatis</groupId>
      <artifactId>ibatis-sqlmap</artifactId>
      <version>2.3.0.677</version>
    </dependency>
    <dependency>
      <groupId>org.apache.ibatis</groupId>
      <artifactId>ibatis-sqlmap</artifactId>
      <version>2.3.0.677</version>
    </dependency>
    <dependency>
      <groupId>org.apache.tiles</groupId>
      <artifactId>tiles-api</artifactId>
      <version>2.0.5</version>
    </dependency>
    <dependency>
      <groupId>org.apache.tiles</groupId>
      <artifactId>tiles-core</artifactId>
      <version>2.0.5</version>
    </dependency>
    <dependency>
      <groupId>org.apache.tiles</groupId>
      <artifactId>tiles-jsp</artifactId>
      <version>2.0.5</version>
    </dependency>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.6.0</version>
    </dependency>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjweaver</artifactId>
      <version>1.6.0</version>
    </dependency>
    <dependency>
      <groupId>org.beanshell</groupId>
      <artifactId>bsh</artifactId>
      <version>2.0b4</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.2.6.ga</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-entitymanager</artifactId>
      <version>3.3.2.ga</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-entitymanager</artifactId>
      <version>3.3.2.ga</version>
    </dependency>
    <dependency>
      <groupId>poi</groupId>
      <artifactId>poi</artifactId>
      <version>3.0.1-FINAL</version>
    </dependency>
    <dependency>
      <groupId>struts</groupId>
      <artifactId>struts</artifactId>
      <version>1.2.9</version>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
    </dependency>
    <dependency>
      <groupId>tomcat</groupId>
      <artifactId>catalina</artifactId>
      <version>5.5.23</version>
    </dependency>
    <dependency>
      <groupId>velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>1.5</version>
    </dependency>
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools-generic</artifactId>
      <version>1.4</version>
    </dependency>
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools-view </artifactId>
      <version>1.4</version>
    </dependency>
  </dependencies>
 

 

分享到:
评论
2 楼 qchong 2008-11-10  
无聊的人...
1 楼 Gavin.Chen 2008-10-26  
另外,还有一个值得一提的就是Spring-2.5的Package数量,写了个小程序去算了下并全部列了出来,居然有170多个,自己又见世面了,在此列出给大家看看,就是现在还不知它那些包都有啥用,不知有没人晓得,粗略讲讲给大伙听听

org.springframework
org.springframework.aop
org.springframework.aop.aspectj
org.springframework.aop.aspectj.autoproxy
org.springframework.aop.config
org.springframework.aop.framework
org.springframework.aop.framework.adapter
org.springframework.aop.framework.autoproxy
org.springframework.aop.framework.autoproxy.target
org.springframework.aop.interceptor
org.springframework.aop.scope
org.springframework.aop.support
org.springframework.aop.target
org.springframework.aop.target.dynamic

org.springframework.beans
org.springframework.beans.factory
org.springframework.beans.factory.access
org.springframework.beans.factory.config
org.springframework.beans.factory.parsing
org.springframework.beans.factory.support
org.springframework.beans.factory.wiring
org.springframework.beans.factory.xml
org.springframework.beans.propertyeditors
org.springframework.beans.support

org.springframework.cache
org.springframework.cache.ehcache

org.springframework.context
org.springframework.context.access
org.springframework.context.config
org.springframework.context.event
org.springframework.context.i18n
org.springframework.context.support

org.springframework.core
org.springframework.core.enums
org.springframework.core.io
org.springframework.core.io.support
org.springframework.core.style
org.springframework.core.task
org.springframework.core.task.support

org.springframework.dao
org.springframework.dao.support

org.springframework.ejb
org.springframework.ejb.access
org.springframework.ejb.config
org.springframework.ejb.support

org.springframework.jca
org.springframework.jca.cci
org.springframework.jca.cci.connection
org.springframework.jca.cci.core
org.springframework.jca.cci.core.support
org.springframework.jca.cci.object
org.springframework.jca.context
org.springframework.jca.endpoint
org.springframework.jca.support
org.springframework.jca.work

org.springframework.jdbc
org.springframework.jdbc.core
org.springframework.jdbc.core.namedparam
org.springframework.jdbc.core.support
org.springframework.jdbc.datasource
org.springframework.jdbc.datasource.lookup
org.springframework.jdbc.object
org.springframework.jdbc.support
org.springframework.jdbc.support.incrementer
org.springframework.jdbc.support.lob
org.springframework.jdbc.support.nativejdbc
org.springframework.jdbc.support.rowset

org.springframework.jms
org.springframework.jms.config
org.springframework.jms.connection
org.springframework.jms.core
org.springframework.jms.core.support
org.springframework.jms.listener
org.springframework.jms.listener.adapter
org.springframework.jms.listener.endpoint
org.springframework.jms.listener.serversession
org.springframework.jms.remoting
org.springframework.jms.support
org.springframework.jms.support.converter
org.springframework.jms.support.destination

org.springframework.jmx
org.springframework.jmx.access
org.springframework.jmx.export
org.springframework.jmx.export.assembler
org.springframework.jmx.export.metadata
org.springframework.jmx.export.naming
org.springframework.jmx.export.notification
org.springframework.jmx.support

org.springframework.jndi
org.springframework.jndi.support

org.springframework.mail
org.springframework.mail.javamail

org.springframework.metadata
org.springframework.metadata.commons

org.springframework.orm
org.springframework.orm.hibernate3
org.springframework.orm.hibernate3.support
org.springframework.orm.ibatis
org.springframework.orm.ibatis.support
org.springframework.orm.jdo
org.springframework.orm.jdo.support
org.springframework.orm.toplink
org.springframework.orm.toplink.support

org.springframework.remoting
org.springframework.remoting.caucho
org.springframework.remoting.httpinvoker
org.springframework.remoting.jaxrpc
org.springframework.remoting.jaxrpc.support
org.springframework.remoting.rmi
org.springframework.remoting.soap
org.springframework.remoting.support

org.springframework.scheduling
org.springframework.scheduling.backportconcurrent
org.springframework.scheduling.commonj
org.springframework.scheduling.quartz
org.springframework.scheduling.support
org.springframework.scheduling.timer

org.springframework.scripting
org.springframework.scripting.bsh
org.springframework.scripting.config
org.springframework.scripting.groovy
org.springframework.scripting.jruby
org.springframework.scripting.support

org.springframework.transaction
org.springframework.transaction.config
org.springframework.transaction.interceptor
org.springframework.transaction.jta
org.springframework.transaction.support

org.springframework.ui
org.springframework.ui.context
org.springframework.ui.context.support
org.springframework.ui.freemarker
org.springframework.ui.jasperreports
org.springframework.ui.velocity

org.springframework.util
org.springframework.util.comparator
org.springframework.util.xml

org.springframework.validation

org.springframework.web
org.springframework.web.bind
org.springframework.web.bind.support
org.springframework.web.context
org.springframework.web.context.request
org.springframework.web.context.support
org.springframework.web.filter
org.springframework.web.jsf
org.springframework.web.multipart
org.springframework.web.multipart.commons
org.springframework.web.multipart.support
org.springframework.web.portlet
org.springframework.web.portlet.bind
org.springframework.web.portlet.context
org.springframework.web.portlet.handler
org.springframework.web.portlet.multipart
org.springframework.web.portlet.mvc
org.springframework.web.portlet.util
org.springframework.web.servlet
org.springframework.web.servlet.handler
org.springframework.web.servlet.handler.metadata
org.springframework.web.servlet.i18n
org.springframework.web.servlet.mvc
org.springframework.web.servlet.mvc.multiaction
org.springframework.web.servlet.mvc.support
org.springframework.web.servlet.mvc.throwaway
org.springframework.web.servlet.support
org.springframework.web.servlet.tags
org.springframework.web.servlet.tags.form
org.springframework.web.servlet.theme
org.springframework.web.servlet.view
org.springframework.web.servlet.view.document
org.springframework.web.servlet.view.freemarker
org.springframework.web.servlet.view.jasperreports
org.springframework.web.servlet.view.tiles
org.springframework.web.servlet.view.velocity
org.springframework.web.servlet.view.xslt
org.springframework.web.struts
org.springframework.web.util

相关推荐

    jasypt-spring-boot-starter 3.0.5依赖的pom及jar

    《深入解析jasypt-spring-boot-starter 3.0.5依赖的POM与JAR》 在Java开发领域,构建和管理依赖是至关重要的环节。jasypt-spring-boot-starter是一个流行的安全库,它允许开发者在Spring Boot应用中轻松地实现加密...

    Spring-Framework-5.2.x Maven版本

    在这个版本中,Spring Framework与Maven集成,使得开发者能够更方便地管理项目依赖,同时也便于对源码进行学习和调试。 **1. Maven集成** Maven是Apache基金会开发的项目管理工具,它通过XML配置管理项目的依赖...

    Spring-Framework-5.1.x 源码注释maven版本

    在Spring Framework 5.1.x的maven版本中,所有必要的库和依赖关系都被定义在pom.xml文件中,使得在IntelliJ IDEA这样的集成开发环境中,可以轻松地导入和构建项目。 IntelliJ IDEA 是JetBrains公司推出的一款强大的...

    spring-context-support-5.0.5.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-context-support-5.0.5.RELEASE.pom; 包含翻译后的API文档:spring-context-support-5.0.5.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-...

    009 maven插件spring-boot-maven-plugin

    &lt;artifactId&gt;spring-boot-maven-plugin ``` 继承 Starter 父 POM Spring Boot 提供了一个 Starter 父 POM,用于简化 Spring Boot 项目的构建过程。该 POM 包含了许多有用的依赖项和配置,例如 Spring Boot ...

    spring-data-commons-2.5.5-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-data-commons-2.5.5.pom; 包含翻译后的API文档:spring-data-commons-2.5.5-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.data:spring-data-commons:2.5.5;...

    spring-data-commons-2.0.6.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-data-commons-2.0.6.RELEASE.pom; 包含翻译后的API文档:spring-data-commons-2.0.6.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.data:spring-data...

    spring-context-support-1.0.10-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-context-support-1.0.10.pom; 包含翻译后的API文档:spring-context-support-1.0.10-javadoc-API文档-中文(简体)版.zip; Maven坐标:...

    spring-framework-3.2.4-RELEASE Maven Source Code

    通过此文件,开发者可以方便地管理Spring Framework与其他库的依赖关系,实现项目的构建和打包。 - **Maven生命周期**:Maven拥有如clean、compile、test、package等预定义的生命周期阶段,使得构建过程标准化,...

    spring-data-keyvalue-2.3.9.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-data-keyvalue-2.3.9.RELEASE.pom; 包含翻译后的API文档:spring-data-keyvalue-2.3.9.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.data:spring-...

    spring-security-crypto-5.5.2-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-security-crypto-5.5.2.pom; 包含翻译后的API文档:spring-security-crypto-5.5.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.security:spring-security-...

    spring-security-crypto-5.6.1-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-security-crypto-5.6.1.pom; 包含翻译后的API文档:spring-security-crypto-5.6.1-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.security:spring-security-...

    spring-security-core-5.3.9.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-security-core-5.3.9.RELEASE.pom; 包含翻译后的API文档:spring-security-core-5.3.9.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.security:...

    springfox-spring-web-2.9.2-API文档-中文版.zip

    赠送Maven依赖信息文件:springfox-spring-web-2.9.2.pom; 包含翻译后的API文档:springfox-spring-web-2.9.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:io.springfox:springfox-spring-web:2.9.2; 标签:...

    spring-data-commons-2.0.9.RELEASE-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-data-commons-2.0.9.RELEASE.pom; 包含翻译后的API文档:spring-data-commons-2.0.9.RELEASE-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework.data:...

    seata-spring-boot-starter-1.3.0-API文档-中文版.zip

    赠送Maven依赖信息文件:seata-spring-boot-starter-1.3.0.pom; 包含翻译后的API文档:seata-spring-boot-starter-1.3.0-javadoc-API文档-中文(简体)版.zip; Maven坐标:io.seata:seata-spring-boot-starter:1.3.0...

    spring-context-support-5.3.15-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-context-support-5.3.15.pom; 包含翻译后的API文档:spring-context-support-5.3.15-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-context...

    spring-boot-starter-parent-1.5.13.RELEASE.zip

    标题 "spring-boot-starter-parent-1.5.13.RELEASE.zip" 提供的信息表明,这是一个与Spring Boot相关的压缩包,具体来说是Spring Boot的起步依赖(Starter Parent)的一个版本,版本号为1.5.13.RELEASE。Spring Boot...

    Spring源码编译缺少的两个包:spring-cglib-repack-3.2.0.jar和spring-objenesis-repack-2.2.jar

    - 在命令行中导航到源码根目录。 - 运行构建命令,如`mvn clean install`或`gradle build`。 - 如果遇到类路径错误,确保已经添加了spring-cglib-repack-3.2.0.jar和spring-objenesis-repack-2.2.jar到你的构建...

    spring-session-data-redis-2.0.4.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-session-data-redis-2.0.4.RELEASE.pom; 包含翻译后的API文档:spring-session-data-redis-2.0.4.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework....

Global site tag (gtag.js) - Google Analytics