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)
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
<Export-Package>
org.opendaylight.protocol.bmp.impl.*,
+ ;-split-package:=error
</Export-Package>
</instructions>
</configuration>
<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>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
<Export-Package>
org.opendaylight.protocol.bgp.parser.impl.*,
+ ;-split-package:=error
</Export-Package>
</instructions>
</configuration>
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>
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>
<Export-Package>
org.opendaylight.protocol.pcep.impl.*,
org.opendaylight.controller.config.yang.pcep.impl.*
+ ;-split-package:=error
</Export-Package>
</instructions>
</configuration>
<Export-Package>
org.opendaylight.bgpcep.programming.impl,
org.opendaylight.controller.config.yang.programming.impl
+ ;-split-package:=error
</Export-Package>
</instructions>
</configuration>