You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lightbulb432 <ve...@hotmail.com> on 2007/05/07 23:43:16 UTC
Snapshot repository
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snapshot repository
Posted by lightbulb432 <ve...@hotmail.com>.
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 <ve...@hotmail.com> 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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snapshot repository
Posted by lightbulb432 <ve...@hotmail.com>.
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 <ve...@hotmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Snapshot-repository-tf3706438s177.html#a10398347
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snapshot repository
Posted by Wayne Fay <wa...@gmail.com>.
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 <ve...@hotmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snapshot repository
Posted by Nick Stolwijk <ni...@planet.nl>.
lightbulb432 wrote:
> Also, does ending the version number of a file in SNAPSHOT have something to
> do with this?
>
Reading this, I don't think you know what a SNAPSHOT version means. A
SNAPSHOT is every build between two released versions. This way, you can
never be sure, that a new SNAPSHOT of a dependency or a plugin wouldn't
break your build. (Normally a bad thing) Also, every SNAPSHOT build you
deploy is put into the repository. (Snapshot repository). After a
release, you can remove all the old SNAPSHOT versions. When separating
SNAPSHOT builds and releases in different repositories, it is easier to
keep watch on them.
Hth,
Nick Stolwijk
> Is it okay to end a version number with SNAPSHOT in a regular repository, or
> end without SNAPSHOT in a snapshot repository...?
>
> Thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org