A straightforward migration to use bnd-maven-plugin.
Change-Id: Ie8bb442046b611eeec072a3e4f18eb98f955ef80
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+ Copyright (c) 2022 PANTHEON.tech, s.r.o. and others. All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>bnd-parent</artifactId>
+ <version>9.0.12</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>bnd-parent</artifactId>
+ <version>8.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>${project.artifactId}</name>
+ <description>Bundle parent (bnd-based)</description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yangtools-artifacts</artifactId>
+ <version>8.0.0-SNAPSHOT</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <scm>
+ <connection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</connection>
+ <developerConnection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</developerConnection>
+ <tag>HEAD</tag>
+ <url>https://wiki.opendaylight.org/display/ODL/YANG+Tools</url>
+ </scm>
+</project>
<version>8.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
- <description>Bundle parent</description>
+ <description>Bundle parent (felix-based)</description>
<dependencyManagement>
<dependencies>
--- /dev/null
+Import-Package: org.checkerframework.*;resolution:=optional, *
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.opendaylight.yangtools</groupId>
- <artifactId>bundle-parent</artifactId>
+ <artifactId>bnd-parent</artifactId>
<version>8.0.0-SNAPSHOT</version>
- <relativePath>../../bundle-parent</relativePath>
+ <relativePath>../../bnd-parent</relativePath>
</parent>
<artifactId>concepts</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>Common concepts</description>
<artifactId>checker-qual</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.annotation</artifactId>
+ </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>mockito-configuration</artifactId>
requires static transitive org.eclipse.jdt.annotation;
requires static com.github.spotbugs.annotations;
requires static org.checkerframework.checker.qual;
+ requires static osgi.annotation;
}
--- /dev/null
+/*
+ * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+/**
+ * Concept used widely across OpenDaylight code base.
+ */
+@Export
+package org.opendaylight.yangtools.concepts;
+
+import org.osgi.annotation.bundle.Export;
<module>features</module>
<module>benchmarks</module>
+ <module>bnd-parent</module>
<module>bundle-parent</module>
<module>codec</module>
<module>common</module>