[MNG-7133] Allow to inline collection/array items within plugin root configuration
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 40m
- Merged PRs (30d)
- 275
Description
**[Slawomir Jaranowski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slawekjaranowski)** opened **[MNG-7133](https://issues.apache.org/jira/browse/MNG-7133?redirect=false)** and commented
Currently we can have plugin configurations like:
```xml
Foo*
Bar*
```
But when we have plugin configuration like:
```xml
Foo*
Bar*
```
and add method `addListParam` to Plugin mojo class this is not working.
`addListParam` method on plugin level is **called only once**
Plugin code:
```java
public class MyMojo extends AbstractMojo {
@Parameter
private List listParam;
/**
* special method called when inline collection in configuration is used.
*/
public void addListParam(String value) {
listParam.add(value);
}
}
```
---
**Affects:** 3.6.3
**Issue Links:**
- [MNGSITE-445](https://issues.apache.org/jira/browse/MNGSITE-445) Document "inlined collections" approach for plugin configuration
- [MNG-5033](https://issues.apache.org/jira/browse/MNG-5033) Allow to inline collection/array items within plugin configuration
**Remote Links:**
- [GitHub Pull Request #464
](https://github.com/apache/maven/pull/464)
0 votes, 5 watchers
Contributor guide
Assessment
This issue has not been assessed yet.