You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Markus KARG (JIRA)" <ji...@codehaus.org> on 2009/02/28 16:26:20 UTC

[jira] Commented: (MSHARED-96) Sample code is not working

    [ http://jira.codehaus.org/browse/MSHARED-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167410#action_167410 ] 

Markus KARG commented on MSHARED-96:
------------------------------------

If your explanations enough are true then the generel plugin configuration guide is wrong too (see http://maven.apache.org/guides/plugin/guide-java-plugin-development.html) because it doesn't say that anything about the fact that the desired type must extend from List and be found in the same package as the mojo. So I would ask you to correct that general description, too, which only says:

Collections

This category covers any class which implements java.util.Collection such as ArrayList or HashSet. These parameters are configured by specifying the parameter multiple times just like an array. Example:

    /**
     * My List.
     *
     * @parameter
     */
    private List myList;

<myList>
  <param>value1</param>
  <param>value2</param>
</myList>



> Sample code is not working
> --------------------------
>
>                 Key: MSHARED-96
>                 URL: http://jira.codehaus.org/browse/MSHARED-96
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: file-management
>    Affects Versions: file-management 1.2
>         Environment: Windows XP Home SP2
> JDK 1.6.0_11
>            Reporter: Markus KARG
>            Assignee: Benjamin Bentmann
>             Fix For: fiile-managment 1.2.2
>
>
> When running the code from this web site:
> http://maven.apache.org/shared/file-management/examples/mojo.html
> You will end up with the following problem:
> Cause: Error loading class 'mypath.myplugin.Fileset'
> The problem seems to be that the <fileset> child of the <configuration> pom.xml element is not translated to the corresponding "FileSet" (upper case S, package of the File Management API) class of Maven File Management API, but maven searches a "Fileset" (lower case S, different package) class in the custom plugin. So it seems the documentation on the web site is not complete, at least the part about "How to tell Maven how to map <fileset> to FileSet class?" is missing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira