On Thu, May 8, 2008 at 8:45 PM, Rick <[EMAIL PROTECTED]> wrote:

>  I have in my project pom:
>
>  <distributionManagement>
>         <repository>
>             <id>snapshots</id>
>             <url>dav:http://internalURL:8081/artifactory/libs-snapshots</url>
>         </repository>
>
>     </distributionManagement>

If you have both a <repository> and a <snapshotRepository>, Maven will
choose based on whether the version number ends in -SNAPSHOT.  Magic.
:)  See 
http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_distributionManagement
.

You can establish an organization-level parent pom with
distributionManagement and anything else you want to be inherited by
all of your projects.

> Lastly, just out of curiosity why aren't these plugins like the
> maven-compile and release part of the archetype or at least stubbed
> out in the generation from the archetype? Seems like they'd almost
> always be used?

Maven knows about (for example) the compiler and surefire plugins.
Unless you need to change the defaults you won't need to configure
them in your project's pom.  See
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to