maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Ferguson <william.fergu...@xandar.com.au>
Subject Re: git commit: Deprecate unused version of the project dependencies resovler in the core
Date Sat, 05 Jul 2014 12:44:43 GMT
The original Java deprecation guidelines were to
1) Include a "since" statement indicating at point the API was deprecated
2) include a statement pointing to the replacement API (or non-replacement
and reason for same).


On Sat, Jul 5, 2014 at 10:34 PM, Robert Scholte <rfscholte@apache.org>
wrote:

> +1, I often hit deprecated code without knowing what to use instead. A
> hint would certainly help.
>
> Robert
>
> Op Sat, 05 Jul 2014 14:32:14 +0200 schreef Hervé BOUTEMY <
> herve.boutemy@free.fr>:
>
>
>  when we deprecate somthing like this, we should add a hint on what to do
>> instead: we have a bunch of deprecated things without any idea on what to
>> do
>> I don't know how we can fix the existing deprecations, but at least I'd
>> like to
>> avoid adding more such "dead-end" deprecations
>>
>> Regards,
>>
>> Hervé
>>
>> Le samedi 5 juillet 2014 12:19:01 jvanzyl@apache.org a écrit :
>>
>>> Repository: maven
>>> Updated Branches:
>>>   refs/heads/master 963373726 -> 9cc2caeb9
>>>
>>>
>>> Deprecate unused version of the project dependencies resovler in the core
>>>
>>>
>>> Project: http://git-wip-us.apache.org/repos/asf/maven/repo
>>> Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/9cc2caeb
>>> Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/9cc2caeb
>>> Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/9cc2caeb
>>>
>>> Branch: refs/heads/master
>>> Commit: 9cc2caeb9f54e44587e7642bb43592de7e177f4f
>>> Parents: 9633737
>>> Author: Jason van Zyl <jason@tesla.io>
>>> Authored: Sat Jul 5 08:18:38 2014 -0400
>>> Committer: Jason van Zyl <jason@tesla.io>
>>> Committed: Sat Jul 5 08:18:38 2014 -0400
>>>
>>> ----------------------------------------------------------------------
>>>  .../java/org/apache/maven/DefaultProjectDependenciesResolver.java   |
>>> 1 +
>>>  .../src/main/java/org/apache/maven/ProjectDependenciesResolver.java |
>>> 1 +
>>>  2 files changed, 2 insertions(+)
>>> ----------------------------------------------------------------------
>>>
>>>
>>> http://git-wip-us.apache.org/repos/asf/maven/blob/9cc2caeb/
>>> maven-core/src/ma
>>> in/java/org/apache/maven/DefaultProjectDependenciesResolver.java
>>> ----------------------------------------------------------------------
>>> diff
>>> --git
>>> a/maven-core/src/main/java/org/apache/maven/
>>> DefaultProjectDependenciesResol
>>> ver.java
>>> b/maven-core/src/main/java/org/apache/maven/
>>> DefaultProjectDependenciesResol
>>> ver.java index d511d1d..3511d90 100644
>>> ---
>>> a/maven-core/src/main/java/org/apache/maven/
>>> DefaultProjectDependenciesResol
>>> ver.java +++
>>> b/maven-core/src/main/java/org/apache/maven/
>>> DefaultProjectDependenciesResol
>>> ver.java @@ -42,6 +42,7 @@ import
>>> org.apache.maven.repository.RepositorySystem; import
>>> org.codehaus.plexus.component.annotations.Component;
>>>  import org.codehaus.plexus.component.annotations.Requirement;
>>>
>>> +@Deprecated
>>>  @Component( role = ProjectDependenciesResolver.class )
>>>  public class DefaultProjectDependenciesResolver
>>>      implements ProjectDependenciesResolver
>>>
>>> http://git-wip-us.apache.org/repos/asf/maven/blob/9cc2caeb/
>>> maven-core/src/ma
>>> in/java/org/apache/maven/ProjectDependenciesResolver.java
>>> ----------------------------------------------------------------------
>>> diff
>>> --git
>>> a/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.
>>> jav
>>> a
>>> b/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.
>>> jav
>>> a index 7ae86fd..5a14b6f 100644
>>> ---
>>> a/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.
>>> jav
>>> a +++
>>> b/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.
>>> jav
>>> a @@ -28,6 +28,7 @@ import
>>> org.apache.maven.artifact.resolver.ArtifactResolutionException; import
>>> org.apache.maven.execution.MavenSession;
>>>  import org.apache.maven.project.MavenProject;
>>>
>>> +@Deprecated
>>>  public interface ProjectDependenciesResolver
>>>  {
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message