[ https://issues.apache.org/jira/browse/MDEP-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17880771#comment-17880771 ]
ASF GitHub Bot commented on MDEP-941: ------------------------------------- jglick commented on code in PR #411: URL: https://github.com/apache/maven-dependency-plugin/pull/411#discussion_r1752628472 ########## src/main/java/org/apache/maven/plugins/dependency/resolvers/OldResolveDependencySourcesMojo.java: ########## @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.plugins.dependency.resolvers; + +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.ResolutionScope; + +/** + * Goal that resolves the project source dependencies from the repository. + * + * @author <a href="mailto:bri...@apache.org">Brian Fox</a> + * @since 2.0-alpha2 + * @deprecated in favor of {@code resolve-sources} goal and will be removed in a future version Review Comment: I am just pointing out that when as a Maven user you see this warning in your build, you may spend time trying to figure out what all you need to do in order to migrate to the new goal, when in fact you need do nothing beyond add `resolve-` to your command. > Deprecate dependency:sources in favor of dependency:resolve-sources > ------------------------------------------------------------------- > > Key: MDEP-941 > URL: https://issues.apache.org/jira/browse/MDEP-941 > Project: Maven Dependency Plugin > Issue Type: Task > Components: sources > Affects Versions: 3.6.1 > Reporter: Michael Osipov > Assignee: Michael Osipov > Priority: Major > Fix For: 3.7.0 > > > Unfortunately, the goal name does not really depict what the goal is doing, > it fact it causes confusion as in MDEP-895. The name should clearly say that > it *resolves* sources and does not collect (semantics is imporant). The new > goal {{resolve-sources}} is functionally equivalent, but is just more > expressive. -- This message was sent by Atlassian Jira (v8.20.10#820010)