This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag maven-sling-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-sling-plugin.git

commit b83577df864256e3d6abdc4e1d76f4dfc8663c2a
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Mon Sep 24 14:53:07 2007 +0000

    Do not throw an exception if jar does not exist. This allows a multi 
project deploy with other artifact types like poms, webapps etc.
    
    git-svn-id: 
https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-sling-plugin@578844
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
 
b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
index ff4ea5e..ef64f28 100644
--- 
a/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
+++ 
b/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
@@ -47,13 +47,11 @@ abstract class AbstractBundlePostMojo extends AbstractMojo {
      *         header is not contained in the manifest. However, if
      *         <code>null</code> is returned, the file may be assumed to not
      *         contain an OSGi bundle.
-     * @throws MojoExecutionException if the file does not exist
      */
-    protected String getBundleSymbolicName(File jarFile)
-            throws MojoExecutionException {
+    protected String getBundleSymbolicName(File jarFile) {
 
         if (!jarFile.exists()) {
-            throw new MojoExecutionException("Missing file " + jarFile);
+            return null;
         }
 
         JarFile jaf = null;

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to