Add Automatic-Module-Name to RFC6022 model 41/107041/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Jul 2023 12:48:17 +0000 (14:48 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Jul 2023 13:29:41 +0000 (15:29 +0200)
This is a standard model and hence we use the usual module naming from
MD-SAL.

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

model/rfc6022/pom.xml

index 09307b2a67320dedfe36e5a97eeea96e77fe3119..5485c45a84979c213d581a81f6696d184e93acf6 100644 (file)
@@ -7,37 +7,51 @@
  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>
+    <modelVersion>4.0.0</modelVersion>
 
-  <parent>
-    <groupId>org.opendaylight.netconf</groupId>
-    <artifactId>netconf-parent</artifactId>
-    <version>6.0.1-SNAPSHOT</version>
-    <relativePath>../../parent</relativePath>
-  </parent>
+    <parent>
+        <groupId>org.opendaylight.netconf</groupId>
+        <artifactId>netconf-parent</artifactId>
+        <version>6.0.1-SNAPSHOT</version>
+        <relativePath>../../parent</relativePath>
+    </parent>
 
-  <groupId>org.opendaylight.netconf.model</groupId>
-  <artifactId>rfc6022</artifactId>
-  <name>${project.artifactId}</name>
-  <packaging>bundle</packaging>
-  <description>RFC6022 YANG Module for NETCONF Monitoring</description>
+    <groupId>org.opendaylight.netconf.model</groupId>
+    <artifactId>rfc6022</artifactId>
+    <name>${project.artifactId}</name>
+    <packaging>bundle</packaging>
+    <description>RFC6022 YANG Module for NETCONF Monitoring</description>
 
-  <dependencies>
-    <dependency>
-      <groupId>com.google.guava</groupId>
-      <artifactId>guava</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.opendaylight.yangtools</groupId>
-      <artifactId>yang-common</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
-      <artifactId>rfc6991-ietf-inet-types</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
-      <artifactId>rfc6991-ietf-yang-types</artifactId>
-    </dependency>
-  </dependencies>
+    <dependencies>
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>yang-common</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
+            <artifactId>rfc6991-ietf-inet-types</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
+            <artifactId>rfc6991-ietf-yang-types</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yang.gen.ietf.netconf.monitoring.rfc6022</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>