To add to my confusion in this thread, there's the <repositories> element
that has a <releases> and <snapshots> element.

I'm really confused!



lightbulb432 wrote:
> 
> I added a snapshotRepository element in addition to the repository element
> in the distributionManagement section of my pom.xml. However, when I run
> the install phase the WAR is only output to the repository, not the
> snapshot repository, even when I change the version name to end in
> "-SNAPSHOT".
> 
> How can I get the WAR to go to the appropriate place?
> 
> Also, as I'm a beginner I don't know what is expected behavior - would the
> WAR go to both repositories, or only one? If it's only one, is the chosen
> repository to which the WAR is installed what the "-SNAPSHOT" serves to
> indicate?
> 
> Thanks.
> 
> 
> 
> Wayne Fay wrote:
>> 
>> Generally people don't like to mix SNAPSHOT artifacts with released
>> artifacts. So the Snapshot repo and version number stuff just helps
>> organize/manage that.
>> 
>> You can *do* whatever you want -- its just not necessarily a "build
>> management best practice". I just would advise you to think long and hard
>> about what you're about to do before doing it, though.
>> 
>> Wayne
>> 
>> On 5/7/07, lightbulb432 <[EMAIL PROTECTED]> wrote:
>>> 
>>> What's the difference between a regular repository and a snapshot
>>> repository
>>> as specified under distributionManagement? I've tried using both types,
>>> but
>>> I didn't see any difference...
>>> 
>>> Also, does ending the version number of a file in SNAPSHOT have
>>> something to
>>> do with this? 
>>> 
>>> Is it okay to end a version number with SNAPSHOT in a regular
>>> repository, or
>>> end without SNAPSHOT in a snapshot repository...?
>>> 
>>> Thanks.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Snapshot-repository-tf3706438s177.html#a10366009
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Snapshot-repository-tf3706438s177.html#a10421687
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to