Re: An Attribute Based POM

2008-02-27 Thread Arik Kfir
On Wed, 2008-02-27 at 12:51 +0100, Fabian Christ wrote: > The problem with the pattern groupId="org.apache.maven.archiva" artifactId= are the missing line > breaks and spaces. Your can't find the information of interest in such > a string. So people will start adding line breaks and you get near

Re: An Attribute Based POM

2008-02-27 Thread Fabian Christ
Hi there, I read through this discussion as a Maven user and (sometimes) plugin developer and also like the idea of more readable POMs. But I also agree with Jörg's opinion: > +1 for more readable POMs > > I personally like the idea of the attributes because it makes > it a lot easier to write

Re: An Attribute Based POM

2008-02-27 Thread Milos Kleint
n Mon, Feb 11, 2008 at 7:45 AM, Brett Porter <[EMAIL PROTECTED]> wrote: > Hi, > > I've always wanted to see an attribute based POM, so based on Nicolas' > suggestion I killed some time after waking up early this morning to do > it. > > JIRA: http://jira.c

Re: An Attribute Based POM

2008-02-21 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, just to give my feedback on the thread: +1 for NOT overloading 2.1 When it is about further versions and long term future of maven: - -infinity for artifact="org.apache.maven:maven-project:2.0.8" How do you want to express versions range

Re: An Attribute Based POM

2008-02-13 Thread Paul Benedict
I don't buy into the objection that simplifying the POM is "too late". If there is not a 4.1, there will be a 5.0. Eventually the POM will change -- if it doesn't happen with attributes, it will be for another reason. The schema dictates what is valid/invalid. If people want verbosity, let them con

Re: An Attribute Based POM

2008-02-13 Thread Brett Porter
On 13/02/2008, at 7:15 PM, Mark Struberg wrote: Does the refactoring of the XML give us any new functionality besides only 'looking better'? No, but it seems that's reason enough :) The technical underpinnings do give the value of being able to add things to the model now, however, and s

Re: An Attribute Based POM

2008-02-13 Thread Mark Struberg
r people > building out tool support, if someone wanted to do something like > create a binary format, there's nothing stopping them. > > > > -john > > > > On Feb 12, 2008, at 10:55 AM, Tim O'Brien wrote: > > > >> > >> On Feb 12, 2008, at 9:34 A

RE: An Attribute Based POM

2008-02-12 Thread Brian E. Fox
>From a commercial perspective... in an interview when I ask 'do you understand >maven?' I want the prospective consultant/employee to say 'yes' and I want to >know that that means they can grok poms... if you allow custom formats you >just don't get that and we end up going the way of ant... Y

Re: An Attribute Based POM

2008-02-12 Thread Brett Porter
To: Maven Developers List Subject: Re: An Attribute Based POM Are you talking about the divergence of the thread, or the original feature? I'm still in favour of renaming 2.0.9 to 2.1 and starting to add features to a stable code base. After all, we already have. - Brett On 13/02/2008, at 4:

RE: An Attribute Based POM

2008-02-12 Thread Brian E. Fox
come later. If we continue to stuff new > things into 2.1 then it will probably never see the light of day. > > -Original Message- > From: John Casey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 12, 2008 8:31 AM > To: Maven Developers List > Subject: Re: An Attribu

Re: An Attribute Based POM

2008-02-12 Thread Brett Porter
obably never see the light of day. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 12, 2008 8:31 AM To: Maven Developers List Subject: Re: An Attribute Based POM FWIW, I think as long as we have a standard format for POMs on a single remote repository

Re: An Attribute Based POM

2008-02-12 Thread Jason van Zyl
formats you just don't get that and we end up going the way of ant... I don't think anyone here is proposing a free-for-all. But an attribute-based POM seems to be something that's popular so we can pursue it. There will never be any scripting in the POM and never any gene

Re: An Attribute Based POM

2008-02-12 Thread Michael McCallum
From a commercial perspective... in an interview when I ask 'do you understand maven?' I want the prospective consultant/employee to say 'yes' and I want to know that that means they can grok poms... if you allow custom formats you just don't get that and we end up going the way of ant... big t

Re: An Attribute Based POM

2008-02-12 Thread John Casey
esday, February 12, 2008 8:31 AM To: Maven Developers List Subject: Re: An Attribute Based POM FWIW, I think as long as we have a standard format for POMs on a single remote repository, it doesn't hurt to accommodate all comers WRT format. XML is okay for developers familiar with it to rea

RE: An Attribute Based POM

2008-02-12 Thread Brian E. Fox
.1 then it will probably never see the light of day. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 12, 2008 8:31 AM To: Maven Developers List Subject: Re: An Attribute Based POM FWIW, I think as long as we have a standard format for POMs on a single re

Re: An Attribute Based POM

2008-02-12 Thread Tim O'Brien
essage- From: Tim O'Brien [mailto:[EMAIL PROTECTED] Sent: mardi 12 février 2008 16:03 To: Maven Developers List Subject: Re: An Attribute Based POM On Feb 12, 2008, at 3:58 AM, Benjamin Bentmann wrote: For example, we'd can group groupId/artifactId/version into one attribute like this

Re: An Attribute Based POM

2008-02-12 Thread John Casey
n On Feb 12, 2008, at 10:55 AM, Tim O'Brien wrote: On Feb 12, 2008, at 9:34 AM, Gilles Scokart wrote: -Original Message- From: Tim O'Brien [mailto:[EMAIL PROTECTED] Sent: mardi 12 février 2008 16:03 To: Maven Developers List Subject: Re: An Attribute Based POM On

Re: An Attribute Based POM

2008-02-12 Thread John Casey
This is getting pretty far afield from the original email in the thread, but I'd say this is a perfect reason for separating the statement of dependencies associated with a particular artifact on the remote repository from the POM used to build it. We can (and do) deploy the original POM us

Re: An Attribute Based POM

2008-02-12 Thread Tim O'Brien
On Feb 12, 2008, at 9:34 AM, Gilles Scokart wrote: -Original Message- From: Tim O'Brien [mailto:[EMAIL PROTECTED] Sent: mardi 12 février 2008 16:03 To: Maven Developers List Subject: Re: An Attribute Based POM On Feb 12, 2008, at 3:58 AM, Benjamin Bentmann wrote: For ex

RE: An Attribute Based POM

2008-02-12 Thread Brian E. Fox
>We could deploy a "generated" POM that reflects the enabled profiles and the >maven model used to build the artifact. This won't work when the poms are used for inheritance out of the repository. Suddenly a property meant to be resolved at build time to something on the developer's machine is res

RE: An Attribute Based POM

2008-02-12 Thread Gilles Scokart
> -Original Message- > From: Tim O'Brien [mailto:[EMAIL PROTECTED] > Sent: mardi 12 février 2008 16:03 > To: Maven Developers List > Subject: Re: An Attribute Based POM > > > On Feb 12, 2008, at 3:58 AM, Benjamin Bentmann wrote: > > >> For e

Re: An Attribute Based POM

2008-02-12 Thread Jason van Zyl
nt element. To me, the groupId, artifactId and version would be essential parts of a dependency element. Shane On Feb 10, 2008 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some t

Re: An Attribute Based POM

2008-02-12 Thread Tim O'Brien
Right of course, but the core idea is that XML doesn't drive the format or structure of data.It should tell you guys something that negative reactions to Maven like Buildr use the colon notation. Maven itself prints out dependencies using the colon notation when you run the dependenc

Re: An Attribute Based POM

2008-02-12 Thread nicolas de loof
Your example just demonstrate the issue with String formated : 23:22:22.003 or 11PM:22:22.003 or 21:22:22.003 UTC ??? The "native" format for time (in computer world) is number of ms since 01/01/1970 .. so its un non-formated binary type The equivalent XML element should be something like 23:22

Re: An Attribute Based POM

2008-02-12 Thread Tim O'Brien
On Feb 12, 2008, at 3:58 AM, Benjamin Bentmann wrote: For example, we'd can group groupId/artifactId/version into one attribute like this: Please don't do this. This would require another parsing step after the XML parsing and introduces further error sources. Use XML to structure the

RE: An Attribute Based POM

2008-02-12 Thread Jörg Schaible
Well, I'd like to "improve" rather the "dependencies" element: i.e. inherit the attributes from the surrounding dependencies tag (with the possibility to override them). Ralph Goers wrote: > Actually, there wasn't a singl

Re: An Attribute Based POM

2008-02-12 Thread Benjamin Bentmann
For example, we'd can group groupId/artifactId/version into one attribute like this: Please don't do this. This would require another parsing step after the XML parsing and introduces further error sources. Use XML to structure the data, not some proprietary format. Third-party tools dealing w

Re: An Attribute Based POM

2008-02-12 Thread Emmanuel Venisse
ubelements are essential > parts of the parent element. To me, the groupId, artifactId and version > would be essential parts of a dependency element. > > Shane > > On Feb 10, 2008 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I've

Re: An Attribute Based POM

2008-02-12 Thread nicolas de loof
there (there is a transitivity="false" that you can > add). > > > Gilles > > > > 2008/2/11, Brett Porter <[EMAIL PROTECTED]>: > > > > Hi, > > > > I've always wanted to see an attribute based POM, so based on Nicolas

Re: An Attribute Based POM

2008-02-12 Thread nicolas de loof
ment... Nico. 2008/2/11, Brett Porter <[EMAIL PROTECTED]>: > > Hi, > > I've always wanted to see an attribute based POM, so based on Nicolas' > suggestion I killed some time after waking up early this morning to do > it. > > JIRA: http://jira.codehaus.org/brows

Re: An Attribute Based POM

2008-02-12 Thread Gilles Scokart
ivy there (there is a transitivity="false" that you can add). Gilles 2008/2/11, Brett Porter <[EMAIL PROTECTED]>: > > Hi, > > I've always wanted to see an attribute based POM, so based on Nicolas' > suggestion I killed some time after waki

Re: An Attribute Based POM

2008-02-11 Thread Jason Dillon
If I ever need an xml diver ill give you a ring :-P But most folks I know don't care to swim in xml... They'd drownd... --jason -Original Message- From: "Don Brown" <[EMAIL PROTECTED]> Date: Tue, 12 Feb 2008 17:01:43 To:"Maven Developers List"

Re: An Attribute Based POM

2008-02-11 Thread Jason Dillon
b 2008 16:51:07 To:"Maven Developers List" Subject: Re: An Attribute Based POM Are you saying that if you are looking forward to dealing with more verbosity, you should interview at Atlassian? :) On 12/02/2008, at 4:47 PM, Don Brown wrote: > Atlassian is hiring ... :) > > On 2/

