You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Robert Biernat <ro...@objectconsulting.com.au> on 2005/10/05 16:55:34 UTC

m2: java plugins - configuration and xml

Hi,

 

I'm looking for info that shows how a m2 plugins configuration which is
specified in the pom maps to the mojos parameters. 

 

For example lets say I had a mojo that had a parameter of type String[]
called options.

 

i.e

 

/**

* @parameter

*

private String[] options;

 

What would the xml configuration look like? What about if I had an array
that contains one of my plugins own user defined type.

 

Thanks

 

Rob


Re: m2: java plugins - configuration and xml

Posted by Brett Porter <br...@gmail.com>.
On 10/6/05, Jason van Zyl <ja...@maven.org> wrote:
> Having to specify the implementation there will be fixed shortly but
> that's what you have to do for now and the fix will be backward
> compatible we're just going to default to java.lang.String.

s/will be fixed shortly/was fixed in beta-3/

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2: java plugins - configuration and xml

Posted by Jason van Zyl <ja...@maven.org>.
On Thu, 2005-10-06 at 00:55 +1000, Robert Biernat wrote:
> Hi,
> 
>  
> 
> I'm looking for info that shows how a m2 plugins configuration which is
> specified in the pom maps to the mojos parameters. 
> 
>  
> For example lets say I had a mojo that had a parameter of type String[]
> called options.

<project>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-magic-plugin</artifactId>
        <configuration>
          <options>
            <option implementation="java.lang.String>one</option>
            <option implementation="java.lang.String>two</option>
            <option implementation="java.lang.String>three</option>
          </options>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

Having to specify the implementation there will be fixed shortly but
that's what you have to do for now and the fix will be backward
compatible we're just going to default to java.lang.String.

-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We all have problems. How we deal with them is a measure of our worth.

 -- Unknown


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org