You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by nicolas de loof <ni...@apache.org> on 2008/08/13 14:03:23 UTC

suggest : option to replace snapshot "timestamp" with buildnumber

Recent snapshot repository purge introduced issues for those of us that
depend on a specific timestamp SNAPSHOT. This is supposed to be a valid
usecase as supported by the release and enforcer plugins.

There is no way to rebuild such jars, as we can get the sources from SCM
according to date, but cannot build and deploy the jar with the expected
name (manual renaming is required).

Could we consider for future the option to use the SCM revision ( for SCM
that support this option, but most of us use SVN ;-) ) in replacement to a
timestamp, so that a specific timestamp can easily be rebuilded at anytime ?
The version format could be "X.Y.Z-revision-ABCDE".

Nicolas.

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Daniel Kulp <dk...@apache.org>.
+1 to what Brian said. 

According to Apache policy, USERS should NOT be relying on Apache snapshot or 
any Apache builds that have not been properly voted on.   Don't push the 
issue or furthur lock downs are likely.  (they started discussing the idea of 
requiring apache username/password to access the snapshots even)

Basically, if you find you need to start using a plugin snapshot, you also 
should start pestering the maven folks to get it released.   Even better, 
help out by submitting patches for any of the remaining issues.   The sooner 
the issues get resolved, the sooner we can get releases made.

Also, if you start submitting patches and bugging everyone, you're likely to 
be voted in as a committer and then you can do your own releases.  That's how 
a lot of us became Maven committers.   We annoyed the existing committers 
with patches and stuff enough that they voted us in just so we would stop 
annoying them.   :-)

Dan


On Wednesday 13 August 2008 9:24:12 am Brian E. Fox wrote:
> On 8/13/08 8:20 AM, "nicolas de loof" <ni...@apache.org> wrote:
> > The option is to allow timestamp for SNAPSHOT dependencies, considering
> > the timestamp jar will not be updated as a SNAPSHOT would, and so the
> > build get's reproductible ... until the snapshot repo gets cleaned !
> >
> > The idea is interesting as we hardly get plugin releases, and have no
> > roadmap for them, so a project that requires a bug fix has no other
> > option
>
> No, it might be interesting for corporate use, but _definately_ not for
> Apache use.
>
> Sounds like you haven't followed the infra threads regarding the use of the
> snapshot repo. Specifically it is apache policy that snapshots be used for
> the development team only as they are not sanctioned releases. Any attempt
> to implement something like this to make it easier/ more reliable to use
> Apache snapshot artifacts will likely result in further lockdown of the
> Apache snapshot repo.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.


On 8/13/08 8:20 AM, "nicolas de loof" <ni...@apache.org> wrote:

> The option is to allow timestamp for SNAPSHOT dependencies, considering the
> timestamp jar will not be updated as a SNAPSHOT would, and so the build
> get's reproductible ... until the snapshot repo gets cleaned !
> 
> The idea is interesting as we hardly get plugin releases, and have no
> roadmap for them, so a project that requires a bug fix has no other option

No, it might be interesting for corporate use, but _definately_ not for
Apache use.

Sounds like you haven't followed the infra threads regarding the use of the
snapshot repo. Specifically it is apache policy that snapshots be used for
the development team only as they are not sanctioned releases. Any attempt
to implement something like this to make it easier/ more reliable to use
Apache snapshot artifacts will likely result in further lockdown of the
Apache snapshot repo.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Nick Stolwijk <ni...@gmail.com>.
I admit, it is not a really good way of doing this. We used this with
internal projects, with our own repository. Mostly when we bumped into a
solved issue, which was not already released. I checked out the trunk,
changed the version numbers to something like
<current-trunk-version>-<company-name>-<revisionnumber>, added the
distributionManagement for our own repository and ran a mvn deploy.

I would prefer more, quicker releases also, but this is a workable work
around.

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl


On Wed, Aug 13, 2008 at 2:31 PM, nicolas de loof <ni...@apache.org> wrote:

