Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-96

Sample code is not working

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • file-management-1.2
    • file-management-3.0.0
    • file-management
    • None
    • Windows XP Home SP2
      JDK 1.6.0_11

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bentmann Benjamin Bentmann
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment