2a73208d9af5799501b13d171bd1c66fd213c008
[portal/ric-dashboard.git] / anr-xapp-client / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--<![CDATA[
3 ========================LICENSE_START=================================
4 O-RAN-SC
5 %%
6 Copyright (C) 2019 AT&T Intellectual Property and Nokia
7 %%
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12      http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ========================LICENSE_END===================================
20 ]]>-->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.o-ran-sc.portal.ric-dashboard</groupId>
27                 <artifactId>ric-dash-parent</artifactId>
28                 <version>1.0.4-SNAPSHOT</version>
29         </parent>
30         <!-- This groupId will NOT allow deployment in LF -->
31         <groupId>org.o-ran-sc.ric.anrxapp.client</groupId>
32         <artifactId>anr-xapp-client</artifactId>
33         <name>RIC ANR xApp client</name>
34         <version>0.0.7-SNAPSHOT</version>
35         <properties>
36                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <!-- Jenkins invokes maven with -Dbuild.number=.. -->
39                 <build.number>0</build.number>
40                 <!-- same as groupId BUT without hyphens -->
41                 <client.base.package.name>org.oransc.ric.anrxapp.client</client.base.package.name>
42         </properties>
43         <!-- Successful compilation requires generated code dependencies -->
44         <dependencies>
45                 <dependency>
46                         <groupId>io.swagger</groupId>
47                         <artifactId>swagger-annotations</artifactId>
48                         <version>1.5.15</version>
49                 </dependency>
50                 <dependency>
51                         <groupId>org.springframework</groupId>
52                         <artifactId>spring-context</artifactId>
53                 </dependency>
54                 <!-- HTTP client: Spring RestTemplate -->
55                 <dependency>
56                         <groupId>org.springframework</groupId>
57                         <artifactId>spring-web</artifactId>
58                         <!-- <version>${spring-web-version}</version> -->
59                 </dependency>
60                 <!-- JSON processing: jackson -->
61                 <dependency>
62                         <groupId>com.fasterxml.jackson.core</groupId>
63                         <artifactId>jackson-core</artifactId>
64                         <!-- <version>${jackson-version}</version> -->
65                 </dependency>
66                 <dependency>
67                         <groupId>com.fasterxml.jackson.core</groupId>
68                         <artifactId>jackson-annotations</artifactId>
69                         <!-- <version>${jackson-version}</version> -->
70                 </dependency>
71                 <dependency>
72                         <groupId>com.fasterxml.jackson.core</groupId>
73                         <artifactId>jackson-databind</artifactId>
74                         <!-- <version>${jackson-version}</version> -->
75                 </dependency>
76                 <dependency>
77                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
78                         <artifactId>jackson-jaxrs-json-provider</artifactId>
79                         <!-- <version>${jackson-version}</version> -->
80                 </dependency>
81                 <dependency>
82                         <groupId>com.fasterxml.jackson.datatype</groupId>
83                         <artifactId>jackson-datatype-jsr310</artifactId>
84                         <!-- <version>${jackson-version}</version> -->
85                 </dependency>
86                 <!-- test dependencies -->
87                 <dependency>
88                         <groupId>org.junit.jupiter</groupId>
89                         <artifactId>junit-jupiter-api</artifactId>
90                         <!-- spring sets the <version>5.4.2</version> -->
91                         <scope>test</scope>
92                 </dependency>
93         </dependencies>
94         <build>
95                 <plugins>
96                         <plugin>
97                                 <!-- This version works fine on Swagger 2.0 -->
98                                 <groupId>io.swagger</groupId>
99                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
100                                 <version>2.4.5</version>
101                                 <executions>
102                                         <execution>
103                                                 <goals>
104                                                         <goal>generate</goal>
105                                                 </goals>
106                                                 <configuration>
107                                                         <inputSpec>${project.basedir}/src/main/resources/anr_swagger_0.0.7.yaml</inputSpec>
108                                                         <language>java</language>
109                                                         <configOptions>
110                                                                 <groupId>${project.groupId}</groupId>
111                                                                 <artifactId>${project.artifactId}</artifactId>
112                                                                 <artifactVersion>${project.version}</artifactVersion>
113                                                                 <artifactUrl>www.O-RAN-SC.org</artifactUrl>
114                                                                 <artifactDescription>ANR xApp client library</artifactDescription>
115                                                                 <library>resttemplate</library>
116                                                                 <java8>true</java8>
117                                                                 <dateLibrary>java8</dateLibrary>
118                                                                 <licenseName>Apache 2.0</licenseName>
119                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
120                                                         </configOptions>
121                                                         <packageName>${client.base.package.name}</packageName>
122                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
123                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
124                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
125                                                 </configuration>
126                                         </execution>
127                                 </executions>
128                         </plugin>
129                         <!-- Require Java 1.8 -->
130                         <plugin>
131                                 <groupId>org.apache.maven.plugins</groupId>
132                                 <artifactId>maven-compiler-plugin</artifactId>
133                                 <!-- Spring sets the <version></version> -->
134                                 <configuration>
135                                         <source>1.8</source>
136                                         <target>1.8</target>
137                                 </configuration>
138                         </plugin>
139                         <!-- Generate source jar -->
140                         <plugin>
141                                 <groupId>org.apache.maven.plugins</groupId>
142                                 <artifactId>maven-source-plugin</artifactId>
143                                 <!-- <version>3.0.0</version> -->
144                                 <executions>
145                                         <execution>
146                                                 <id>attach-sources</id>
147                                                 <goals>
148                                                         <goal>jar</goal>
149                                                 </goals>
150                                         </execution>
151                                 </executions>
152                         </plugin>
153                         <!-- add build information to manifest. Java provides access to the implementation 
154                                 version for a package, so cram the build number into there. -->
155                         <plugin>
156                                 <groupId>org.apache.maven.plugins</groupId>
157                                 <artifactId>maven-jar-plugin</artifactId>
158                                 <!-- version>2.5</version> -->
159                                 <configuration>
160                                         <archive>
161                                                 <manifest>
162                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
163                                                 </manifest>
164                                                 <manifestEntries>
165                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
166                                                 </manifestEntries>
167                                         </archive>
168                                 </configuration>
169                         </plugin>
170                         <!-- Skip the deploy-jar-to-nexus step -->
171                         <plugin>
172                                 <groupId>org.apache.maven.plugins</groupId>
173                                 <artifactId>maven-deploy-plugin</artifactId>
174                                 <!-- Spring sets the <version>2.8</version> -->
175                                 <configuration>
176                                         <skip>true</skip>
177                                 </configuration>
178                         </plugin>
179                 </plugins>
180                 <pluginManagement>
181                         <plugins>
182                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
183                                         only. It has no influence on the Maven build itself. -->
184                                 <plugin>
185                                         <groupId>org.eclipse.m2e</groupId>
186                                         <artifactId>lifecycle-mapping</artifactId>
187                                         <version>1.0.0</version>
188                                         <configuration>
189                                                 <lifecycleMappingMetadata>
190                                                         <pluginExecutions>
191                                                                 <pluginExecution>
192                                                                         <pluginExecutionFilter>
193                                                                                 <groupId>io.swagger</groupId>
194                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
195                                                                                 <versionRange>[1.0,)</versionRange>
196                                                                                 <goals>
197                                                                                         <goal>generate</goal>
198                                                                                 </goals>
199                                                                         </pluginExecutionFilter>
200                                                                         <action>
201                                                                                 <ignore />
202                                                                         </action>
203                                                                 </pluginExecution>
204                                                         </pluginExecutions>
205                                                 </lifecycleMappingMetadata>
206                                         </configuration>
207                                 </plugin>
208                         </plugins>
209                 </pluginManagement>
210         </build>
211 </project>