[ 
https://issues.apache.org/jira/browse/MSOURCES-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959426#comment-17959426
 ] 

Matthias Bünger commented on MSOURCES-40:
-----------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-source-plugin#127|https://github.com/apache/maven-source-plugin/issues/127].
 

> Add throws MojoExecutionException on getSources() mehtod
> --------------------------------------------------------
>
>                 Key: MSOURCES-40
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-40
>             Project: Maven Source Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>            Reporter: velo
>            Assignee: John Dennis Casey
>            Priority: Major
>             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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to