It will be solved (as much as possible) when
http://jira.codehaus.org/browse/MEV-133 is solved.
Take also into account that some of the spring jars depend in a lot of
stuff so there's no easy way to do some things without splitting more
the jars.

On 11/4/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:
> Just to set up a simple test that queries Hibernate from a Spring MVC
> controller (using the spring-mock package), I need to define this:
>
>                 <dependency>
>                         <artifactId>spring-webmvc</artifactId>
>                         <groupId>springframework</groupId>
>                         <version>1.2.5</version>
>                 </dependency>
>
>                 <dependency>
>                         <artifactId>junit</artifactId>
>                         <groupId>junit</groupId>
>                         <version>3.8.1</version>
>                         <scope>test</scope>
>                 </dependency>
>
>                 <dependency>
>                         <artifactId>geronimo-spec-jta</artifactId>
>                         <groupId>geronimo-spec</groupId>
>                         <version>1.0-M1</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <artifactId>spring-hibernate</artifactId>
>                         <groupId>springframework</groupId>
>                         <version>1.2.5</version>
>                         <exclusions>
>                                 <exclusion>
>                                         <artifactId>toplink-api</artifactId>
>                                         <groupId>com.oracle</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>jacc</artifactId>
>                                         <groupId>javax.security</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>ejb</artifactId>
>                                         <groupId>javax.persistence</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>jdo</artifactId>
>                                         <groupId>javax.jdo</groupId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
>                 <dependency>
>                         <artifactId>spring-mock</artifactId>
>                         <groupId>springframework</groupId>
>                         <version>1.2.5</version>
>                         <exclusions>
>                                 <exclusion>
>                                         <artifactId>jta</artifactId>
>                                         <groupId>javax.transaction</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>jdbc-stdext</artifactId>
>                                         <groupId>javax.sql</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>jsf-api</artifactId>
>                                         <groupId>javax.faces</groupId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
>
> To get the following on my classpath:
>
> <classpathentry kind="var"
> path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-orm/1.2.5/spring-orm-1.2.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/jgroups/jgroups-all/2.2.7/jgroups-
> all-2.2.7.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/com/ibatis/ibatis-common/1.3.1/ibatis-common-1.3.1.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/jboss/jboss-common/4.0.2/jboss-
> common-4.0.2.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/jboss/jboss-cache/1.2.2/jboss-
> cache-1.2.2.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-
> logging-1.0.4.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/velocity-tools/velocity-tools-generic/1.1/velocity-
> tools-generic-1.1.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/freemarker/freemarker/2.3.3/freemarker-2.3.3.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/cglib/cglib/2.0.2/cglib-2.0.2.jar
> "/>
>
> <classpathentry kind="var" path="M2_REPO/com/experlog/xapool/1.5.0/xapool-
> 1.5.0.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/jboss/jboss-minimal/4.0.2/jboss-
> minimal-4.0.2.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/jboss/jboss-j2se/200504122039/jboss-j2se-200504122039.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/portlet-api/portlet-api/1.0/portlet-api-1.0.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/poi/poi/2.5.1-final-20040804/poi-
> 2.5.1-final-20040804.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/com/servlets/cos/05Nov2002/cos-
> 05Nov2002.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/logkit/logkit/1.0.1/logkit-
> 1.0.1.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/odmg/odmg/3.0/odmg-3.0.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/myfaces/myfaces-jsf-api/1.0.8-beta/myfaces-
> jsf-api-1.0.8-beta.jar"/>
>
> <classpathentry kind="var"
> path="M2_REPO/commons-dbcp/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar"/>
>
> <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.0/jstl-1.0.jar
> "/>
>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-context/1.2.5/spring-context-1.2.5.jar
> "/>
> <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/2.0.2/xml-
> apis-2.0.2.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-mock/1.2.5/spring-mock-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/net/sf/hibernate/hibernate/2.1.8/hibernate-2.1.8.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/velocity-tools/velocity-tools-view/1.1/velocity-
> tools-view-1.1.jar"/>
> <classpathentry kind="var" path="M2_REPO/com/jamonapi/jamon/1.0/jamon-
> 1.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-dao/1.2.5/spring-dao-1.2.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/c3p0/c3p0/0.9.0/c3p0-0.9.0.jar"/>
> <classpathentry kind="var" path="M2_REPO/velocity/velocity-dep/1.4/velocity-
> dep-1.4.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-attributes/commons-attributes-compiler/2.1/commons-
> attributes-compiler-2.1.jar"/>
> <classpathentry kind="var" path="M2_REPO/asm/asm/1.4.3/asm-1.4.3.jar"/>
> <classpathentry kind="var" path="M2_REPO/jboss/jboss-system/4.0.2/jboss-
> system-4.0.2.jar"/>
> <classpathentry kind="var" path="M2_REPO/velocity/velocity/1.4/velocity-
> 1.4.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-collections/commons-collections/2.1.1/commons-
> collections-2.1.1.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-
> validator-1.1.4.jar"/>
> <classpathentry kind="var" path="M2_REPO/jotm/jotm/2.0.10/jotm-2.0.10.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-chain/commons-chain/1.0/commons-chain-1.0.jar"/>
> <classpathentry kind="var" path="M2_REPO/itext/itext/1.3/itext-1.3.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-pool/commons-pool/1.2/commons-pool-1.2.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/com/ibatis/ibatis2-sqlmap/2.1.5.582/ibatis2-
> sqlmap-2.1.5.582.jar"/>
> <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.2/antlr-2.7.2.jar
> "/>
> <classpathentry kind="var" path="M2_REPO/xerces/xerces/2.0.2/xerces-
> 2.0.2.jar"/>
> <classpathentry kind="var" path="M2_REPO/ojb/db-ojb/1.0.3/db-ojb-1.0.3.jar
> "/>
> <classpathentry kind="var"
> path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/com/ibatis/ibatis-sqlmap/1.3.1/ibatis-sqlmap-1.3.1.jar"/>
> <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar
> "/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-beans/1.2.5/spring-beans-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/org/hibernate/hibernate/3.0.5/hibernate-3.0.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/javax/servlet/jsp-api/2.0/jsp-
> api-2.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/swarmcache/swarmcache/1.0RC2/swarmcache-1.0RC2.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-
> beanutils-1.7.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-webmvc/1.2.5/spring-webmvc-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/avalon-framework/avalon-framework/4.1.3/avalon-
> framework-4.1.3.jar"/>
> <classpathentry kind="var" path="M2_REPO/proxool/proxool/0.8.3/proxool-
> 0.8.3.jar"/>
> <classpathentry kind="var" path="M2_REPO/taglibs/standard/1.0.6/standard-
> 1.0.6.jar"/>
> <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.6/log4j-1.2.6.jar
> "/>
> <classpathentry kind="var"
> path="M2_REPO/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
> "/>
> <classpathentry kind="var"
> path="M2_REPO/jasperreports/jasperreports/1.0.2/jasperreports-1.0.2.jar"/>
> <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-
> fileupload-1.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-web/1.2.5/spring-web-1.2.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/struts/struts/1.2.7/struts-
> 1.2.7.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-aop/1.2.5/spring-aop-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/net/sourceforge/jexcelapi/jxl/2.5.7/jxl-2.5.7.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/commons-attributes/commons-attributes-api/2.1/commons-
> attributes-api-2.1.jar"/>
> <classpathentry kind="var" path="M2_REPO/qdox/qdox/1.5/qdox-1.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6/dom4j-1.6.jar"/>
> <classpathentry kind="var" path="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1.jar
> "/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-core/1.2.5/spring-core-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/org/hibernate/hibernate-annotations/3.0beta2/hibernate-
> annotations-3.0beta2.jar"/>
> <classpathentry kind="var" path="M2_REPO/opensymphony/oscache/2.1/oscache-
> 2.1.jar"/
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-hibernate/1.2.5/spring-
> hibernate-1.2.5.jar"/>
> <classpathentry kind="var" path="M2_REPO/hibernate/antlr/2.7.5H3/antlr-
> 2.7.5H3.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/springframework/spring-jdbc/1.2.5/spring-jdbc-1.2.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-
> spec-jta-1.0-M1.jar"/>
> <classpathentry kind="var" path="M2_REPO/ant/ant/1.5/ant-1.5.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/C:/dev/Java/jdk1.5.0_04/jre/../lib/tools.jar"/>
> </classpath>
>
>
> ... which is definitely way too much. With M2 I am getting the impression to
> handle more exclusions than dependencies. Is there a way to set at least
> some default exlusions for artifacts? Right now, this stuff is unmanageable.
>
>
> Thomas
>
> On 11/4/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> >
> > That's not right, the poms are exactly the same to build and to use.
> > If you need hibernate to build it it's because you may need it at
> > runtime.
> >
> > On 11/4/05, Brian Bonner <[EMAIL PROTECTED]> wrote:
> > > I don't think I asked before :). I'm not building Spring with it.
> > > I'm using various modules in a project. Using the modules and
> > > building the modules seem like they will have different dependencies.
> > > With the building requiring more dependencies and the latter requiring
> > > fewer based on what portions of the module are exercised.
> > >
> > > I would think that the modules internal pom (not the one in ibiblio)
> > > would have the dependencies necessary to build it while ibiblio would
> > > store the dependencies necessary to use it. That's my current
> > > understanding.
> > >
> > > I'm happy to try them out after you think they're good.
> > >
> > > Thanks.
> > >
> > > Brian
> > > On 11/4/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > You may have asked before. As you see in the issue it's in progress,
> > > > I'm building spring with m2 so I'll have the right poms soon. I could
> > > > send you mines and get your feedback.
> > > >
> > > > Regards
> > > >
> > > > On 11/4/05, Brian Bonner <[EMAIL PROTECTED]> wrote:
> > > > > I made a couple of others, too. Hopefully Carlos will get this
> > > > > dropped into ibiblio soon :)
> > > > >
> > > > > Brian
> > > > > On 11/4/05, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Thanks for your corrections.
> > > > > >
> > > > > > Brian Bonner a �crit :
> > > > > >
> > > > > > >Nicolas, nice work. I'm adding to it the pom for spring-orm and
> > > > > > >spring-webmvc and made a correction to spring-web (changed
> > povided to
> > > > > > >provided).
> > > > > > >
> > > > > > >I'm unclear why spring-dao is dependent upon spring-webmvc. Any
> > thoughts?
> > > > > > >
> > > > > > >It looks like spring-support is the only one left.
> > > > > > >
> > > > > > >I'm hoping that If we fix these and use spring-full it will only
> > pull
> > > > > > >in the "required" libraries. Your thoughts?
> > > > > > >
> > > > > > >Thanks,
> > > > > > >
> > > > > > >Brian
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >On 11/4/05, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > >
> > > > > > >>You may take a look at http://jira.codehaus.org/browse/MEV-133
> > > > > > >>I've setup poms for spring 1.2.5 to make all the tools spring
> > supports
> > > > > > >>optionnal and reduce transitive dependencies to expected ones.
> > > > > > >>
> > > > > > >>Brian Bonner a �crit :
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >>>I'm working with Spring 1.2.5 and retrofitting an older
> > application
> > > > > > >>>that makes use of spring-jdbc and spring-dao. I'm curious how
> > other
> > > > > > >>>folks are using this because I have exclusions out the
> > ying-yang.
> > > > > > >>>
> > > > > > >>>I'd like to make some suggestions of jars that should be
> > optional.
> > > > > > >>>I'm even happy to post my dependencies in MEV if they would
> > help.
> > > > > > >>>
> > > > > > >>>It's my understanding that if we added
> > <optional>true</optional> to
> > > > > > >>>the poms makes the jars optional. But this only applies for
> > projects
> > > > > > >>>that are dependent upon that component, correct?
> > > > > > >>>
> > > > > > >>>How are other people using this?
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>Here's what I have:
> > > > > > >>>
> > > > > > >>>* xmlbeans-project
> > > > > > >>>* service-project (uses spring)
> > > > > > >>>* web-project (depends on service-project and xmlbeans-project)
> > and
> > > > > > >>>adds some other spring dependency as well as others.
> > > > > > >>>
> > > > > > >>>Right now, when I war up the web-project, I get the needed
> > > > > > >>>dependencies in the service-project for it to run, but there
> > are a ton
> > > > > > >>>of them defined (and it seems like most of them are exclusions)
> > I
> > > > > > >>>guess I'd rather add things as they fail rather than have 20
> > billion
> > > > > > >>>jars.
> > > > > > >>>
> > > > > > >>>Thoughts?
> > > > > > >>>
> > > > > > >>>Brian
> > > > > > >>>
> > > > > >
> > >>>---------------------------------------------------------------------
> > > > > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>This message contains information that may be privileged or
> > confidential and is the property of the Capgemini Group. It is intended only
> > for the person to whom it is addressed. If you are not the intended
> > recipient, you are not authorized to read, print, retain, copy, disseminate,
> > distribute, or use this message or any part thereof. If you receive this
> > message in error, please notify the sender immediately and delete all copies
> > of this message.
> > > > > > >>
> > > > > > >>
> > > > > >
> > >>---------------------------------------------------------------------
> > > > > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > >
> > >---------------------------------------------------------------------
> > > > > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > This message contains information that may be privileged or
> > confidential and is the property of the Capgemini Group. It is intended only
> > for the person to whom it is addressed. If you are not the intended
> > recipient, you are not authorized to read, print, retain, copy, disseminate,
> > distribute, or use this message or any part thereof. If you receive this
> > message in error, please notify the sender immediately and delete all copies
> > of this message.
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

Reply via email to