Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2256

Misleading documentation regarding configuration of java.utils.Properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.5
    • Component/s: Documentation: General
    • Labels:
      None

      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>
      .............

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: