Skip to content

Commit

Permalink
Delete obsolete commented code for issue that was won't fixed 10 year…
Browse files Browse the repository at this point in the history
…s ago (#446)
  • Loading branch information
elharo authored Oct 17, 2024
1 parent 7b137a1 commit e347ef7
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,24 +192,14 @@ private boolean checkIfProcessingNeeded(ArtifactItem item) throws ArtifactFilter
* Resolves the Artifact from the remote repository if necessary. If no version is specified, it will be retrieved
* from the dependency list or from the DependencyManagement section of the pom.
*
* @param artifactItem containing information about artifact from plugin configuration.
* @return Artifact object representing the specified file.
* @throws MojoExecutionException with a message if the version can't be found in DependencyManagement.
* @param artifactItem containing information about artifact from plugin configuration
* @return Artifact object representing the specified file
* @throws MojoExecutionException if the version can't be found in DependencyManagement
*/
protected Artifact getArtifact(ArtifactItem artifactItem) throws MojoExecutionException {
Artifact artifact;

try {
// mdep-50 - rolledback for now because it's breaking some functionality.
/*
* List listeners = new ArrayList(); Set theSet = new HashSet(); theSet.add( artifact );
* ArtifactResolutionResult artifactResolutionResult = artifactCollector.collect( theSet, project
* .getArtifact(), managedVersions, this.local, project.getRemoteArtifactRepositories(),
* artifactMetadataSource, null, listeners ); Iterator iter =
* artifactResolutionResult.getArtifactResolutionNodes().iterator(); while ( iter.hasNext() ) {
* ResolutionNode node = (ResolutionNode) iter.next(); artifact = node.getArtifact(); }
*/

ProjectBuildingRequest buildingRequest = newResolveArtifactProjectBuildingRequest();

if (localRepositoryDirectory != null) {
Expand Down

0 comments on commit e347ef7

Please sign in to comment.