Update E2 manager API to version 20190515
[portal/ric-dashboard.git] / e2-mgr-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.3-SNAPSHOT</version>
29         </parent>
30         <!-- This groupId will NOT allow deployment in LF -->
31         <groupId>org.o-ran-sc.ric.e2mgr.client</groupId>
32         <artifactId>e2-mgr-client</artifactId>
33         <name>RIC E2 Manager client</name>
34         <version>20190515-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.e2mgr.client</client.base.package.name>
42         </properties>
43         <!-- Successful compilation requires generated code dependencies -->
44         <dependencies>
45                 <dependency>
46                         <groupId>io.swagger.core.v3</groupId>
47                         <artifactId>swagger-annotations</artifactId>
48                         <version>2.0.8</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 2019 version is required for OpenAPI 3 -->
98                                 <groupId>io.swagger.codegen.v3</groupId>
99                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
100                                 <version>3.0.8</version>
101                                 <executions>
102                                         <execution>
103                                                 <goals>
104                                                         <goal>generate</goal>
105                                                 </goals>
106                                                 <configuration>
107                                                         <inputSpec>${project.basedir}/src/main/resources/e2_manager_2019-05-15.yaml</inputSpec>
108                                                         <language>java</language>
109                                                         <packageName>${client.base.package.name}</packageName>
110                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
111                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
112                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
113                                                         <configOptions>
114                                                                 <groupId>${project.groupId}</groupId>
115                                                                 <artifactId>${project.artifactId}</artifactId>
116                                                                 <artifactVersion>${project.version}</artifactVersion>
117                                                                 <library>resttemplate</library>
118                                                                 <java8>true</java8>
119                                                                 <dateLibrary>java8</dateLibrary>
120                                                                 <licenseName>Apache 2.0</licenseName>
121                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
122                                                         </configOptions>
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         <!-- add build information to manifest. Java provides access to the implementation 
152                 version for a package, so cram the build number into there. -->
153         <plugin>
154                 <groupId>org.apache.maven.plugins</groupId>
155                 <artifactId>maven-jar-plugin</artifactId>
156                 <!-- version>2.5</version> -->
157                 <configuration>
158                         <archive>
159                                 <manifest>
160                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
161                                 </manifest>
162                                 <manifestEntries>
163                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
164                                 </manifestEntries>
165                         </archive>
166                 </configuration>
167         </plugin>
168                         <!-- Skip the deploy-jar-to-nexus step -->
169                         <plugin>
170                                 <groupId>org.apache.maven.plugins</groupId>
171                                 <artifactId>maven-deploy-plugin</artifactId>
172                                 <!-- Spring sets the <version>2.8</version> -->
173                                 <configuration>
174                                         <skip>true</skip>
175                                 </configuration>
176                         </plugin>
177                 </plugins>
178                 <pluginManagement>
179                         <plugins>
180                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
181                                         only. It has no influence on the Maven build itself. -->
182                                 <plugin>
183                                         <groupId>org.eclipse.m2e</groupId>
184                                         <artifactId>lifecycle-mapping</artifactId>
185                                         <version>1.0.0</version>
186                                         <configuration>
187                                                 <lifecycleMappingMetadata>
188                                                         <pluginExecutions>
189                                                                 <pluginExecution>
190                                                                         <pluginExecutionFilter>
191                                                                                 <groupId>io.swagger.codegen.v3</groupId>
192                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
193                                                                                 <versionRange>[1.0,)</versionRange>
194                                                                                 <goals>
195                                                                                         <goal>generate</goal>
196                                                                                 </goals>
197                                                                         </pluginExecutionFilter>
198                                                                         <action>
199                                                                                 <ignore />
200                                                                         </action>
201                                                                 </pluginExecution>
202                                                         </pluginExecutions>
203                                                 </lifecycleMappingMetadata>
204                                         </configuration>
205                                 </plugin>
206                         </plugins>
207                 </pluginManagement>
208         </build>
209 </project>