commit | e955a5245b2f34bb2c0a051e0396c01d3e5baab8 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu May 25 08:52:15 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu May 25 08:52:15 2006 +0000 |
tree | 2b0e3c0feee832b615b2975c2c4fa0e6d4f2caa2 | |
parent | 54cf1121c3d0c9cffa59929079eb263b62942297 [diff] |
Modified the plugin to only issue warnings when it finds missing imports when verifying an existing import-package header; previously it was issuing errors. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@409335 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java index 324d793..354b6d8 100644 --- a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java +++ b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java
@@ -335,8 +335,7 @@ test.removeAll(declaredImports); for (Iterator m = test.iterator(); m.hasNext();) { Object o = m.next(); - getLog().error("[OSGi] MISSING IMPORT: " + o); - throw new MojoExecutionException("Missing Import " + o); + getLog().warn("[OSGi] MISSING IMPORT: " + o); } test = new HashSet(declaredImports);