Re: [m2] POM Inheritance

2007-02-28 Thread jp4
This is exactly what I was looking for. I didn't realize that you could include a pom as a dependency. This makes things much cleaner. Thanks again, jp4 Eric Redmond wrote: > > Abstract it? I don't understand. The JDBC pom is just a seperate project. > Like this: > > JDBC POM: > > ... >

Re: [m2] POM Inheritance

2007-02-28 Thread Eric Redmond
Abstract it? I don't understand. The JDBC pom is just a seperate project. Like this: JDBC POM: ... my-jdbc-project pom ... add jdbc dependencies here, like mysql jdbc, or sqlserver jdbc ... Then, in your project that needs to use the jdbc drivers: ... my-jdbc-project

Re: [m2] POM Inheritance

2007-02-28 Thread John J. Franey
Will this work? I do not know. Introduce a third pom (the data access pom) as a new module of the original parent. The original parent pom remains unchanged except for the addition of the new data access pom module. The new data access pom declares data access dependencies. The data access m

Re: [m2] POM Inheritance

2007-02-28 Thread jp4
So how to you use this abstract jdbc pom file? Do you include it as a dependency in your data access modules?Do you use it as the parent of your data access modules? jp4 Eric Redmond wrote: > > Yeah, I do this quite a lot - for example, to abstract jdbc > implementations > across and or

Re: [m2] POM Inheritance

2007-02-28 Thread John J. Franey
Will this work? I do not know. Introduce a third pom (the data access pom) as a new module of the original parent. The original parent pom remains unchanged except for the addition of the new data access pom module. The new data access pom declares data access dependencies. The data access m

Fwd: [m2] POM Inheritance

2007-02-28 Thread Eric Redmond
woops, forgot to cc the group -- Forwarded message -- From: Eric Redmond <[EMAIL PROTECTED]> Date: Feb 28, 2007 11:53 AM Subject: Re: [m2] POM Inheritance To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> There's not much more to say about it. Create a pom.

Re: [m2] POM Inheritance

2007-02-28 Thread Eric Redmond
Yeah, I do this quite a lot - for example, to abstract jdbc implementations across and organization - all jars required go into a pom project called "jdbc". If you need to make an orthogonal change, just change jdbc's dependency list. Eric On 2/28/07, Thierry Lach <[EMAIL PROTECTED]> wrote: Is

Re: [m2] POM Inheritance

2007-02-28 Thread Thierry Lach
Is it possible to declare a pom as a dependency, so that its dependencies would be inherited? If that doesn't work, them maybe it should be added as an enhancement. On 2/27/07, jp4 <[EMAIL PROTECTED]> wrote: I wonder if it would make sense to create a project of type jar that does nothing mor

Re: [m2] POM Inheritance

2007-02-27 Thread jp4
I wonder if it would make sense to create a project of type jar that does nothing more than declare common dependencies like spring and hibernate. This way, by including a common data access jar file, all other data access modules would transitively include the spring and hibernate jars. Any tho

Re: [m2] POM Inheritance

2007-02-27 Thread jp4
I have been doing some reading and it looks like the section will allow me to achieve part of what I want to do with reusing plugin configurations. jp4 jp4 wrote: > > I have posted about this question several times before but haven't > received many responses. I am hoping that someone has d

Re: [m2] POM Inheritance

2007-02-22 Thread jp4
I still haven't found a good solution for this and I was hoping to spark some discussion with a follow up post. jp4 wrote: > > I was wondering if there is any way to achieve multiple pom inheritance > with maven. I have created several pom abstractions (i.e. data access > which includes depend

[m2] POM inheritance in a flat multiproject

2006-03-06 Thread Adrian Herscu
Hi all, I have this directory layout: projects parent-proj pom.xml sub-proj pom.xml In parent-proj/pom.xml I have defined ../sub-proj In sub-proj/pom.xml I have defined ... ../parent-proj This works only if the sub-proj has defined a

Re: [m2] POM inheritance

2005-05-18 Thread Brett Porter
ication (of the clarification ;-) > > > > Matthew > > > > > -Original Message- > > > From: John Casey [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, May 05, 2005 3:01 AM > > > To: Maven Users List > > > Subject: Re: [m2] POM in

Re: [m2] POM inheritance

2005-05-04 Thread Brett Porter
gt; Sent: Thursday, May 05, 2005 3:01 AM > > To: Maven Users List > > Subject: Re: [m2] POM inheritance > > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Alright, this is the part where I print a complete retraction > > of everything I jus

RE: [m2] POM inheritance

2005-05-04 Thread J. Matthew Pryor
ED] > Sent: Thursday, May 05, 2005 3:01 AM > To: Maven Users List > Subject: Re: [m2] POM inheritance > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alright, this is the part where I print a complete retraction > of everything I just emailed to the list... :)

Re: [m2] POM inheritance

2005-05-04 Thread John Casey
ent in the section for that >>>plugin. This allows users to specify local overrides without having to >>>deal with the accumulation of common settings which are wrong for the >>>local case but which are not overridden in the local POM. It also makes >>>the override mechani

Re: [m2] POM inheritance

2005-05-04 Thread John Casey
nfiguration'. If I am to reference the plugin, >>enough to invoke the configuration supplied in a parent , >>how do I do that without overriding the plugin's entire definition? > >>Also am I understanding correctly that setting are never >>inherited? > >>B

Re: [m2] POM inheritance

2005-04-27 Thread Brett Porter
t; >>Any local configuration for a given plugin will override the plugin's entire > >>definition here. > >> > >>So what constitutes 'local configuration'. If I am to reference the plugin, > >>enough to invoke the configuration supplied in a parent , &

