And Maven 3 will also complain (well, inform) about this.

/Anders

On Mon, Dec 14, 2009 at 22:09, Justin Edelson <[email protected]>wrote:

> Yes - use a version.
>
> Set up an organizational pom and use it as the parent for all of your
> projects. Use the pluginManagement section of the organizational pom to
> declare plugin versions.
>
> Unless you do this, your builds aren't fully reproduceable.
>
> Justin
>
> On Mon, Dec 14, 2009 at 3:39 PM, Qureshi,Shahzad [Ontario] <
> [email protected]> wrote:
>
> > Hi all,
> >
> > I wanna know the standard and the reasons behind it.
> >
> > I want to find out if I should specify a version for a maven plugins,
> lets
> > say maven-javadoc-plugin, or not to specify it and in which case the
> default
> > one will be used. At this point, I don't specify versions
> >
> > I recently setup Nexus at my work and started seeing all these errors
> where
> > Nexus wouldn't find snapshot version for plugins, maven-javadoc-plugin
> being
> > one of them. The maven-javadoc-plugin is at 2.6.2-SNAPSHOT right now, but
> my
> > settings.xml is not setup to take care of this scenario.
> >
> > It seems that I've to do what example 14.2 at this link:
> >
> http://svn.sonatype.org/m2eclipse/trunk/org.maven.ide.eclipse.book/book/ch14s03.htmlsays
> >
> > And in which case I've to use -Ppublic-snapshots flag during my
> packaging.
> >
> > Now what is the general standard in a case like this? I can easily do
> what
> > the link above suggests or just specify a version. I've reservations with
> > both of them and see advantages for both of them as well.
> >
> > What do the gurus suggest? :)
> >
> > Thanks
> >
> >
> >
> > --------------------------------------------
> > Shahzad Qureshi
> > Systems Analyst/Programmer
> > Applications Directorate | La direction générale des applications
> > Chief Information Officer Branch | Direction générale du dirigeant
> > principal de l'information
> > Environment Canada | Environnement Canada
> > [email protected]
> > Telephone | Téléphone 416-739-4702
> > Government of Canada | Gouvernement du Canada
> > Website | Site Web www.ec.gc.ca
> >
> >
>

Reply via email to