[
https://issues.apache.org/jira/browse/MPLUGIN-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567082#comment-14567082
]
Dennis Lundberg commented on MPLUGIN-271:
-----------------------------------------
I just ran into this as well when looking at MPMD-206, where I want to do this:
{code:java}
/**
* The directories containing the sources to be compiled.
*/
@Parameter( defaultValue = "${project.compileSourceRoots}" )
private List<String> compileSourceRoots;
{code}
The problem is that it is not possible to manually set {{compileSourceRoots}}
in the POM - it always uses the default value.
In this case getting multiple values as a default value works, because it is
injected from the POM. Karl Heinz' suggestion for handling multiple default
values looks fine, from a user point of view. Haven't looked at how easy it
would be to implement though.
Specifying parameters on the command line is a different beast, but could be
done later if it's too complicated.
> Usage of defaultValues for a List<..> Parameter seemed not to be working
> ------------------------------------------------------------------------
>
> Key: MPLUGIN-271
> URL: https://issues.apache.org/jira/browse/MPLUGIN-271
> Project: Maven Plugin Tools
> Issue Type: Bug
> Components: maven-plugin-annotations
> Affects Versions: 3.3
> Reporter: Karl Heinz Marbaise
> Priority: Critical
>
> Currently the following seemed to be not working:
> {code:java}
> @Parameter( defaultValue = "*/pom.xml" )
> private List<String> pomIncludes;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)