> Maybe I'm wrong, but this requires me to commit (to use the release plugin)
> the original POM !
>
> 2008/8/13 Nick Stolwijk <ni...@gmail.com>
>
> > The other option would be to create a release of the plugin in your own
> > repository, with an own version number.
> >
> > Hth,
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> > On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org>
> > wrote:
> >
> > > The option is to allow timestamp for SNAPSHOT dependencies, considering
> > the
> > > timestamp jar will not be updated as a SNAPSHOT would, and so the build
> > > get's reproductible ... until the snapshot repo gets cleaned !
> > >
> > > The idea is interesting as we hardly get plugin releases, and have no
> > > roadmap for them, so a project that requires a bug fix has no other
> > option
> > >
> > >
> > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > >
> > > > Oooooh! there's an option to allow snapshot dependencies in release?
> > >  Cool!
> > > > I did not know that... Now I can go cause me a heap load of trouble!
> > > >
> > > > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <nicolas@apache.org
> >
> > > > wrote:
> > > >
> > > > > Would you DEPLOY a snapshot without first testing and commiting ?
> > > > >
> > > > > You're right that this is not a 100% safe way to fix this issue,
> just
> > > an
> > > > > attempt to make things (a little bit) more stable.
> > > > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > > > release/enforcer option to accept them ;-)
> > > > >
> > > > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > > > >
> > > > > > Of course the problem with that is what if there were local
> changes
> > > > when
> > > > > > the
> > > > > > build was made?  Now the SCM revision is meaningless
> > > > > >
> > > > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
> > nicolas@apache.org
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Recent snapshot repository purge introduced issues for those of
> > us
> > > > that
> > > > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be
> a
> > > > valid
> > > > > > > usecase as supported by the release and enforcer plugins.
> > > > > > >
> > > > > > > There is no way to rebuild such jars, as we can get the sources
> > > from
> > > > > SCM
> > > > > > > according to date, but cannot build and deploy the jar with the
> > > > > expected
> > > > > > > name (manual renaming is required).
> > > > > > >
> > > > > > > Could we consider for future the option to use the SCM revision
> (
> > > for
> > > > > SCM
> > > > > > > that support this option, but most of us use SVN ;-) ) in
> > > replacement
> > > > > to
> > > > > > a
> > > > > > > timestamp, so that a specific timestamp can easily be rebuilded
> > at
> > > > > > anytime
> > > > > > > ?
> > > > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > > > >
> > > > > > > Nicolas.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by nicolas de loof <ni...@apache.org>.
Maybe I'm wrong, but this requires me to commit (to use the release plugin)
the original POM !

2008/8/13 Nick Stolwijk <ni...@gmail.com>

> The other option would be to create a release of the plugin in your own
> repository, with an own version number.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
> On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org>
> wrote:
>
> > The option is to allow timestamp for SNAPSHOT dependencies, considering
> the
> > timestamp jar will not be updated as a SNAPSHOT would, and so the build
> > get's reproductible ... until the snapshot repo gets cleaned !
> >
> > The idea is interesting as we hardly get plugin releases, and have no
> > roadmap for them, so a project that requires a bug fix has no other
> option
> >
> >
> > 2008/8/13 Stephen Connolly <st...@gmail.com>
> >
> > > Oooooh! there's an option to allow snapshot dependencies in release?
> >  Cool!
> > > I did not know that... Now I can go cause me a heap load of trouble!
> > >
> > > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
> > > wrote:
> > >
> > > > Would you DEPLOY a snapshot without first testing and commiting ?
> > > >
> > > > You're right that this is not a 100% safe way to fix this issue, just
> > an
> > > > attempt to make things (a little bit) more stable.
> > > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > > release/enforcer option to accept them ;-)
> > > >
> > > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > > >
> > > > > Of course the problem with that is what if there were local changes
> > > when
> > > > > the
> > > > > build was made?  Now the SCM revision is meaningless
> > > > >
> > > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
> nicolas@apache.org
> > >
> > > > > wrote:
> > > > >
> > > > > > Recent snapshot repository purge introduced issues for those of
> us
> > > that
> > > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
> > > valid
> > > > > > usecase as supported by the release and enforcer plugins.
> > > > > >
> > > > > > There is no way to rebuild such jars, as we can get the sources
> > from
> > > > SCM
> > > > > > according to date, but cannot build and deploy the jar with the
> > > > expected
> > > > > > name (manual renaming is required).
> > > > > >
> > > > > > Could we consider for future the option to use the SCM revision (
> > for
> > > > SCM
> > > > > > that support this option, but most of us use SVN ;-) ) in
> > replacement
> > > > to
> > > > > a
> > > > > > timestamp, so that a specific timestamp can easily be rebuilded
> at
> > > > > anytime
> > > > > > ?
> > > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > > >
> > > > > > Nicolas.
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Then you run into issues of cross timezone deployments.... (assuming you
wanted to force the timestamp to match your last scm update timestamp)....or
what if someone deployed since you last update?


