Enforce no split packages 14/61214/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Aug 2017 22:03:38 +0000 (00:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Aug 2017 22:03:38 +0000 (00:03 +0200)
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>
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 7934528b13ef335785e334cc8bc116ec7242b0e9..bc2c9e7115f69a0f038ff1f66cb394f3ebf764fb 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 d43d5a0a1b69c6367a058a21085572350af7bfe0..d6552dcb73f641b2959b866c5e2a808f10919a90 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 96fa1843971989c6d4c43838310367a3dabe1a80..94708d18146aa02b478aefc6eb25b094995e5272 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 cea1ef5156daa31607e1a68b4e337e69647509c1..d4621b9be1c4d239063fac26f571461133ee7d15 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 669190ce410e284a94eef25cf73f8392fa033ddc..d9eef06aae059f65056531ec9a778420720a4127 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 061e40d5ff924cb5644a547c31b51b247d89f9d6..22917a0e03d1028fc4131130e24ef0fb13c31b0c 100644 (file)
                         <Export-Package>
                             org.opendaylight.protocol.pcep.impl.*,
                             org.opendaylight.controller.config.yang.pcep.impl.*
+                            ;-split-package:=error
                         </Export-Package>
                     </instructions>
                 </configuration>
index 65085a960e78bb7073e03cd8b73f2a823314bbc0..0639ef6b2cd5bf00e1b44ab9b7794838fecd44fb 100644 (file)
                        <Export-Package>
                             org.opendaylight.bgpcep.programming.impl,
                             org.opendaylight.controller.config.yang.programming.impl
+                            ;-split-package:=error
                         </Export-Package>
                    </instructions>
                </configuration>