You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2016/05/19 05:48:32 UTC

svn commit: r1744517 - /felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java

Author: cziegeler
Date: Thu May 19 05:48:32 2016
New Revision: 1744517

URL: http://svn.apache.org/viewvc?rev=1744517&view=rev
Log:
FELIX-5258 : Add a new MOJO which verifies the bundle integrity. Apply second patch from Simone Tripodi

Modified:
    felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java

Modified: felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java?rev=1744517&r1=1744516&r2=1744517&view=diff
==============================================================================
--- felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java (original)
+++ felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/VerifyBundlePlugin.java Thu May 19 05:48:32 2016
@@ -43,6 +43,11 @@ import org.apache.maven.project.MavenPro
 
 /**
  * Verifies OSGi bundle metadata contains valid entries.
+ *
+ * Supported checks in the current version:
+ * <ul>
+ * <li>All packages declared in the <a href="http://bnd.bndtools.org/heads/export_package.html">Export-Package<a/> header are really included in the bundle.</li>
+ * </ul>
  */
 @Mojo(
     name = "verify",
@@ -93,6 +98,8 @@ public final class VerifyBundlePlugin
             {
                 formatter.format( " * %s%n", packageNotFound );
             }
+            formatter.format( "Please review the <Export-Package> instruction in the `configuration/instructions` element of the `maven-bundle-plugin`%n" );
+            formatter.format( "For more details, see http://bnd.bndtools.org/heads/export_package.html" );
             String message = formatter.toString();
             formatter.close();