On 8/13/08 8:34 AM, "nicolas de loof" <ni...@apache.org> wrote:

> Another option could be to have a parameter in the deploy mojo to set the
> timestamp to be used, so that we can rebuild a previous snapshot by getting
> it's sources from SCM at the timestamp date.
> 
> 
> 
> 2008/8/13 Stephen Connolly <st...@gmail.com>
> 
>> Smarty-pants!
>> 
>> That only works for internal projects. But what about if you are working on
>> a public project and need the fix... If you deploy to your own repo we have
>> a repo fight between my repo and repo1
>> 
>> ;-)
>> 
>> On Wed, Aug 13, 2008 at 1:25 PM, Nick Stolwijk <nick.stolwijk@gmail.com
>>> wrote:
>> 
>>> The other option would be to create a release of the plugin in your own
>>> repository, with an own version number.
>>> 
>>> Hth,
>>> 
>>> Nick Stolwijk
>>> ~Java Developer~
>>> 
>>> Iprofs BV.
>>> Claus Sluterweg 125
>>> 2012 WS Haarlem
>>> www.iprofs.nl
>>> 
>>> 
>>> On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org>
>>> wrote:
>>> 
>>>> The option is to allow timestamp for SNAPSHOT dependencies, considering
>>> the
>>>> timestamp jar will not be updated as a SNAPSHOT would, and so the build
>>>> get's reproductible ... until the snapshot repo gets cleaned !
>>>> 
>>>> The idea is interesting as we hardly get plugin releases, and have no
>>>> roadmap for them, so a project that requires a bug fix has no other
>>> option
>>>> 
>>>> 
>>>> 2008/8/13 Stephen Connolly <st...@gmail.com>
>>>> 
>>>>> Oooooh! there's an option to allow snapshot dependencies in release?
>>>>  Cool!
>>>>> I did not know that... Now I can go cause me a heap load of trouble!
>>>>> 
>>>>> On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <nicolas@apache.org
>>> 
>>>>> wrote:
>>>>> 
>>>>>> Would you DEPLOY a snapshot without first testing and commiting ?
>>>>>> 
>>>>>> You're right that this is not a 100% safe way to fix this issue,
>> just
>>>> an
>>>>>> attempt to make things (a little bit) more stable.
>>>>>> A full fix would be to never use SNAPSHOTs, and to deprecate
>>>>>> release/enforcer option to accept them ;-)
>>>>>> 
>>>>>> 2008/8/13 Stephen Connolly <st...@gmail.com>
>>>>>> 
>>>>>>> Of course the problem with that is what if there were local
>> changes
>>>>> when
>>>>>>> the
>>>>>>> build was made?  Now the SCM revision is meaningless
>>>>>>> 
>>>>>>> On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
>>> nicolas@apache.org
>>>>> 
>>>>>>> wrote:
>>>>>>> 
>>>>>>>> Recent snapshot repository purge introduced issues for those of
>>> us
>>>>> that
>>>>>>>> depend on a specific timestamp SNAPSHOT. This is supposed to be
>> a
>>>>> valid
>>>>>>>> usecase as supported by the release and enforcer plugins.
>>>>>>>> 
>>>>>>>> There is no way to rebuild such jars, as we can get the sources
>>>> from
>>>>>> SCM
>>>>>>>> according to date, but cannot build and deploy the jar with the
>>>>>> expected
>>>>>>>> name (manual renaming is required).
>>>>>>>> 
>>>>>>>> Could we consider for future the option to use the SCM revision
>> (
>>>> for
>>>>>> SCM
>>>>>>>> that support this option, but most of us use SVN ;-) ) in
>>>> replacement
>>>>>> to
>>>>>>> a
>>>>>>>> timestamp, so that a specific timestamp can easily be rebuilded
>>> at
>>>>>>> anytime
>>>>>>>> ?
>>>>>>>> The version format could be "X.Y.Z-revision-ABCDE".
>>>>>>>> 
>>>>>>>> Nicolas.
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by nicolas de loof <ni...@apache.org>.
Another option could be to have a parameter in the deploy mojo to set the
timestamp to be used, so that we can rebuild a previous snapshot by getting
it's sources from SCM at the timestamp date.



2008/8/13 Stephen Connolly <st...@gmail.com>

