Migrate odl-stax2-api to template 51/110351/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Feb 2024 10:22:23 +0000 (11:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Feb 2024 18:57:19 +0000 (19:57 +0100)
Use a template instead of auto-generated feature.

Change-Id: Ide5477fe646d21c15af31a1780a40b414b12401b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/odl-stax2-api/pom.xml
features/odl-stax2-api/src/main/feature/template.xml [new file with mode: 0644]
features/odl-stax2-api/src/main/history/dependencies.xml [deleted file]

index 9d06c096ce3999a0945095d8adc76d228a1517d3..b0e9d78f27f03d36425a092d7081a170447d16f1 100644 (file)
 
     <parent>
         <groupId>org.opendaylight.odlparent</groupId>
-        <artifactId>single-feature-parent</artifactId>
+        <artifactId>template-feature-parent</artifactId>
         <version>13.0.11-SNAPSHOT</version>
-        <relativePath>../../single-feature-parent</relativePath>
+        <relativePath>../../template-feature-parent</relativePath>
     </parent>
 
-    <groupId>org.opendaylight.odlparent</groupId>
     <artifactId>odl-stax2-api</artifactId>
-    <version>13.0.11-SNAPSHOT</version>
     <packaging>feature</packaging>
 
     <name>OpenDaylight :: StAX2 API</name>
     <description>StAX2 API</description>
 
-    <properties>
-        <checkDependencyChange>true</checkDependencyChange>
-        <failOnDependencyChange>true</failOnDependencyChange>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>org.codehaus.woodstox</groupId>
diff --git a/features/odl-stax2-api/src/main/feature/template.xml b/features/odl-stax2-api/src/main/feature/template.xml
new file mode 100644 (file)
index 0000000..ecc04a0
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="odl-stax2-api">
+    <feature name="odl-stax2-api">
+        <bundle>mvn:org.codehaus.woodstox/stax2-api/{{versionAsInProject}}</bundle>
+    </feature>
+</features>
diff --git a/features/odl-stax2-api/src/main/history/dependencies.xml b/features/odl-stax2-api/src/main/history/dependencies.xml
deleted file mode 100644 (file)
index 9b2edfb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<features xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" name="odl-stax2-api">
-    <feature version="0.0.0">
-        <bundle>mvn:org.codehaus.woodstox/stax2-api/4.2.2</bundle>
-    </feature>
-</features>