08689f92cd26b7f45abd9f737c6555dacd1021d3
[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.2-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.3-SNAPSHOT</version>
35         <properties>
36                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <!-- same as groupId BUT without hyphens -->
39                 <client.base.package.name>org.oransc.ric.anrxapp.client</client.base.package.name>
40         </properties>
41         <!-- Successful compilation requires generated code dependencies -->
42         <dependencies>
43                 <dependency>
44                         <groupId>io.swagger</groupId>
45                         <artifactId>swagger-annotations</artifactId>
46                         <version>1.5.15</version>
47                 </dependency>
48                 <dependency>
49                         <groupId>org.springframework</groupId>
50                         <artifactId>spring-context</artifactId>
51                 </dependency>
52                 <!-- HTTP client: Spring RestTemplate -->
53                 <dependency>
54                         <groupId>org.springframework</groupId>
55                         <artifactId>spring-web</artifactId>
56                         <!-- <version>${spring-web-version}</version> -->
57                 </dependency>
58                 <!-- JSON processing: jackson -->
59                 <dependency>
60                         <groupId>com.fasterxml.jackson.core</groupId>
61                         <artifactId>jackson-core</artifactId>
62                         <!-- <version>${jackson-version}</version> -->
63                 </dependency>
64                 <dependency>
65                         <groupId>com.fasterxml.jackson.core</groupId>
66                         <artifactId>jackson-annotations</artifactId>
67                         <!-- <version>${jackson-version}</version> -->
68                 </dependency>
69                 <dependency>
70                         <groupId>com.fasterxml.jackson.core</groupId>
71                         <artifactId>jackson-databind</artifactId>
72                         <!-- <version>${jackson-version}</version> -->
73                 </dependency>
74                 <dependency>
75                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
76                         <artifactId>jackson-jaxrs-json-provider</artifactId>
77                         <!-- <version>${jackson-version}</version> -->
78                 </dependency>
79                 <dependency>
80                         <groupId>com.fasterxml.jackson.datatype</groupId>
81                         <artifactId>jackson-datatype-jsr310</artifactId>
82                         <!-- <version>${jackson-version}</version> -->
83                 </dependency>
84                 <!-- test dependencies -->
85                 <dependency>
86                         <groupId>org.junit.jupiter</groupId>
87                         <artifactId>junit-jupiter-api</artifactId>
88                         <!-- spring sets the <version>5.4.2</version> -->
89                         <scope>test</scope>
90                 </dependency>
91         </dependencies>
92         <build>
93                 <plugins>
94                         <plugin>
95                                 <!-- This version works fine on Swagger 2.0 -->
96                                 <groupId>io.swagger</groupId>
97                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
98                                 <version>2.4.5</version>
99                                 <executions>
100                                         <execution>
101                                                 <goals>
102                                                         <goal>generate</goal>
103                                                 </goals>
104                                                 <configuration>
105                                                         <inputSpec>${project.basedir}/src/main/resources/anr_swagger_0.0.3.yaml</inputSpec>
106                                                         <language>java</language>
107                                                         <configOptions>
108                                                                 <groupId>${project.groupId}</groupId>
109                                                                 <artifactId>${project.artifactId}</artifactId>
110                                                                 <artifactVersion>${project.version}</artifactVersion>
111                                                                 <artifactUrl>www.O-RAN-SC.org</artifactUrl>
112                                                                 <artifactDescription>ANR xApp client library</artifactDescription>
113                                                                 <library>resttemplate</library>
114                                                                 <java8>true</java8>
115                                                                 <dateLibrary>java8</dateLibrary>
116                                                                 <licenseName>Apache 2.0</licenseName>
117                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
118                                                         </configOptions>
119                                                         <packageName>${client.base.package.name}</packageName>
120                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
121                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
122                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
123                                                 </configuration>
124                                         </execution>
125                                 </executions>
126                         </plugin>
127                         <!-- Require Java 1.8 -->
128                         <plugin>
129                                 <groupId>org.apache.maven.plugins</groupId>
130                                 <artifactId>maven-compiler-plugin</artifactId>
131                                 <!-- Spring sets the <version></version> -->
132                                 <configuration>
133                                         <source>1.8</source>
134                                         <target>1.8</target>
135                                 </configuration>
136                         </plugin>
137                         <!-- Generate source jar -->
138                         <plugin>
139                                 <groupId>org.apache.maven.plugins</groupId>
140                                 <artifactId>maven-source-plugin</artifactId>
141                                 <!-- <version>3.0.0</version> -->
142                                 <executions>
143                                         <execution>
144                                                 <id>attach-sources</id>
145                                                 <goals>
146                                                         <goal>jar</goal>
147                                                 </goals>
148                                         </execution>
149                                 </executions>
150                         </plugin>
151                         <!-- Skip the deploy-jar-to-nexus step -->
152                         <plugin>
153                                 <groupId>org.apache.maven.plugins</groupId>
154                                 <artifactId>maven-deploy-plugin</artifactId>
155                                 <!-- Spring sets the <version>2.8</version> -->
156                                 <configuration>
157                                         <skip>true</skip>
158                                 </configuration>
159                         </plugin>
160                 </plugins>
161                 <pluginManagement>
162                         <plugins>
163                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
164                                         only. It has no influence on the Maven build itself. -->
165                                 <plugin>
166                                         <groupId>org.eclipse.m2e</groupId>
167                                         <artifactId>lifecycle-mapping</artifactId>
168                                         <version>1.0.0</version>
169                                         <configuration>
170                                                 <lifecycleMappingMetadata>
171                                                         <pluginExecutions>
172                                                                 <pluginExecution>
173                                                                         <pluginExecutionFilter>
174                                                                                 <groupId>io.swagger</groupId>
175                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
176                                                                                 <versionRange>[1.0,)</versionRange>
177                                                                                 <goals>
178                                                                                         <goal>generate</goal>
179                                                                                 </goals>
180                                                                         </pluginExecutionFilter>
181                                                                         <action>
182                                                                                 <ignore/>
183                                                                         </action>
184                                                                 </pluginExecution>
185                                                         </pluginExecutions>
186                                                 </lifecycleMappingMetadata>
187                                         </configuration>
188                                 </plugin>
189                         </plugins>
190                 </pluginManagement>
191         </build>
192 </project>