maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier D." <mavenli...@squarecirclegroup.com>
Subject Specifying Multi-value parameters with custom plugin
Date Wed, 22 Sep 2010 06:52:02 GMT
I have written a multi-value plugin with parameter:

/**
* @required
* @parameter
*/
private String[] items;

public String[] getItems(){}
public void setItems(String[] labels) {}

However, mvn reports an error that it is not configured
(<items>VALUE</items>) whenever I try to specify the configuration as:
<configuration>
  <items>
    <item>1</item>
    <item>2</item>
    <label>3</item>
  </items>

or as:

  <items>
    <param>1</param>
    <param>2</param>
    <param>3</param>
  </items>

Xavier

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message