Maven custom plugin. Array oj custom pbjects
===

I want make pairs of files, looks like  

    <configuration>
                  <params>
                      <wsdl>${basedir}/File1.wsdl</wsdl>
                      <result>D:/file1</result>
                   </params>
                   <params>
                      <wsdl>${basedir}/File2.wsdl</wsdl>
                      <result>D:/file2</result>
                   </params>
                </configuration>  
  
here is code  

    public class MavenPlugin extends AbstractMojo
        {
           /**
            * @parameter
            */
           private TwoFiles[] params;  
    // ...    
  
....  

    public class TwoFiles
    {
       public File wsdl;
    
       public File result;
    }
  
Not working well.  

    Cause: Cannot assign configuration entry 'wsdl' to 'class com.maven.plugin.TwoFiles' from 'D:\Development\Lab_Reporting.wsdl', which is of type class java.lang.String  
  
any ideas?