> Smarty-pants!
>
> That only works for internal projects. But what about if you are working on
> a public project and need the fix... If you deploy to your own repo we have
> a repo fight between my repo and repo1
>
> ;-)
>
> On Wed, Aug 13, 2008 at 1:25 PM, Nick Stolwijk <nick.stolwijk@gmail.com
> >wrote:
>
> > The other option would be to create a release of the plugin in your own
> > repository, with an own version number.
> >
> > Hth,
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> > On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org>
> > wrote:
> >
> > > The option is to allow timestamp for SNAPSHOT dependencies, considering
> > the
> > > timestamp jar will not be updated as a SNAPSHOT would, and so the build
> > > get's reproductible ... until the snapshot repo gets cleaned !
> > >
> > > The idea is interesting as we hardly get plugin releases, and have no
> > > roadmap for them, so a project that requires a bug fix has no other
> > option
> > >
> > >
> > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > >
> > > > Oooooh! there's an option to allow snapshot dependencies in release?
> > >  Cool!
> > > > I did not know that... Now I can go cause me a heap load of trouble!
> > > >
> > > > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <nicolas@apache.org
> >
> > > > wrote:
> > > >
> > > > > Would you DEPLOY a snapshot without first testing and commiting ?
> > > > >
> > > > > You're right that this is not a 100% safe way to fix this issue,
> just
> > > an
> > > > > attempt to make things (a little bit) more stable.
> > > > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > > > release/enforcer option to accept them ;-)
> > > > >
> > > > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > > > >
> > > > > > Of course the problem with that is what if there were local
> changes
> > > > when
> > > > > > the
> > > > > > build was made?  Now the SCM revision is meaningless
> > > > > >
> > > > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
> > nicolas@apache.org
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Recent snapshot repository purge introduced issues for those of
> > us
> > > > that
> > > > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be
> a
> > > > valid
> > > > > > > usecase as supported by the release and enforcer plugins.
> > > > > > >
> > > > > > > There is no way to rebuild such jars, as we can get the sources
> > > from
> > > > > SCM
> > > > > > > according to date, but cannot build and deploy the jar with the
> > > > > expected
> > > > > > > name (manual renaming is required).
> > > > > > >
> > > > > > > Could we consider for future the option to use the SCM revision
> (
> > > for
> > > > > SCM
> > > > > > > that support this option, but most of us use SVN ;-) ) in
> > > replacement
> > > > > to
> > > > > > a
> > > > > > > timestamp, so that a specific timestamp can easily be rebuilded
> > at
> > > > > > anytime
> > > > > > > ?
> > > > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > > > >
> > > > > > > Nicolas.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Stephen Connolly <st...@gmail.com>.
Smarty-pants!

That only works for internal projects. But what about if you are working on
a public project and need the fix... If you deploy to your own repo we have
a repo fight between my repo and repo1

;-)

On Wed, Aug 13, 2008 at 1:25 PM, Nick Stolwijk <ni...@gmail.com>wrote:

> The other option would be to create a release of the plugin in your own
> repository, with an own version number.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
> On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org>
> wrote:
>
> > The option is to allow timestamp for SNAPSHOT dependencies, considering
> the
> > timestamp jar will not be updated as a SNAPSHOT would, and so the build
> > get's reproductible ... until the snapshot repo gets cleaned !
> >
> > The idea is interesting as we hardly get plugin releases, and have no
> > roadmap for them, so a project that requires a bug fix has no other
> option
> >
> >
> > 2008/8/13 Stephen Connolly <st...@gmail.com>
> >
> > > Oooooh! there's an option to allow snapshot dependencies in release?
> >  Cool!
> > > I did not know that... Now I can go cause me a heap load of trouble!
> > >
> > > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
> > > wrote:
> > >
> > > > Would you DEPLOY a snapshot without first testing and commiting ?
> > > >
> > > > You're right that this is not a 100% safe way to fix this issue, just
> > an
> > > > attempt to make things (a little bit) more stable.
> > > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > > release/enforcer option to accept them ;-)
> > > >
> > > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > > >
> > > > > Of course the problem with that is what if there were local changes
> > > when
> > > > > the
> > > > > build was made?  Now the SCM revision is meaningless
> > > > >
> > > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
> nicolas@apache.org
> > >
> > > > > wrote:
> > > > >
> > > > > > Recent snapshot repository purge introduced issues for those of
> us
> > > that
> > > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
> > > valid
> > > > > > usecase as supported by the release and enforcer plugins.
> > > > > >
> > > > > > There is no way to rebuild such jars, as we can get the sources
> > from
> > > > SCM
> > > > > > according to date, but cannot build and deploy the jar with the
> > > > expected
> > > > > > name (manual renaming is required).
> > > > > >
> > > > > > Could we consider for future the option to use the SCM revision (
> > for
> > > > SCM
> > > > > > that support this option, but most of us use SVN ;-) ) in
> > replacement
> > > > to
> > > > > a
> > > > > > timestamp, so that a specific timestamp can easily be rebuilded
> at
> > > > > anytime
> > > > > > ?
> > > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > > >
> > > > > > Nicolas.
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Nick Stolwijk <ni...@gmail.com>.
The other option would be to create a release of the plugin in your own
repository, with an own version number.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl


