Uploaded image for project: 'Maven Source Plugin'
  1. Maven Source Plugin
  2. MSOURCES-40

Add throws MojoExecutionException on getSources() mehtod

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.1
    • None
    • Patch

    Description

      Hi,

      I'm extending maven-source-plugin on Tycho.

      In order to resolve source paths on Tycho I need to read some file, so, there is a change of getting an IOException on my getSources() implementation.

      Patch:
      Index: src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java
      ===================================================================
      — src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java (revision 696714)
      +++ src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java (working copy)
      @@ -134,7 +134,8 @@

      • @param p not null
      • @return the compile or test sources
        */
      • protected abstract List getSources( MavenProject p );
        + protected abstract List getSources( MavenProject p )
        + throws MojoExecutionException;

      /**

      • @param p not null

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            velo velo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: