@@ -192,24 +192,14 @@ private boolean checkIfProcessingNeeded(ArtifactItem item) throws ArtifactFilter
192
192
* Resolves the Artifact from the remote repository if necessary. If no version is specified, it will be retrieved
193
193
* from the dependency list or from the DependencyManagement section of the pom.
194
194
*
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
198
198
*/
199
199
protected Artifact getArtifact (ArtifactItem artifactItem ) throws MojoExecutionException {
200
200
Artifact artifact ;
201
201
202
202
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
-
213
203
ProjectBuildingRequest buildingRequest = newResolveArtifactProjectBuildingRequest ();
214
204
215
205
if (localRepositoryDirectory != null ) {
0 commit comments