Re: [m2] POM inheritance

2005-04-27 Thread Peter van de Hoef
[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 6:32 PM To: Maven Users List Subject: Re: [m2] POM inheritance Hi John, Thanks for your help. So is used for specifying plugin versions and configuration parameters, whether they are used or not. This will be inherited by child projects. The s

Re: [m2] POM inheritance

2005-04-27 Thread John Casey
re never > inherited? > > BTW I am making good progress writing all this up for the user docs. > Definitely need this clarification > > jmp > > >>-Original Message- >>From: Peter van de Hoef [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, April 2

RE: [m2] POM inheritance

2005-04-27 Thread J. Matthew Pryor
n jmp > -Original Message- > From: Peter van de Hoef [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 27, 2005 6:32 PM > To: Maven Users List > Subject: Re: [m2] POM inheritance > > Hi John, > > Thanks for your help. So is used for > specifying plugin v

Re: [m2] POM inheritance

2005-04-27 Thread Peter van de Hoef
That's all right, no problem. In that way I can add a small contribution to the great work you are doing! I will add some test files as attachment. John Casey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'll try to put together a test and fix whatever's causing this. Hate to say this agai

Re: [m2] POM inheritance

2005-04-27 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'll try to put together a test and fix whatever's causing this. Hate to say this again, but would you mind submitting a JIRA issue for it? :) That'll remind me. Peter van de Hoef wrote: > Hi John, > > Thanks for your help. So is used for specifying

Re: [m2] POM inheritance

2005-04-27 Thread Peter van de Hoef
Hi John, Thanks for your help. So is used for specifying plugin versions and configuration parameters, whether they are used or not. This will be inherited by child projects. The section is just a list of plugins that will actually be used. This list has to be repeated in a child project though

Re: [m2] POM inheritance

2005-04-26 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think those are perfect places to start, and we're working in xdoc. dunno if you're familiar with that from m1, but it's a modified version of html with some shorthands for document layout...let me know if you have questions. Brett, any other though

Re: [m2] POM inheritance

2005-04-26 Thread J. Matthew Pryor
Tell me when we should take this off-list, but are: # plugin management # plugin configuration safe areas to work? That is the basic topic we were discussing. Also what format should I work in? Cheers, jmp --- John Casey <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: S

Re: [m2] POM inheritance

2005-04-26 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've started writing a large-project management overview, and I'm queued up on the managedDependencies doc (I have a blog entry waiting to go out for when it's done ;) Beyond that, pleased to have the help! - -john Brett Porter wrote: >>Being practi

Re: [m2] POM inheritance

2005-04-26 Thread Brett Porter
> Being practical, out in the wild is out in the wild and no amount of hand > waving and beta-warning will prevent some people from forming impressions. > > I think it is fair to say that the importance of great documentation can't > be over-estimated so I'd be happy to help out anywhere it might

RE: [m2] POM inheritance

2005-04-26 Thread J. Matthew Pryor
> I actually am working on doco for the various management > features. I know this is vital, and it's not escaping in the > confusion. The documentation is coming, please bear with us. > This is still pre-beta software, after all... Totally understood, hence the offer of help. I very much appr

Re: [m2] POM inheritance

2005-04-26 Thread John Casey
rom: John Casey [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, April 27, 2005 8:14 AM >>To: Maven Users List >>Subject: Re: [m2] POM inheritance >> > > Sorry, I forgot all about the design decisions surrounding this... :) > > Actually, our original decision was t

RE: [m2] POM inheritance

2005-04-26 Thread J. Matthew Pryor
ril 27, 2005 8:14 AM > To: Maven Users List > Subject: Re: [m2] POM inheritance > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Sorry, I forgot all about the design decisions surrounding this... :) > > Actually, our original decision was to disallow inher

Re: [m2] POM inheritance

2005-04-26 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry, I forgot all about the design decisions surrounding this... :) Actually, our original decision was to disallow inheritance of any plugin configuration, since plugin configuration can (and usually will) modify the build lifecycle for that proje

Re: [m2] POM inheritance

2005-04-26 Thread Peter van de Hoef
Thanks for your reply. Now I see why the complete section is inherited when it is absent in the child: *if* ( childBuild == *null* ) { child.setBuild( parentBuild ); } *else* { /// A lot of fields are inherited, except /} I unders

Re: [m2] POM inheritance

2005-04-26 Thread Jason van Zyl
On Tue, 2005-04-26 at 21:00 +0200, Peter van de Hoef wrote: > Hi all, > > I have a question about which elements of the POM are inherited by > derived POM's. The law on inheritance resides here: http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven- project/src/main/java/org/apache/mav

Re: [m2] POM inheritance

2005-04-26 Thread Peter van de Hoef
Okay, I have added the issue: http://jira.codehaus.org/browse/MNG-357 Thanks for your time! - Peter John Casey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's entirely possible that our inheritance mechanism isn't completely right on this...can you please file a JIRA issue, and I'll look

Re: [m2] POM inheritance

2005-04-26 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's entirely possible that our inheritance mechanism isn't completely right on this...can you please file a JIRA issue, and I'll look at it when I have some slack time. Thanks, - -john Peter van de Hoef wrote: > Hi all, > > I have a question about

[m2] POM inheritance

2005-04-26 Thread Peter van de Hoef
Hi all, I have a question about which elements of the POM are inherited by derived POM's. In my parent POM I have a section which specifies the source directory and some parameters for the java compiler: src org.apache.maven.plugins