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

Misleading documentation regarding configuration of java.utils.Properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.5
    • Documentation: General
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: