Skip to content

Commit e347ef7

Browse files
authored
Delete obsolete commented code for issue that was won't fixed 10 years ago (#446)
1 parent 7b137a1 commit e347ef7

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/AbstractFromConfigurationMojo.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -192,24 +192,14 @@ private boolean checkIfProcessingNeeded(ArtifactItem item) throws ArtifactFilter
192192
* Resolves the Artifact from the remote repository if necessary. If no version is specified, it will be retrieved
193193
* from the dependency list or from the DependencyManagement section of the pom.
194194
*
195-
* @param artifactItem containing information about artifact from plugin configuration.
196-
* @return Artifact object representing the specified file.
197-
* @throws MojoExecutionException with a message if the version can't be found in DependencyManagement.
195+
* @param artifactItem containing information about artifact from plugin configuration
196+
* @return Artifact object representing the specified file
197+
* @throws MojoExecutionException if the version can't be found in DependencyManagement
198198
*/
199199
protected Artifact getArtifact(ArtifactItem artifactItem) throws MojoExecutionException {
200200
Artifact artifact;
201201

202202
try {
203-
// mdep-50 - rolledback for now because it's breaking some functionality.
204-
/*
205-
* List listeners = new ArrayList(); Set theSet = new HashSet(); theSet.add( artifact );
206-
* ArtifactResolutionResult artifactResolutionResult = artifactCollector.collect( theSet, project
207-
* .getArtifact(), managedVersions, this.local, project.getRemoteArtifactRepositories(),
208-
* artifactMetadataSource, null, listeners ); Iterator iter =
209-
* artifactResolutionResult.getArtifactResolutionNodes().iterator(); while ( iter.hasNext() ) {
210-
* ResolutionNode node = (ResolutionNode) iter.next(); artifact = node.getArtifact(); }
211-
*/
212-
213203
ProjectBuildingRequest buildingRequest = newResolveArtifactProjectBuildingRequest();
214204

215205
if (localRepositoryDirectory != null) {

0 commit comments

Comments
 (0)