Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-352

Add support for :config goal for all plugins

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bruno.borges Bruno Borges
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: