Update ANR API to version 0.0.5
[portal/ric-dashboard.git] / e2-mgr-client / pom.xml
index 46f86d9..48caf8e 100644 (file)
@@ -25,7 +25,7 @@ limitations under the License.
        <parent>
                <groupId>org.o-ran-sc.portal.ric-dashboard</groupId>
                <artifactId>ric-dash-parent</artifactId>
-               <version>1.0.2-SNAPSHOT</version>
+               <version>1.0.3-SNAPSHOT</version>
        </parent>
        <!-- This groupId will NOT allow deployment in LF -->
        <groupId>org.o-ran-sc.ric.e2mgr.client</groupId>
@@ -35,6 +35,9 @@ limitations under the License.
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <!-- Jenkins invokes maven with -Dbuild.number=.. -->
+               <build.number>0</build.number>
+               <!-- same as groupId BUT without hyphens -->
                <client.base.package.name>org.oransc.ric.e2mgr.client</client.base.package.name>
        </properties>
        <!-- Successful compilation requires generated code dependencies -->
@@ -145,6 +148,23 @@ limitations under the License.
                                        </execution>
                                </executions>
                        </plugin>
+       <!-- add build information to manifest. Java provides access to the implementation 
+               version for a package, so cram the build number into there. -->
+       <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-jar-plugin</artifactId>
+               <!-- version>2.5</version> -->
+               <configuration>
+                       <archive>
+                               <manifest>
+                                       <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                               </manifest>
+                               <manifestEntries>
+                                       <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
+                               </manifestEntries>
+                       </archive>
+               </configuration>
+       </plugin>
                        <!-- Skip the deploy-jar-to-nexus step -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>