maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Closed: (MSHARED-96) Sample code is not working
Date Sat, 28 Feb 2009 11:55:19 GMT


Benjamin Bentmann closed MSHARED-96.

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: fiile-managment 1.2.2

Fixed doc in [r748822|].

The problem is that the proper type cannot be derived from the collection type of the field
{{filesets}}. One either has to declare collection-like parameters as arrays (whose component
type is available at runtime for DI) or provide a properly named class that extends the desired
type in the same package as the mojo (cf. the sources of the Maven Clean Plugin). Using arrays
has the additional benefit that the generated plugin documentation can better indicate the
type to the user (i.e. {{FileSet[]}} vs. just {{List}}).

> Sample code is not working
> --------------------------
>                 Key: MSHARED-96
>                 URL:
>             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:
> 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:
For more information on JIRA, see:


View raw message