blob: 4e0a388ebd4717a40eeccd24ce2f7dd74b706eb2 [file] [log] [blame]
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +01001<?xml version="1.0" encoding="UTF-8"?>
DylanB95ESTb5a23832021-06-02 19:45:46 +01002<!--
3 ============LICENSE_START=======================================================
egernugb0ee0382024-04-17 10:08:38 +01004 Copyright (c) 2021-2024 Nordix Foundation.
puthuparambil.aditya08fe9712021-07-13 11:52:13 +01005 Modifications Copyright (C) 2021 Bell Canada.
DylanB95ESTb5a23832021-06-02 19:45:46 +01006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
lukegleesonb208aeb2021-07-08 16:48:15 +010010
DylanB95ESTb5a23832021-06-02 19:45:46 +010011 http://www.apache.org/licenses/LICENSE-2.0
lukegleesonb208aeb2021-07-08 16:48:15 +010012
DylanB95ESTb5a23832021-06-02 19:45:46 +010013 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
lukegleesonb208aeb2021-07-08 16:48:15 +010018
19 SPDX-License-Identifier: Apache-2.0
DylanB95ESTb5a23832021-06-02 19:45:46 +010020 ============LICENSE_END=========================================================
ToineSiebelink4cbd60b2021-09-30 16:53:42 +010021-->
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +010022
DylanB95ESTb5a23832021-06-02 19:45:46 +010023<project xmlns="http://maven.apache.org/POM/4.0.0"
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010024 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
DylanB95ESTb5a23832021-06-02 19:45:46 +010026 <modelVersion>4.0.0</modelVersion>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000027
DylanB95ESTb5a23832021-06-02 19:45:46 +010028 <organization>
29 <name>ONAP - CPS</name>
30 <url>http://www.onap.org/</url>
31 </organization>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000032
egernug5e4eb8c2024-06-21 12:53:06 +010033 <modules>
34 <module>dmi-service</module>
egernuge703e342024-07-08 10:59:08 +010035 <module>dmi-stub</module>
egernug5e4eb8c2024-06-21 12:53:06 +010036 </modules>
sourabh_sourabhd7ed9f02024-11-18 13:22:35 +000037
DylanB95ESTb5a23832021-06-02 19:45:46 +010038 <groupId>org.onap.cps</groupId>
39 <artifactId>ncmp-dmi-plugin</artifactId>
sourabh_sourabh33f9afa2024-11-19 13:36:26 +000040 <version>3.5.5-SNAPSHOT</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010041 <name>ncmp-dmi-plugin</name>
42 <description>DMI Plugin Service</description>
sourabh_sourabhd7ed9f02024-11-18 13:22:35 +000043 <packaging>pom</packaging>
egernugd59b5ef2023-10-19 11:23:13 +010044
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +010045 <properties>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000046 <!-- Set UTF-8 encoding for consistent builds across platforms -->
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48
49 <!-- Application and Docker Configuration -->
sourabh_sourabh6c877ba2024-11-13 16:48:46 +000050 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000051 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
52
53 <!-- Project Versioning and Timestamp -->
54 <cps.version>3.5.5-SNAPSHOT</cps.version>
55 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56
57 <!-- Code Quality and Dependency Management -->
58 <checkstyle.config.location>${project.basedir}</checkstyle.config.location>
59 <maven.checkstyle.plugin.version>3.3.1</maven.checkstyle.plugin.version>
60 <maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
61 <maven.compiler.source>17</maven.compiler.source>
62 <maven.compiler.target>17</maven.compiler.target>
63 <maven.dependency.plugin.version>3.7.1</maven.dependency.plugin.version>
64 <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
65
66 <!-- ONAP Nexus Repository Configuration -->
67 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
68 <nexusproxy>https://nexus.onap.org</nexusproxy>
69 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
70 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +010071 </properties>
72
73 <build>
74 <plugins>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +000075 <!-- Maven Dependency Plugin for unpacking resources only in the root module -->
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-dependency-plugin</artifactId>
79 <version>${maven.dependency.plugin.version}</version>
80 <executions>
81 <execution>
82 <id>unpack-checkstyle-config</id>
83 <phase>initialize</phase>
84 <goals>
85 <goal>unpack</goal>
86 </goals>
87 <configuration>
88 <artifactItems>
89 <artifactItem>
90 <groupId>${project.groupId}</groupId>
91 <artifactId>checkstyle</artifactId>
92 <version>${cps.version}</version>
93 <type>jar</type>
94 <overWrite>true</overWrite>
95 <outputDirectory>${project.basedir}/checkstyle</outputDirectory>
96 <includes>cps-checkstyle/**</includes>
97 </artifactItem>
98 </artifactItems>
99 </configuration>
100 <inherited>false</inherited>
101 </execution>
102 </executions>
103 </plugin>
104 <!-- Maven Checkstyle Plugin -->
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100105 <plugin>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-checkstyle-plugin</artifactId>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000108 <version>${maven.checkstyle.plugin.version}</version>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100109 <executions>
110 <execution>
111 <id>onap-license</id>
112 <goals>
113 <goal>check</goal>
114 </goals>
115 <phase>process-sources</phase>
116 <configuration>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000117 <configLocation>${checkstyle.config.location}/checkstyle/cps-checkstyle/check-license.xml</configLocation>
118 <includeResources>true</includeResources>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100119 <includeTestSourceDirectory>true</includeTestSourceDirectory>
120 <includeTestResources>false</includeTestResources>
121 <sourceDirectories>
122 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
123 </sourceDirectories>
124 <consoleOutput>false</consoleOutput>
125 <violationSeverity>warning</violationSeverity>
126 <failOnViolation>true</failOnViolation>
127 </configuration>
128 </execution>
129 <execution>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100130 <id>cps-java-style</id>
131 <goals>
132 <goal>check</goal>
133 </goals>
134 <phase>process-sources</phase>
135 <configuration>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000136 <configLocation>${checkstyle.config.location}/checkstyle/cps-checkstyle/cps-java-style.xml</configLocation>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100137 <sourceDirectories>
138 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
139 </sourceDirectories>
140 <includeResources>true</includeResources>
141 <includeTestSourceDirectory>true</includeTestSourceDirectory>
142 <includeTestResources>true</includeTestResources>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000143 <consoleOutput>false</consoleOutput>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100144 <violationSeverity>warning</violationSeverity>
145 <failOnViolation>true</failOnViolation>
146 </configuration>
147 </execution>
148 </executions>
149 <dependencies>
150 <dependency>
151 <groupId>${project.groupId}</groupId>
152 <artifactId>checkstyle</artifactId>
153 <version>${cps.version}</version>
154 </dependency>
155 </dependencies>
156 </plugin>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000157 <plugin>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-deploy-plugin</artifactId>
160 <version>${maven.deploy.plugin.version}</version>
161 </plugin>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100162 </plugins>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000163 <pluginManagement>
164 <plugins>
165 <plugin>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-compiler-plugin</artifactId>
168 <version>${maven.compiler.plugin.version}</version>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000169 <configuration>
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000170 <encoding>${project.build.sourceEncoding}</encoding>
171 <source>17</source>
172 <target>17</target>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000173 </configuration>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000174 </plugin>
175 </plugins>
176 </pluginManagement>
sourabh_sourabh1e1f49f2024-10-22 14:00:29 +0100177 </build>
178
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000179
sourabh_sourabh436a8dc2024-11-12 13:12:02 +0000180 <distributionManagement>
181 <repository>
182 <id>ecomp-releases</id>
183 <name>ECOMP Release Repository</name>
184 <url>${onap.nexus.url}${releaseNexusPath}</url>
185 </repository>
186 <snapshotRepository>
187 <id>ecomp-snapshots</id>
188 <name>ECOMP Snapshot Repository</name>
189 <url>${onap.nexus.url}${snapshotNexusPath}</url>
190 </snapshotRepository>
191 </distributionManagement>
sourabh_sourabh6c877ba2024-11-13 16:48:46 +0000192
lukegleesonb208aeb2021-07-08 16:48:15 +0100193</project>