On Thu, 29 Sep 2005 [EMAIL PROTECTED] wrote: Hi,
> Hi, > > I've seen that there's a "relativePath" attribute for the "parent" element > of the pom. According to the documentation, this is "the relative path of > the parent-pom within the project hierarchy". If this property exists, I > guess this allows to discover the parent pom without specifying the > version, the artifactId and the groupId of the parent, which would be > _very_ handy. However, I get the following error when launching maven: > "Missing groupId element from parent element". > > So my question is: is this property working? I guess no: > http://jira.codehaus.org/browse/MNG-1012 (which hasn't been assigned yet) > But maybe this doesn't work this way. So my second question is: how does > this property work? I'm not entirely up-to-speed on this new feature, but AFAIK the artifactId and groupId are mandatory in a <parent> element (version too IIRC). POMs should be able to be used stand-alone. A client that uses your pom wouldn't know where to look for that parent pom, since the directory structure on ibiblio is not quite the same as the project tree structure. Before this attribute was in, m2 always checked ../pom.xml to see if it matched the declared parent. If so, it used that (and the data in target/*) instead of going to your local/remote repositories for the pom. I guess this attribute is just an extension to that, so you can specify other locations for your parent project than ../. Other m2 devs - jump in if this is incorrect! -- Kenney > Thanks in advance for your answers! > > Best Regards / Cordialement, > Fabrice BELLINGARD > DINQ/DSIN/INSI/EATE/IDVS/AIDV > (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
