It seems the trick I was missing is the following: 1. Make the variable in the Java file be plural (end in "s"). 2. Then use the singular multiple times wrapped in the plural tag value
This really should be documented somewhere. All the documentation says today is that you can use multiple tag names, so I assumed it was something like this: <tag>value1</tag> <tag>value2</tag> Instead it is <tags> <tag>value1</tag> <tag>value2</tag> </tags> Thanks for the help. John Wells (Aziz) [EMAIL PROTECTED] -----Original Message----- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:36 AM To: Maven Users List Subject: Re: [m2] Using array types in mojo configuration since you have OsgiManifest and Paths are at the same level it should be like this <configuration> <osgiManifest> ..... your down bean's attribute here </osgiManifest> <paths> <path>one</path> <path>two</path> </paths> </configuration> -D On 1/10/06, John Wells <[EMAIL PROTECTED]> wrote: > > Lets say I have a mojo with something like this: > > /** > * @parameter > */ > private OsgiManifest osgiManifest; > > Furthermore, lets say in osgiManifest I have the following: > > /** > * @parameter > */ > private String path[]; > > public void setPath(String[] paths) { this.path = path; } > public String[] getPath() { return path; } > > How do I represent the [] parameter in the pom file using this plugin. > This does not work: > > <configuration> > <osgiManifest> > <path>one</path> > <path>two</path> > </osgiManifest> > </configuration> > > Any help is appreciated. > > John Wells (Aziz) > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