On Wed, Aug 13, 2008 at 2:20 PM, nicolas de loof <ni...@apache.org> wrote:

> The option is to allow timestamp for SNAPSHOT dependencies, considering the
> timestamp jar will not be updated as a SNAPSHOT would, and so the build
> get's reproductible ... until the snapshot repo gets cleaned !
>
> The idea is interesting as we hardly get plugin releases, and have no
> roadmap for them, so a project that requires a bug fix has no other option
>
>
> 2008/8/13 Stephen Connolly <st...@gmail.com>
>
> > Oooooh! there's an option to allow snapshot dependencies in release?
>  Cool!
> > I did not know that... Now I can go cause me a heap load of trouble!
> >
> > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
> > wrote:
> >
> > > Would you DEPLOY a snapshot without first testing and commiting ?
> > >
> > > You're right that this is not a 100% safe way to fix this issue, just
> an
> > > attempt to make things (a little bit) more stable.
> > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > release/enforcer option to accept them ;-)
> > >
> > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > >
> > > > Of course the problem with that is what if there were local changes
> > when
> > > > the
> > > > build was made?  Now the SCM revision is meaningless
> > > >
> > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <nicolas@apache.org
> >
> > > > wrote:
> > > >
> > > > > Recent snapshot repository purge introduced issues for those of us
> > that
> > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
> > valid
> > > > > usecase as supported by the release and enforcer plugins.
> > > > >
> > > > > There is no way to rebuild such jars, as we can get the sources
> from
> > > SCM
> > > > > according to date, but cannot build and deploy the jar with the
> > > expected
> > > > > name (manual renaming is required).
> > > > >
> > > > > Could we consider for future the option to use the SCM revision (
> for
> > > SCM
> > > > > that support this option, but most of us use SVN ;-) ) in
> replacement
> > > to
> > > > a
> > > > > timestamp, so that a specific timestamp can easily be rebuilded at
> > > > anytime
> > > > > ?
> > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > >
> > > > > Nicolas.
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Stephen Connolly <st...@gmail.com>.
Or... if ye don't like that... why not _use four numbers_ and make the rule
be that for a three number release you must call a vote....

Of course that would involve fixing DefaultArtifactVersion.compareTo....

-Stephen


On Wed, Aug 13, 2008 at 1:25 PM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> Well let's change that.
>
> Hudson has shown, MANY relases made FREQUENTLY is better than fewer.
>
> Could we have a public staging repo... and have the rule that to deploy to
> this repo you don't need a vote... to promote from that repo to repo1 you
> need the vote.
>
> Then, we just roll relases to the stanging repo as we develop rather than
> having to call votes (which is a higher barrier)
>
> If that means that repo1 has maven-foo-plugin version 2.0.7 and 2.0.983 and
> nothing inbetween because nobody called a vote... I say fine
>
> -Stephen
>
> On Wed, Aug 13, 2008 at 1:20 PM, nicolas de loof <ni...@apache.org>wrote:
>
>> The option is to allow timestamp for SNAPSHOT dependencies, considering
>> the
>> timestamp jar will not be updated as a SNAPSHOT would, and so the build
>> get's reproductible ... until the snapshot repo gets cleaned !
>>
>> The idea is interesting as we hardly get plugin releases, and have no
>> roadmap for them, so a project that requires a bug fix has no other option
>>
>>
>> 2008/8/13 Stephen Connolly <st...@gmail.com>
>>
>> > Oooooh! there's an option to allow snapshot dependencies in release?
>>  Cool!
>> > I did not know that... Now I can go cause me a heap load of trouble!
>> >
>> > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
>> > wrote:
>> >
>> > > Would you DEPLOY a snapshot without first testing and commiting ?
>> > >
>> > > You're right that this is not a 100% safe way to fix this issue, just
>> an
>> > > attempt to make things (a little bit) more stable.
>> > > A full fix would be to never use SNAPSHOTs, and to deprecate
>> > > release/enforcer option to accept them ;-)
>> > >
>> > > 2008/8/13 Stephen Connolly <st...@gmail.com>
>> > >
>> > > > Of course the problem with that is what if there were local changes
>> > when
>> > > > the
>> > > > build was made?  Now the SCM revision is meaningless
>> > > >
>> > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <
>> nicolas@apache.org>
>> > > > wrote:
>> > > >
>> > > > > Recent snapshot repository purge introduced issues for those of us
>> > that
>> > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
>> > valid
>> > > > > usecase as supported by the release and enforcer plugins.
>> > > > >
>> > > > > There is no way to rebuild such jars, as we can get the sources
>> from
>> > > SCM
>> > > > > according to date, but cannot build and deploy the jar with the
>> > > expected
>> > > > > name (manual renaming is required).
>> > > > >
>> > > > > Could we consider for future the option to use the SCM revision (
>> for
>> > > SCM
>> > > > > that support this option, but most of us use SVN ;-) ) in
>> replacement
>> > > to
>> > > > a
>> > > > > timestamp, so that a specific timestamp can easily be rebuilded at
>> > > > anytime
>> > > > > ?
>> > > > > The version format could be "X.Y.Z-revision-ABCDE".
>> > > > >
>> > > > > Nicolas.
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Stephen Connolly <st...@gmail.com>.
Well let's change that.

Hudson has shown, MANY relases made FREQUENTLY is better than fewer.

Could we have a public staging repo... and have the rule that to deploy to
this repo you don't need a vote... to promote from that repo to repo1 you
need the vote.

Then, we just roll relases to the stanging repo as we develop rather than
having to call votes (which is a higher barrier)

If that means that repo1 has maven-foo-plugin version 2.0.7 and 2.0.983 and
nothing inbetween because nobody called a vote... I say fine

-Stephen

On Wed, Aug 13, 2008 at 1:20 PM, nicolas de loof <ni...@apache.org> wrote:

> The option is to allow timestamp for SNAPSHOT dependencies, considering the
> timestamp jar will not be updated as a SNAPSHOT would, and so the build
> get's reproductible ... until the snapshot repo gets cleaned !
>
> The idea is interesting as we hardly get plugin releases, and have no
> roadmap for them, so a project that requires a bug fix has no other option
>
>
> 2008/8/13 Stephen Connolly <st...@gmail.com>
>
> > Oooooh! there's an option to allow snapshot dependencies in release?
>  Cool!
> > I did not know that... Now I can go cause me a heap load of trouble!
> >
> > On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
> > wrote:
> >
> > > Would you DEPLOY a snapshot without first testing and commiting ?
> > >
> > > You're right that this is not a 100% safe way to fix this issue, just
> an
> > > attempt to make things (a little bit) more stable.
> > > A full fix would be to never use SNAPSHOTs, and to deprecate
> > > release/enforcer option to accept them ;-)
> > >
> > > 2008/8/13 Stephen Connolly <st...@gmail.com>
> > >
> > > > Of course the problem with that is what if there were local changes
> > when
> > > > the
> > > > build was made?  Now the SCM revision is meaningless
> > > >
> > > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <nicolas@apache.org
> >
> > > > wrote:
> > > >
> > > > > Recent snapshot repository purge introduced issues for those of us
> > that
> > > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
> > valid
> > > > > usecase as supported by the release and enforcer plugins.
> > > > >
> > > > > There is no way to rebuild such jars, as we can get the sources
> from
> > > SCM
> > > > > according to date, but cannot build and deploy the jar with the
> > > expected
> > > > > name (manual renaming is required).
> > > > >
> > > > > Could we consider for future the option to use the SCM revision (
> for
> > > SCM
> > > > > that support this option, but most of us use SVN ;-) ) in
> replacement
> > > to
> > > > a
> > > > > timestamp, so that a specific timestamp can easily be rebuilded at
> > > > anytime
> > > > > ?
> > > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > > >
> > > > > Nicolas.
> > > > >
> > > >
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by nicolas de loof <ni...@apache.org>.
The option is to allow timestamp for SNAPSHOT dependencies, considering the
timestamp jar will not be updated as a SNAPSHOT would, and so the build
get's reproductible ... until the snapshot repo gets cleaned !

The idea is interesting as we hardly get plugin releases, and have no
roadmap for them, so a project that requires a bug fix has no other option


2008/8/13 Stephen Connolly <st...@gmail.com>

> Oooooh! there's an option to allow snapshot dependencies in release?  Cool!
> I did not know that... Now I can go cause me a heap load of trouble!
>
> On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
> wrote:
>
> > Would you DEPLOY a snapshot without first testing and commiting ?
> >
> > You're right that this is not a 100% safe way to fix this issue, just an
> > attempt to make things (a little bit) more stable.
> > A full fix would be to never use SNAPSHOTs, and to deprecate
> > release/enforcer option to accept them ;-)
> >
> > 2008/8/13 Stephen Connolly <st...@gmail.com>
> >
> > > Of course the problem with that is what if there were local changes
> when
> > > the
> > > build was made?  Now the SCM revision is meaningless
> > >
> > > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <ni...@apache.org>
> > > wrote:
> > >
> > > > Recent snapshot repository purge introduced issues for those of us
> that
> > > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
> valid
> > > > usecase as supported by the release and enforcer plugins.
> > > >
> > > > There is no way to rebuild such jars, as we can get the sources from
> > SCM
> > > > according to date, but cannot build and deploy the jar with the
> > expected
> > > > name (manual renaming is required).
> > > >
> > > > Could we consider for future the option to use the SCM revision ( for
> > SCM
> > > > that support this option, but most of us use SVN ;-) ) in replacement
> > to
> > > a
> > > > timestamp, so that a specific timestamp can easily be rebuilded at
> > > anytime
> > > > ?
> > > > The version format could be "X.Y.Z-revision-ABCDE".
> > > >
> > > > Nicolas.
> > > >
> > >
> >
>

RE: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Exactly. Don't do that....

Making snapshots scm dependent just leads more credibility to using them
when you should have a release.

-----Original Message-----
From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com] 
Sent: Wednesday, August 13, 2008 8:16 AM
To: Maven Developers List
Subject: Re: suggest : option to replace snapshot "timestamp" with
buildnumber

Oooooh! there's an option to allow snapshot dependencies in release?
Cool!
I did not know that... Now I can go cause me a heap load of trouble!

On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org>
wrote:

> Would you DEPLOY a snapshot without first testing and commiting ?
>
> You're right that this is not a 100% safe way to fix this issue, just
an
> attempt to make things (a little bit) more stable.
> A full fix would be to never use SNAPSHOTs, and to deprecate
> release/enforcer option to accept them ;-)
>
> 2008/8/13 Stephen Connolly <st...@gmail.com>
>
> > Of course the problem with that is what if there were local changes
when
> > the
> > build was made?  Now the SCM revision is meaningless
> >
> > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof
<ni...@apache.org>
> > wrote:
> >
> > > Recent snapshot repository purge introduced issues for those of us
that
> > > depend on a specific timestamp SNAPSHOT. This is supposed to be a
valid
> > > usecase as supported by the release and enforcer plugins.
> > >
> > > There is no way to rebuild such jars, as we can get the sources
from
> SCM
> > > according to date, but cannot build and deploy the jar with the
> expected
> > > name (manual renaming is required).
> > >
> > > Could we consider for future the option to use the SCM revision (
for
> SCM
> > > that support this option, but most of us use SVN ;-) ) in
replacement
> to
> > a
> > > timestamp, so that a specific timestamp can easily be rebuilded at
> > anytime
> > > ?
> > > The version format could be "X.Y.Z-revision-ABCDE".
> > >
> > > Nicolas.
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Stephen Connolly <st...@gmail.com>.
Oooooh! there's an option to allow snapshot dependencies in release?  Cool!
I did not know that... Now I can go cause me a heap load of trouble!

On Wed, Aug 13, 2008 at 1:14 PM, nicolas de loof <ni...@apache.org> wrote:

