[ 
https://issues.apache.org/jira/browse/MPLUGIN-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326677#comment-17326677
 ] 

Robert Scholte commented on MPLUGIN-352:
----------------------------------------

In my mind I thought this was about showing a sample of a complete 
<configuration> to the console, but this is much more, including 
- interactive (similar to maven-archetype I guess)
- updating the pom.
I assume it would be a subset of the available parameters, as you don't want to 
ask for all properties one by one, see 
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
A new annotation is the first thing that comes to my mind, but this is quite a 
huge task.

> Add support for :config goal for all plugins
> --------------------------------------------
>
>                 Key: MPLUGIN-352
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-352
>             Project: Maven Plugin Tools
>          Issue Type: New Feature
>          Components: API, maven-plugin-annotations, Metadata Model, Plugin 
> Plugin
>    Affects Versions: 3.6.0
>            Reporter: Bruno Borges
>            Priority: Major
>
> Maven Plugins often require a <configuration> element that must be provided 
> by the user, either manually edited or usually copy/pasted. Some plugins are 
> well known by IDEs and this element can be auto-completed fairly well. But in 
> general, the <configuration> element has no XML Schema support, and 
> developers have to rely on documentation, sometimes complex, in how to set up 
> the different elements and values.
> The Azure Web App Maven plugin introduced in version 1.6.0 a :config goal 
> that provides users with an interactive mode in the command line that guides 
> users through the many different options and deployment models. Then 
> generates the <configuration> element and updates the pom.xml file on behalf 
> of the user.
> https://github.com/microsoft/azure-maven-plugins/blob/master/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/ConfigMojo.java
> Currently, there is no standard way for plugins to define a configuration 
> goal. 
> This feature can provide the foundation for this goal, where plugins simply 
> have to define the structure and data schema, and the :config goal can be 
> abstracted well enough for 80-90% of all plugins.



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

Reply via email to