[ 
https://issues.apache.org/jira/browse/MPLUGIN-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17712689#comment-17712689
 ] 

ASF GitHub Bot commented on MPLUGIN-457:
----------------------------------------

kwin commented on code in PR #201:
URL: 
https://github.com/apache/maven-plugin-tools/pull/201#discussion_r1167583307


##########
maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java:
##########
@@ -570,19 +572,18 @@ protected void extendJavaProjectBuilderWithSourcesJar(
             JavaProjectBuilder builder, Artifact artifact, PluginToolsRequest 
request, String classifier)
             throws ExtractionException {
         try {
-            Artifact sourcesArtifact = 
repositorySystem.createArtifactWithClassifier(
+            org.eclipse.aether.artifact.Artifact sourcesArtifact = new 
DefaultArtifact(
                     artifact.getGroupId(),
                     artifact.getArtifactId(),
-                    artifact.getVersion(),
+                    classifier,
                     artifact.getType(),

Review Comment:
   This must be the extension not the type





> Use Resolver API, get rid of localRepository
> --------------------------------------------
>
>                 Key: MPLUGIN-457
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-457
>             Project: Maven Plugin Tools
>          Issue Type: Improvement
>            Reporter: Slawomir Jaranowski
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: next-release
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to