cstamas commented on a change in pull request #52:
URL: https://github.com/apache/maven-plugin-tools/pull/52#discussion_r757943160
##########
File path:
maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorUtils.java
##########
@@ -122,14 +122,19 @@ public static void element( XMLWriter w, String name,
String value, boolean asTe
/**
* @param artifacts not null collection of <code>Artifact</code>
- * @return list of component dependencies
+ * @return list of component dependencies, only in compile scope
*/
public static List<ComponentDependency> toComponentDependencies(
Collection<Artifact> artifacts )
{
List<ComponentDependency> componentDeps = new LinkedList<>();
for ( Artifact artifact : artifacts )
{
+ if ( !Artifact.SCOPE_COMPILE.equals( artifact.getScope() ) )
Review comment:
I would rather make `SCOPE = PROVIDED` (then continue). What about
runtime scope? Just to be on safe side.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]