Sorry if this is covered somewhere but I've been looking at "better
builds with maven" guide, the website, and the Artifactory website but
I'm a bit confused on a few things (since chapter 7 is a bit
confusing.)
Currently my internal repository is set up using Artifactory and it
has a "libs-snapshots" and "lib-releases" - what do I need to do to
setup my deploys so that I can also deploy release versions to the
repo and not just snaphots. Obviously I assume I first label the
version number in the POM or is that something handled automatically?,
then what is the best practice to toggle between the two - snapshot
builds to the repo vs releases? Maybe I'm just not setting things up
correctly. Currently I have this defined in my project's pom.xml:
I have in my project pom:
<distributionManagement>
<repository>
<id>snapshots</id>
<url>dav:http://internalURL:8081/artifactory/libs-snapshots</url>
</repository>
</distributionManagement>
and the webdav wagon definition is set and the deploy works for
snaphots when I type "mvn deploy" (I also declared my username and
password for 'snapshots' in my m2_home/conf/settings.xml - not sure if
that's the best place?) Anyway if I want to deploy a release it seems
like I have to change the id name to "internal" and of course change
the url from libs-snapshots to libs-releases. There must be a better
way to do this whichI'm assuming involves the release plugin somehow?
But in chapter 7 of the better builds guide it doesn't really mention
about releasing to the a releases directory in Artificatory (which I
wouldn't expect it to since the guide is generic, but I'm confused
what to do.)
Also, is it standard to put that distributionManagement definition in
the project pom.xml? I would think that would be something you'd share
amongst all your projects so maybe it should go somewhere in my .m2
settings?
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?
Thanks again for the help.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]