Re: An Attribute Based POM

2008-02-11 Thread Don Brown
more verbose... So all us > >> maven folk can keep our jobbies :-P > >> > >> --jason > >> > >> > >> -Original Message- > >> From: Brett Porter <[EMAIL PROTECTED]> > >> > >> Date: Tue, 12 Feb 2008 16:35:35 &g

Re: An Attribute Based POM

2008-02-11 Thread Brett Porter
n more verbose... So all us maven folk can keep our jobbies :-P --jason -Original Message- From: Brett Porter <[EMAIL PROTECTED]> Date: Tue, 12 Feb 2008 16:35:35 To:"Maven Developers List" Subject: Re: An Attribute Based POM Yes, I happen to agree with the theory Shane

Re: An Attribute Based POM

2008-02-11 Thread Don Brown
PROTECTED]> > > Date: Tue, 12 Feb 2008 16:35:35 > To:"Maven Developers List" > Subject: Re: An Attribute Based POM > > > Yes, I happen to agree with the theory Shane and Jason outlined and is > why I accepted the status quo for 5 years :) But I always thought th

Re: An Attribute Based POM

2008-02-11 Thread Jason Dillon
IMO we should strive to make the pom even more verbose... So all us maven folk can keep our jobbies :-P --jason -Original Message- From: Brett Porter <[EMAIL PROTECTED]> Date: Tue, 12 Feb 2008 16:35:35 To:"Maven Developers List" Subject: Re: An Attribute Based POM

Re: An Attribute Based POM

2008-02-11 Thread Brett Porter
oupId, artifactId and version would be essential parts of a dependency element. Shane On Feb 10, 2008 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some time after waking

Re: An Attribute Based POM

2008-02-11 Thread Don Brown
10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I've always wanted to see an attribute based POM, so based on Nicolas' > > suggestion I killed some time after waking up early this morning to do > > it. > > > > JIRA:

Re: An Attribute Based POM

2008-02-11 Thread Jason van Zyl
think the elements are easier to read, not necessarily to type but users trump all. Shane On Feb 10, 2008 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some time after wakin

Re: An Attribute Based POM

2008-02-11 Thread Shane Isbell
be essential parts of a dependency element. Shane On Feb 10, 2008 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > Hi, > > I've always wanted to see an attribute based POM, so based on Nicolas' > suggestion I killed some time after waking up early this mornin

Re: An Attribute Based POM

2008-02-11 Thread Michael McCallum
sure but each project should not do that and using standard OO principles i can encapsulate it in reusable artifacts i average 5 deps per artifact and have (9 different) assemblies that result in about 84 jars each, with no dependency management sections and i have reproducible builds by facto

Re: An Attribute Based POM

2008-02-11 Thread Brett Porter
Well I'm actually thinking that we just make the change to allow optional version for artifacts in the reactor, chopping the whole section :) - Brett On 12/02/2008, at 2:21 PM, Ralph Goers wrote: Actually, there wasn't a single dependency in that pom. Those were all managed dependency dec

