[
https://issues.apache.org/jira/browse/MPLUGIN-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305684#comment-17305684
]
Robert Scholte commented on MPLUGIN-350:
----------------------------------------
Let's keep the scope here on the plugin-api/annotations.
What I'm saying is that as maintainer I know of every parameter if it is an
input or an output parameter.
For example:
https://maven.apache.org/plugins/maven-scripting-plugin/eval-mojo.html
All 3 parameters are input parameters, and this ticket is being able to mark
these parameters as input parameters.
Now your concern: the script could generate a new file in target/classes,
disturbing the output.
You cannot control that via the parameters.
Instead we somehow need to mark the Mojo as "not Maven Context Aware", which
should imply that it will always change the output and this goal should always
be executed.
Any proposal to introduce a related option to the pom file should be issues as
MNG for Maven 5.
> Extend @Parameter with input/output option
> ------------------------------------------
>
> Key: MPLUGIN-350
> URL: https://issues.apache.org/jira/browse/MPLUGIN-350
> Project: Maven Plugin Tools
> Issue Type: New Feature
> Reporter: Robert Scholte
> Priority: Major
>
> By knowing if parameters are input or output parameters, it is possible to
> improve our builds. It will be possible to create DAGs and chain the
> execution blocks much smarter.
> The Maven Extension created by Gradle heavily relies on this kind of
> information.
> It is probably easier to use new annotations instead of adding a (required)
> status-field to @Parameter
> Looking at the {{plugin.xml}} it looks quite easy to solve this and stay
> backwards compatible: the file looks now like:
> {code:xml}
> <parameters>
> <parameter>
> ...
> </parameter>
> </parameters>
> {code}
> With plexus-magic the following should still work:
> {code:xml}
> <parameters>
> <input>
> ...
> </input>
> <output>
> ...
> </output>
> </parameters>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)