On Oct 16, 2008, at 12:39 PM, Gilles Scokart wrote:

Even if you have a single jar, that can work.  To continue with you
example of "hibernate.jar" with a withEHCache and
withDistributedTransactions configuration, you could have 3 modules
generated.  One will be the hibernate-core which will be a classical
pom with an artefact (and probably the common dependencies).  The 2
others would be hibernate-withEHCache and
hibernate-withDistributedTransactions, each being pure poms, with
their specific dependencies and with a compile dependencies to
hibernate-core.

Interesting. For me to understand:

The hibernate-withEHCache pom would look like:

<project>
<packaging>pom</packaging>
...

A project using this module would do:

<dependency>
   <artifactId>hibernate-withEHCache</artifactId>
   <type>pom</type>
<dependency>

So Maven works in a way that it put's the transitive dependencies of a pom dependency in the classpath?

In a Maven war project you will probably end up with pom file in the libs folder :)

<snip>

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

Reply via email to