Maven
  1. Maven
  2. MNG-2256

Misleading documentation regarding configuration of java.utils.Properties

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.5
    • Component/s: Documentation: General
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Location: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

      Snippet:

      Properties
      This category covers any map which implements java.util.Properties. These parameters are configured by including XML tags in the form <key>value</key> in the parameter configuration.

      This lead me to believe I could set properties like this:

      ........
      <configuration>
      <myPropertiesObject>
      <propertyName>propertyValue</propertyName>
      </myPropertiesObject>
      </configuration>
      .............

      Instead I've found I need to do it like this:

      ........
      <configuration>
      <myPropertiesObject>
      <property>
      <name>propertyName</name>
      <value>propertyValue</value>
      <property>
      </myPropertiesObject>
      </configuration>
      .............

        Issue Links

          Activity

          Hide
          Vincent Siveton added a comment -

          Fixed and completed also "Guide to Configuring Plug-ins"

          Show
          Vincent Siveton added a comment - Fixed and completed also "Guide to Configuring Plug-ins"

            People

            • Assignee:
              Vincent Siveton
              Reporter:
              James Talmage
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: