Yes, the way you have described it is precisely what I'd like to accomplish,
ideally. It works with when the type of the produced archive is WAR (it
shows up in WEB-INF/lib) as opposed to JAR - is it even possible with JAR?

Also, to clarify, would I have to specify type=pom in two places? One being
the pom project itself that contains only a listing of dependencies in the
pom.xml and nothing else, and the other being in the dependency tag of the
WAR/JAR project that points to the previous project?

Thanks.



Wayne Fay wrote:
> 
> I think he was expecting that his "produced JAR" would have all the
> other 100 jars (that he depended upon transitively) bundled inside it.
> 
> Is that what you want? Or what?
> 
> Wayne
> 
> On 5/10/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>> On 5/10/07, lightbulb432 <[EMAIL PROTECTED]> wrote:
>>
>> > How can I create a project for the sole purpose of its pom.xml serving
>> as
>> a
>> > place to organize several dependencies. For example, if I have a main
>> > project that depends on 100 JARs, could I get this main project to
>> depend
>> on
>> > 4-5 subprojects whose sole purpose is to specify a subset of those
>> JARs?
>> >
>> > Then when I go to package or deploy the main project, all 100 JARs are
>> > included.
>> >
>> > How can I make this possible? I tried to have a JAR project depend on a
>> POM
>> > project but this didn't work - the produced JAR came out empty...
>>
>> How big is this module that depends on 100 jars?  Could it benefit
>> from being broken up in to multiple modules, each with a smaller set
>> of dependencies?
>>
>> Yes, you can depend on a pom that lists dependencies, and take
>> advantage of Maven's transitive dependency resolution mechanism.  Use
>> type=pom in the dependency element.
>>
>> You'll have to explain further what you tried that produced an empty
>> jar.  If it wasn't working, I'd expect a compilation error, not an
>> empty jar.
>>
>> --
>> Wendy
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Create-a-project-for-its-dependencies-tf3723605s177.html#a10421659
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to