maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Froeder (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MSOURCES-40) Add throws MojoExecutionException on getSources() mehtod
Date Thu, 18 Sep 2008 17:19:48 GMT
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


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

        

Mime
View raw message