> Would you DEPLOY a snapshot without first testing and commiting ?
>
> You're right that this is not a 100% safe way to fix this issue, just an
> attempt to make things (a little bit) more stable.
> A full fix would be to never use SNAPSHOTs, and to deprecate
> release/enforcer option to accept them ;-)
>
> 2008/8/13 Stephen Connolly <st...@gmail.com>
>
> > Of course the problem with that is what if there were local changes when
> > the
> > build was made?  Now the SCM revision is meaningless
> >
> > On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <ni...@apache.org>
> > wrote:
> >
> > > Recent snapshot repository purge introduced issues for those of us that
> > > depend on a specific timestamp SNAPSHOT. This is supposed to be a valid
> > > usecase as supported by the release and enforcer plugins.
> > >
> > > There is no way to rebuild such jars, as we can get the sources from
> SCM
> > > according to date, but cannot build and deploy the jar with the
> expected
> > > name (manual renaming is required).
> > >
> > > Could we consider for future the option to use the SCM revision ( for
> SCM
> > > that support this option, but most of us use SVN ;-) ) in replacement
> to
> > a
> > > timestamp, so that a specific timestamp can easily be rebuilded at
> > anytime
> > > ?
> > > The version format could be "X.Y.Z-revision-ABCDE".
> > >
> > > Nicolas.
> > >
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by nicolas de loof <ni...@apache.org>.
Would you DEPLOY a snapshot without first testing and commiting ?

You're right that this is not a 100% safe way to fix this issue, just an
attempt to make things (a little bit) more stable.
A full fix would be to never use SNAPSHOTs, and to deprecate
release/enforcer option to accept them ;-)

2008/8/13 Stephen Connolly <st...@gmail.com>

> Of course the problem with that is what if there were local changes when
> the
> build was made?  Now the SCM revision is meaningless
>
> On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <ni...@apache.org>
> wrote:
>
> > Recent snapshot repository purge introduced issues for those of us that
> > depend on a specific timestamp SNAPSHOT. This is supposed to be a valid
> > usecase as supported by the release and enforcer plugins.
> >
> > There is no way to rebuild such jars, as we can get the sources from SCM
> > according to date, but cannot build and deploy the jar with the expected
> > name (manual renaming is required).
> >
> > Could we consider for future the option to use the SCM revision ( for SCM
> > that support this option, but most of us use SVN ;-) ) in replacement to
> a
> > timestamp, so that a specific timestamp can easily be rebuilded at
> anytime
> > ?
> > The version format could be "X.Y.Z-revision-ABCDE".
> >
> > Nicolas.
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Nick Stolwijk <ni...@gmail.com>.
You could use the buildnumber maven plugin [1] in a profile with its doCheck
method to check for local modifications.

[1] http://mojo.codehaus.org/buildnumber-maven-plugin/

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl


On Wed, Aug 13, 2008 at 2:10 PM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> Of course the problem with that is what if there were local changes when
> the
> build was made?  Now the SCM revision is meaningless
>
> On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <ni...@apache.org>
> wrote:
>
> > Recent snapshot repository purge introduced issues for those of us that
> > depend on a specific timestamp SNAPSHOT. This is supposed to be a valid
> > usecase as supported by the release and enforcer plugins.
> >
> > There is no way to rebuild such jars, as we can get the sources from SCM
> > according to date, but cannot build and deploy the jar with the expected
> > name (manual renaming is required).
> >
> > Could we consider for future the option to use the SCM revision ( for SCM
> > that support this option, but most of us use SVN ;-) ) in replacement to
> a
> > timestamp, so that a specific timestamp can easily be rebuilded at
> anytime
> > ?
> > The version format could be "X.Y.Z-revision-ABCDE".
> >
> > Nicolas.
> >
>

Re: suggest : option to replace snapshot "timestamp" with buildnumber

Posted by Stephen Connolly <st...@gmail.com>.
Of course the problem with that is what if there were local changes when the
build was made?  Now the SCM revision is meaningless

On Wed, Aug 13, 2008 at 1:03 PM, nicolas de loof <ni...@apache.org> wrote:

> Recent snapshot repository purge introduced issues for those of us that
> depend on a specific timestamp SNAPSHOT. This is supposed to be a valid
> usecase as supported by the release and enforcer plugins.
>
> There is no way to rebuild such jars, as we can get the sources from SCM
> according to date, but cannot build and deploy the jar with the expected
> name (manual renaming is required).
>
> Could we consider for future the option to use the SCM revision ( for SCM
> that support this option, but most of us use SVN ;-) ) in replacement to a
> timestamp, so that a specific timestamp can easily be rebuilded at anytime
> ?
> The version format could be "X.Y.Z-revision-ABCDE".
>
> Nicolas.
>