www-repository mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <steve.lough...@gmail.com>
Subject Re: artifacts with unversioned deps
Date Wed, 26 Sep 2007 15:37:03 GMT
On 26/09/2007, Wendy Smoak <wsmoak@gmail.com> wrote:
> On 9/26/07, Steve Loughran <steve.loughran@gmail.com> wrote:
> > what's the policy (in schema and formally) on artifacts that dont say
> > what version of something they want
> >
> > e.g jetty6's dependency on Ant.
> > http://mirrors.ibiblio.org/pub/mirrors/maven2/org/mortbay/jetty/jsp-2.1/6.1.5/jsp-2.1-6.1.5.pom
> >
> >     <dependency>
> >       <groupId>ant</groupId>
> >       <artifactId>ant</artifactId>
> >     </dependency>
> >
> > Seems to me a version should be mandatory
>
> It is required.  In this case, the version is set in
> <dependencyManagement> in the parent pom:
> http://repo1.maven.org/maven2/org/mortbay/jetty/project/6.1.5/project-6.1.5.pom
>
> <dependency>
>    <groupId>ant</ groupId>
>    <artifactId>ant</artifactId>
>    <version>${ant-version}</version>
> </dependency>
>
> and further down
>
> <properties>
>    ...
>    < ant-version>1.6.5</ant-version>
>
> With that in place, child poms only need to specify groupId and artifactId.

I see. thanks,

-steve

Mime
View raw message