Add maven classifier to Spring Boot JAR 04/136604/6
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 2 Feb 2024 12:25:47 +0000 (12:25 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Tue, 6 Feb 2024 10:22:03 +0000 (10:22 +0000)
Use a classifier so that both thin jar and spring boot jar are built.

Issue-ID: CPS-2072
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iafa35992db09abf01b82668cde0eb75f12db7258

cps-application/pom.xml
docs/release-notes.rst

index b3e1fe9..be7664a 100644 (file)
@@ -3,7 +3,7 @@
   ============LICENSE_START=======================================================
   Copyright (c) 2021 Pantheon.tech.
   Modifications Copyright (C) 2021 Bell Canada.
-  Modifications Copyright (C) 2021-2023 Nordix Foundation
+  Modifications Copyright (C) 2021-2024 Nordix Foundation
   Modifications Copyright (C) 2022 Deutsche Telekom AG
   ================================================================================
   Licensed under the Apache License, Version 2.0 (the "License");
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                        <configuration>
+                            <classifier>springboot</classifier>
+                        </configuration>
+                    </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>
index f5cef76..4c93dd1 100644 (file)
@@ -44,6 +44,13 @@ Bug Fixes
 Features
 --------
     - `CPS-1824 <https://jira.onap.org/browse/CPS-1824>`_ CPS Delta between 2 anchors.
+    - `CPS-2072 <https://jira.onap.org/browse/CPS-2072>`_ Add maven classifier to Spring Boot JAR.
+
+Notes
+-----
+The maven build of cps-application has been changed so that the JAR produced by spring-boot-maven-plugin has a
+*-springboot* classifier (`CPS-2072 <https://jira.onap.org/browse/CPS-2072>`_). This means that the filename
+of the Spring Boot JAR is *cps-application-3.4.3-springboot.jar*.
 
 Version: 3.4.2
 ==============