Re: An Attribute Based POM

2008-02-11 Thread Ralph Goers
Actually, there wasn't a single dependency in that pom. Those were all managed dependency declarations. I'm not surprised to see something like that, however it would really be better if it was: artifactId="bill-of-materials" version="1.1-SNAPSHOT" type="pom"/> instead of

Re: An Attribute Based POM

2008-02-11 Thread Martijn Dashorst
On 2/12/08, Michael McCallum <[EMAIL PROTECTED]> wrote: > > You can change the tool to make a bad pom look good but at the end of the > day > there is something wrong if your declared dependency list looks like > that... > How come? To get reproducible builds, you need to specify the versions of a

Re: An Attribute Based POM

2008-02-11 Thread Michael McCallum
IMO You can change the tool to make a bad pom look good but at the end of the day there is something wrong if your declared dependency list looks like that... > Here are two different files for comparison (it halved the size): > http://svn.apache.org/viewvc/maven/archiva/trunk/pom.xml?content-t

Re: An Attribute Based POM

2008-02-11 Thread Brett Porter
On 12/02/2008, at 3:33 AM, Jason van Zyl wrote: Sure, I think it's important not to conflate additions to the simple maneuver to attributes. Agreed - what Niall proposed was in the scope of simplifying the current POM, but adding new features like excludeAll is not. Also just looking

Re: An Attribute Based POM

2008-02-11 Thread Jason van Zyl
Sure, I think it's important not to conflate additions to the simple maneuver to attributes. Also just looking over the the thread, I don't think dependencyGroups are necessary as I think many people, from my experience, expect a dependency on a POM to yield the same result even though it d

Re: An Attribute Based POM

2008-02-11 Thread Paul Benedict
I am very much for allowing simple types to be attribute-based. I think that alone is worth the addition to Maven 2.1. Paul

RE: An Attribute Based POM

2008-02-11 Thread Brian E. Fox
I think we might be deviating from the normal pom a bit much here unless you plan to support this in the regular pom processing also. -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 4:40 AM To: Maven Developers List Subject: Re: An Attribute

Re: An Attribute Based POM

2008-02-11 Thread Tomasz Pik
On Feb 11, 2008 1:23 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > I'm collecting these up to put back into the wiki later on Please, add also: or something similar. > though > this initial attempt is intended not to change the model just yet > (though it's very feasible with the current

Re: An Attribute Based POM

2008-02-11 Thread Brett Porter
rett Porter <[EMAIL PROTECTED]> wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some time after waking up early this morning to do it. JIRA: http://jira.codehaus.org/browse/MNG-3397 Here is a build to try: http://people.apache

Re: An Attribute Based POM

2008-02-11 Thread Stephen Connolly
> On Feb 11, 2008 6:45 AM, Brett Porter <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I've always wanted to see an attribute based POM, so based on Nicolas' > > suggestion I killed some time after waking up early this morning to do > > it. > > &g

Re: An Attribute Based POM

2008-02-11 Thread Niall Pemberton
On Feb 11, 2008 6:45 AM, Brett Porter <[EMAIL PROTECTED]> wrote: > Hi, > > I've always wanted to see an attribute based POM, so based on Nicolas' > suggestion I killed some time after waking up early this morning to do > it. > > JIRA: http://jira.codehaus.org/b

Re: An Attribute Based POM

2008-02-10 Thread Brett Porter
nd defining an order for child elements throughout the XSD. On Feb 11, 2008, at 12:45 AM, Brett Porter wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some time after waking up early this morning to do it. JIRA: http://jira

Re: An Attribute Based POM

2008-02-10 Thread Jason van Zyl
, profiles. Doing this would require... 2. Getting away from xs:all and defining an order for child elements throughout the XSD. On Feb 11, 2008, at 12:45 AM, Brett Porter wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed so

Re: An Attribute Based POM

2008-02-10 Thread Tim O'Brien
, exclusions, profiles. Doing this would require... 2. Getting away from xs:all and defining an order for child elements throughout the XSD. On Feb 11, 2008, at 12:45 AM, Brett Porter wrote: Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I k

An Attribute Based POM

2008-02-10 Thread Brett Porter
Hi, I've always wanted to see an attribute based POM, so based on Nicolas' suggestion I killed some time after waking up early this morning to do it. JIRA: http://jira.codehaus.org/browse/MNG-3397 Here is a build to try: http://people.apache.org/~brett/apache-maven-2.0.9-SNAP