Do you use maven 1 or 2 ? Transitive dependencies aren't supported in maven 1. Thus if you have a project A which uses an artifact B and if this artifact B needs an artifact C, you should declare the dependency for C in the project A.
Arnaud > -----Message d'origine----- > De : Jeroen Verhagen [mailto:[EMAIL PROTECTED] > Envoyé : dimanche 18 septembre 2005 16:45 > À : [email protected] > Objet : newbie problem downloading depenencies > > Hi all, > > I'm trying to use Maven on a project using the Spring > framework so I added this dependency to my project.xml: > > > <dependency> > <groupId>springframework</groupId> > <artifactId>spring</artifactId> > <version>1.2.4</version> > </dependency> > > However when I run the program I get the following error: > > [java] Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/logging/LogFactory > > Why is the commons-jar on which Spring is dependent not > downloaded automatically? > > I noticed that the maven repository does not contain a pom for version > 1.2.4 only for 1.1.2. Are the poms not necessary for > downloading the other jars on which a jar is dependent? (I > tried moving to Spring version 1.1.2 but that didn't solve > the problem) > > Thanks and regards, > > Jeroen > > --------------------------------------------------------------------- > 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]
