Hi!

I'd like to know if there is any elegant way to avoid defining the
dependencies of the dependencies.

E.g. My project depends on xdoclet but xdoclet depends on commons-logging
and commons-collections, so I must include dependencies to every xdoclet jar
and both commons jars

      <!-- XDoclet dependencies -->
      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xjavadoc</artifactId>
         <version>1.0.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet</artifactId>
         <version>1.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet-xdoclet-module</artifactId>
         <version>1.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet-ejb-module</artifactId>
         <version>1.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet-web-module</artifactId>
         <version>1.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet-jmx-module</artifactId>
         <version>1.2</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <dependency>
         <groupId>xdoclet</groupId>
         <artifactId>xdoclet-jboss-module</artifactId>
         <version>1.2b4</version>
         <url>http://xdoclet.sourceforge.net</url>
      </dependency>

      <!-- Jakarta Commons Dependencies -->
      <dependency>
         <groupId>commons-collections</groupId>
         <artifactId>commons-collections</artifactId>
         <version>2.1</version>
         <url>http://jakarta.apache.org/commons</url>
      </dependency>

      <dependency>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.3</version>
         <url>http://jakarta.apache.org/commons</url>
      </dependency>


What I have done is save this in a separate xml file and include it in
project.xml with a standard xml include. That cleans the code a bit.

It would be easier if every jar had some kind of metadata to define
dependencies (maybe its maven project file?) ;)

Thanks in advance



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to