Bug 3401: Remove/cleanup Import-Package in maven-bundle-plugin config 55/59955/5
authorTom Pantelis <tompantelis@gmail.com>
Wed, 5 Jul 2017 03:41:06 +0000 (23:41 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 21 Jul 2017 10:31:24 +0000 (10:31 +0000)
Some of the pom files don't need to explicitly specify Import-Package
in the maven-bundle-plugin configuration. Others were cleaned up to remove
unnecessary entries.

Change-Id: I6b9a741d1a110f17d371497e04e2ab2187aff6b6
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
13 files changed:
opendaylight/md-sal/mdsal-trace/binding-impl/pom.xml
opendaylight/md-sal/mdsal-trace/dom-impl/pom.xml
opendaylight/md-sal/sal-akka-raft-example/pom.xml
opendaylight/md-sal/sal-akka-raft/pom.xml
opendaylight/md-sal/sal-cluster-admin-impl/pom.xml
opendaylight/md-sal/sal-distributed-datastore/pom.xml
opendaylight/md-sal/sal-dom-broker/pom.xml
opendaylight/md-sal/sal-dom-config/pom.xml
opendaylight/md-sal/sal-dummy-distributed-datastore/pom.xml
opendaylight/md-sal/sal-inmemory-datastore/pom.xml
opendaylight/md-sal/sal-remoterpc-connector/pom.xml
opendaylight/md-sal/samples/clustering-test-app/model/pom.xml
opendaylight/model/pom.xml

index 17f1d15..48ce85a 100644 (file)
@@ -64,16 +64,17 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
             <artifactId>maven-bundle-plugin</artifactId>
             <extensions>true</extensions>
             <configuration>
-            <instructions>
-                <Import-Package>
-                org.opendaylight.controller.md.sal.trace.api,org.opendaylight.mdsal.binding.generator.api,
-                org.opendaylight.controller.md.sal.trace.dom.impl,org.opendaylight.controller.md.sal.dom.api,
-                org.opendaylight.controller.md.sal.binding.api,
-                org.opendaylight.controller.md.sal.dom.broker.impl,org.opendaylight.controller.md.sal.binding.impl,
-                org.opendaylight.controller.sal.core.api.model,*
-                </Import-Package>
-                <Embed-Transitive>true</Embed-Transitive>
-            </instructions>
+                <instructions>
+                    <Import-Package>
+                      org.opendaylight.controller.md.sal.trace.api,
+                      org.opendaylight.mdsal.binding.generator.api,
+                      org.opendaylight.controller.md.sal.dom.api,
+                      org.opendaylight.controller.md.sal.binding.api,
+                      org.opendaylight.controller.md.sal.binding.impl,
+                      org.opendaylight.controller.sal.core.api.model,
+                      *
+                    </Import-Package>
+                </instructions>
             </configuration>
         </plugin>
         <plugin>
index c08bc89..55bb6b9 100644 (file)
@@ -83,16 +83,13 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
             <artifactId>maven-bundle-plugin</artifactId>
             <extensions>true</extensions>
             <configuration>
-            <instructions>
-                <!--<Embed-Dependency>sal-broker-impl;type=!pom;inline=false</Embed-Dependency>-->
-                <Import-Package>
-                org.opendaylight.controller.md.sal.binding.api,
-                org.opendaylight.controller.md.sal.dom.broker.impl,org.opendaylight.controller.md.sal.binding.impl,
-                org.opendaylight.controller.sal.core.api.model,*
-                </Import-Package>
-                <Export-Package>org.opendaylight.controller.md.sal.trace.dom.impl</Export-Package>
-                <Embed-Transitive>true</Embed-Transitive>
-            </instructions>
+                <instructions>
+                    <Import-Package>
+                      org.opendaylight.controller.md.sal.dom.broker.impl,
+                      *
+                    </Import-Package>
+                    <Export-Package>org.opendaylight.controller.md.sal.trace.dom.impl</Export-Package>
+                </instructions>
             </configuration>
         </plugin>
         <plugin>
index d90f61f..0fcd37e 100644 (file)
@@ -51,9 +51,6 @@
         <configuration>
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-            <Export-package>org.opendaylight.controller.cluster.example</Export-package>
-            <Import-Package>*</Import-Package>
-            <DynamicImport-Package>*</DynamicImport-Package>
           </instructions>
         </configuration>
       </plugin>
index 1b195e6..5979e93 100644 (file)
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
             <Export-package>org.opendaylight.cluster.raft</Export-package>
-            <Import-Package>*</Import-Package>
             <DynamicImport-Package>*</DynamicImport-Package>
           </instructions>
         </configuration>
index 80bd141..38a2fc0 100644 (file)
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
             <Export-Package></Export-Package>
-            <Import-Package>
-                !*snappy;
-                !org.jboss.*;
-                !com.jcraft.*;
-                !*jetty*;
-                !sun.security.*;
-                *;
-            </Import-Package>
           </instructions>
         </configuration>
       </plugin>
index 964d35d..b96c3cc 100644 (file)
                 org.opendaylight.controller.cluster.databroker.actors.dds;
             </Export-Package>
             <Import-Package>
-                !*snappy;
-                !org.jboss.*;
-                !com.jcraft.*;
-                !*jetty*;
-                !sun.security.*;
                 *;
                 org.opendaylight.controller.md.sal.dom.broker.impl.jmx
             </Import-Package>
index abfbb50..c65cb99 100644 (file)
                             org.opendaylight.controller.md.sal.dom.broker.impl.*,
                             org.opendaylight.controller.md.sal.dom.clustering.impl,
             </Export-Package>
-            <Import-Package>*</Import-Package>
           </instructions>
         </configuration>
       </plugin>
index 0426678..e44cfc3 100644 (file)
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <extensions>true</extensions>
-        <configuration>
-          <instructions>
-            <Import-Package>
-              com.google.common.base,
-              org.opendaylight.mdsal.eos.common.api,
-              org.opendaylight.mdsal.eos.dom.api,
-              org.opendaylight.mdsal.singleton.common.api,
-              *
-            </Import-Package>
-          </instructions>
-        </configuration>
       </plugin>
     </plugins>
   </build>
index c28ca39..8fe9f20 100644 (file)
         <configuration>
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-            <Export-package></Export-package>
-            <Private-Package></Private-Package>
-            <Import-Package>!*snappy;!org.jboss.*;!com.jcraft.*;!*jetty*;!sun.security.*;*</Import-Package>
           </instructions>
         </configuration>
       </plugin>
index a6ff9f2..3e1a58f 100644 (file)
         <configuration>
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-
             <Export-Package>org.opendaylight.controller.md.sal.dom.store.impl.*</Export-Package>
-
-            <Import-Package>*</Import-Package>
           </instructions>
         </configuration>
       </plugin>
index 3698aee..acee6e8 100644 (file)
                     <instructions>
                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
                         <Export-package></Export-package>
-                        <Private-Package></Private-Package>
                         <Import-Package>
-                            !org.iq80.*;
-                            !*snappy;
-                            !org.jboss.*;
-                            !com.jcraft.*;
-                            !org.fusesource.*;
-                            !*jetty*;
-                            !sun.security.*;
                             org.opendaylight.controller.cluster;
                             *
                         </Import-Package>
-                        <!--
-                        <Embed-Dependency>
-                            sal-clustering-commons;
-                            sal-akka-raft;
-                            *metrics*;
-                            !sal*;
-                            !*config-api*;
-                            !*testkit*;
-                            *protobuf*;
-                            akka*;
-                            *scala*;
-                            *config*;
-                            *netty*;
-                            *uncommons*;
-                        </Embed-Dependency>
-                        <Embed-Transitive>true</Embed-Transitive>
-                      -->
                     </instructions>
                 </configuration>
             </plugin>
index 7bf7ef9..0bede90 100644 (file)
@@ -25,7 +25,6 @@
                     <configuration>
                         <instructions>
                             <Bundle-Name>org.opendaylight.controller.sal-clustering-it-model</Bundle-Name>
-                            <Import-Package>*</Import-Package>
                         </instructions>
                     </configuration>
                 </plugin>
index 1d6faba..089dd4f 100644 (file)
@@ -80,7 +80,6 @@
         <configuration>
           <instructions>
             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-            <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package>
           </instructions>
         </configuration>
       </plugin>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.