You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2021/03/31 21:49:00 UTC

[jira] [Created] (MNG-7133) Allow to inline collection/array items within plugin root configuration

Slawomir Jaranowski created MNG-7133:
----------------------------------------

             Summary: Allow to inline collection/array items within plugin root configuration
                 Key: MNG-7133
                 URL: https://issues.apache.org/jira/browse/MNG-7133
             Project: Maven
          Issue Type: Improvement
          Components: Plugins and Lifecycle
    Affects Versions: 3.6.3
            Reporter: Slawomir Jaranowski


Currently we can have plugin configurations like:

{code:xml}
<configuration>
  <fileset>
    <include>Foo*</include>
    <include>Bar*</include>
    <exclude>*Bad</exclude>
  </fileset>
<configuration>
{code}

When we add method {{addInclude}} on class {{Fileset}} such configuration is working - according to issue: MNG-5033

But when we have plugin configuration like:
{code:xml}
<configuration>
  <include>Foo*</include>
  <include>Bar*</include>
<configuration>
{code}

and add method {{addInclude}} to Plugin mojo class this is not working.

{{addInclude}} method on plugin level is *called only once* - it looks like some code of plugin api allow inline include of collection but another place don't allow.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)