Maven 2 & 3

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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: