[ 
http://jira.codehaus.org/browse/MSOURCES-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Casey closed MSOURCES-40.
------------------------------

         Assignee: John Casey
       Resolution: Fixed
    Fix Version/s: 2.1

> Add throws MojoExecutionException on getSources() mehtod
> --------------------------------------------------------
>
>                 Key: MSOURCES-40
>                 URL: http://jira.codehaus.org/browse/MSOURCES-40
>             Project: Maven 2.x Source Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>            Reporter: Marvin Froeder
>            Assignee: John Casey
>             Fix For: 2.1
>
>
> 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

-- 
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

        

Reply via email to