maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <>
Subject Re: [MNG-2994] Snapshot repositories are not checked when using ranges
Date Mon, 21 May 2007 22:52:52 GMT
It seems more that you'd need to change the code that is relying on  
the isSnapshot result from the wrong directory?

On 21/05/2007, at 10:32 PM, Mark Hobson wrote:

> Hi there,
> I'm wondering what the best approach is to fix MNG-2994 [1].  The
> problem appears to be that the RepositoryMetadata implementation for
> an artifact directory itself returns false for isSnapshot.  The code
> states that this is done since version information is below this
> metadata, which is true, although returning false is misleading for
> reasons described in the issue.
> I'd have thought we would need a way for RepositoryMetadata.isSnapshot
> to state it doesn't yet know whether it is a snapshot or not.  Either
> changing the return type to Boolean to allow null, or introducing a
> further method would work.  I believe this problem may also affect
> Artifact.isSnapshot.
> Any thoughts on the best way forward?
> Cheers,
> Mark
> [1]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message