Enforce no split packages 24/61224/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Aug 2017 22:03:38 +0000 (00:03 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 5 Aug 2017 17:03:54 +0000 (17:03 +0000)
This patch augments Export-Packages with a directive to fail build
if a split package is detected.

Change-Id: I52a2a157f992cb97fd8c6a88cf45c933ed0fd953
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit c03293f4b1f5e396235713dc9b148eb32c19ddc9)

bgp/bmp-impl/pom.xml
bgp/openconfig-state/pom.xml
bgp/parser-impl/pom.xml
bgp/path-selection-mode/pom.xml
bgp/rib-impl/pom.xml
pcep/impl/pom.xml
programming/impl/pom.xml

index 9ee9475cf63662825bf778328b8098844427367d..e861fec94d9187735dbecf6a1c9a88ff2bd5ad9e 100644 (file)
                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
                         <Export-Package>
                             org.opendaylight.protocol.bmp.impl.*,
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index 98cd87efdc90a2a5ced557b1116354641bbc4bfb..132d681ff35130523d86b9659a1e356d572a308e 100644 (file)
@@ -79,6 +79,7 @@
                         <Export-Package>
                             org.opendaylight.protocol.bgp.state.impl.*,
                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.state.config.rev161107.*,
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
             <url>${nexus.site.url}/${project.artifactId}/</url>
         </site>
     </distributionManagement>
-</project>
\ No newline at end of file
+</project>
index b122e74fcf0087ab7657780e8fee4973477c2ddc..7cfe2d82c3b68e5858f57f2f3ee319bca4e56221 100644 (file)
@@ -91,6 +91,7 @@
                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
                         <Export-Package>
                             org.opendaylight.protocol.bgp.parser.impl.*,
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index 8132ee5072c2586869a786b8465657a6cbf1b845..5202ecd5848dbea7520116c7ba50bd119cd028c3 100644 (file)
                             org.opendaylight.protocol.bgp.mode.*,
                             org.opendaylight.controller.config.yang.bgp.path.selection.mode.*,
                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.path.selection.mode.*
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index deeecf6466bd097246ef4315ff43a710d818030b..11be5cd57e12b39cca978948575ef66efef93f25 100644 (file)
                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.*,
                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.stats.peer.rev160606.*,
                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.stats.rib.impl.rev160606.*
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index 2b78d3efb8580a8803ecb6afca30b9ff77baa1eb..4a962802e900b15e8e8096c02945cf2bd380f9fa 100644 (file)
                         <Export-Package>
                             org.opendaylight.protocol.pcep.impl.*,
                             org.opendaylight.controller.config.yang.pcep.impl.*
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index 9b361eb8b8f36e3a1b599ec1a99dac60144aeb73..a4aac4acb9e87e0c9b31c48c86cd9ffe92f8db5e 100644 (file)
                        <Export-Package>
                             org.opendaylight.bgpcep.programming.impl,
                             org.opendaylight.controller.config.yang.programming.impl
+                            ;-split-package:=error
                         </Export-Package>
                    </instructions>
                </configuration>