I have a suspicion that the behaviour is not consistent as I had all manner of problems when I wanted to do an id like

maven-proxy:core

jar:installing to the wrong place was one of the things I noticed.

In the older project.xml parser, the behaviour was order dependant

[EMAIL PROTECTED] wrote:

<id> is short for <groupId>:<artifactId>. If groupId and artifactId aren't specified and id is, the id value is passed to group and artifact.
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/



John Farrell <[EMAIL PROTECTED]> wrote on 19/08/2003 11:31:25 AM:




If I write this in my maven.xml:

] <goal name="blah"><echo>${pom.id}</echo></goal>

I get:

]$ maven blah
]blah:
]    [echo] mp-util:mp-util

My project.xml has this in it:
]  <!-- a unique name for this project -->
]  <id>mp-util</id>

I definitely expected pom.id to give me just "mp-util", instead of "mp-util:mp-util". Why are my expectations wrong?

I can fix it:

]   <j:set var="id" value="${pom.id}" />
]    <j:set var="id" value="${id.substring(0,id.indexOf(':'))}" />
]    <echo>id = ${id}</echo>

but I don't get it. Thanks for clues.

John

---------------------------------------------------------------------
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]



Reply via email to