ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Dockter <m...@dockter.biz>
Subject Re: Deploying to a Maven Repo with Ivy
Date Mon, 27 Oct 2008 13:21:24 GMT

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

> 2008/10/16 Hans Dockter <mail@dockter.biz>:
>>
>> 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>
>>
>
> I'm not sure <type>pom</type> would be required.  I hope not.

Basically things seem to work as you have described. But you have to  
specify the pom type.

See: http://www.sonatype.com/book/reference/pom- 
relationships.html#d0e11266

- Hans

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





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message