Split URL properties into prefix/suffix
[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.2.0-SNAPSHOT</version>
29         </parent>
30         <!-- This groupId will NOT allow deployment in LF -->
31         <groupId>org.o-ran-sc.ric.plt.e2mgr.client</groupId>
32         <artifactId>e2-mgr-client</artifactId>
33         <name>RIC E2 Manager client</name>
34         <version>20190703-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                 <!-- Required for Java 9 and later -->
46                 <dependency>
47                         <groupId>javax.annotation</groupId>
48                         <artifactId>javax.annotation-api</artifactId>
49                 </dependency>
50                 <dependency>
51                         <groupId>io.swagger.core.v3</groupId>
52                         <artifactId>swagger-annotations</artifactId>
53                         <version>2.0.8</version>
54                 </dependency>
55                 <dependency>
56                         <groupId>org.springframework</groupId>
57                         <artifactId>spring-context</artifactId>
58                 </dependency>
59                 <!-- HTTP client: Spring RestTemplate -->
60                 <dependency>
61                         <groupId>org.springframework</groupId>
62                         <artifactId>spring-web</artifactId>
63                         <!-- <version>${spring-web-version}</version> -->
64                 </dependency>
65                 <!-- JSON processing: jackson -->
66                 <dependency>
67                         <groupId>com.fasterxml.jackson.core</groupId>
68                         <artifactId>jackson-core</artifactId>
69                         <!-- <version>${jackson-version}</version> -->
70                 </dependency>
71                 <dependency>
72                         <groupId>com.fasterxml.jackson.core</groupId>
73                         <artifactId>jackson-annotations</artifactId>
74                         <!-- <version>${jackson-version}</version> -->
75                 </dependency>
76                 <dependency>
77                         <groupId>com.fasterxml.jackson.core</groupId>
78                         <artifactId>jackson-databind</artifactId>
79                         <!-- <version>${jackson-version}</version> -->
80                 </dependency>
81                 <dependency>
82                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
83                         <artifactId>jackson-jaxrs-json-provider</artifactId>
84                         <!-- <version>${jackson-version}</version> -->
85                 </dependency>
86                 <dependency>
87                         <groupId>com.fasterxml.jackson.datatype</groupId>
88                         <artifactId>jackson-datatype-jsr310</artifactId>
89                         <!-- <version>${jackson-version}</version> -->
90                 </dependency>
91                 <!-- test dependencies -->
92                 <dependency>
93                         <groupId>org.junit.jupiter</groupId>
94                         <artifactId>junit-jupiter-api</artifactId>
95                         <!-- spring sets the <version>5.4.2</version> -->
96                         <scope>test</scope>
97                 </dependency>
98         </dependencies>
99         <build>
100                 <plugins>
101                         <plugin>
102                                 <!-- This 2019 version is required for OpenAPI 3 -->
103                                 <groupId>io.swagger.codegen.v3</groupId>
104                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
105                                 <version>3.0.8</version>
106                                 <executions>
107                                         <execution>
108                                                 <goals>
109                                                         <goal>generate</goal>
110                                                 </goals>
111                                                 <configuration>
112                                                         <inputSpec>${project.basedir}/src/main/resources/E2M_API_2019-07-03.yaml</inputSpec>
113                                                         <language>java</language>
114                                                         <packageName>${client.base.package.name}</packageName>
115                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
116                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
117                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
118                                                         <configOptions>
119                                                                 <groupId>${project.groupId}</groupId>
120                                                                 <artifactId>${project.artifactId}</artifactId>
121                                                                 <artifactVersion>${project.version}</artifactVersion>
122                                                                 <library>resttemplate</library>
123                                                                 <java8>true</java8>
124                                                                 <dateLibrary>java8</dateLibrary>
125                                                                 <licenseName>Apache 2.0</licenseName>
126                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
127                                                         </configOptions>
128                                                 </configuration>
129                                         </execution>
130                                 </executions>
131                         </plugin>
132                         <!-- add build information to manifest. Java provides access to the implementation 
133                                 version for a package, so cram the build number into there. -->
134                         <plugin>
135                                 <groupId>org.apache.maven.plugins</groupId>
136                                 <artifactId>maven-jar-plugin</artifactId>
137                                 <!-- version>2.5</version> -->
138                                 <configuration>
139                                         <archive>
140                                                 <manifest>
141                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
142                                                 </manifest>
143                                                 <manifestEntries>
144                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
145                                                 </manifestEntries>
146                                         </archive>
147                                 </configuration>
148                         </plugin>
149                 </plugins>
150                 <pluginManagement>
151                         <plugins>
152                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
153                                         only. It has no influence on the Maven build itself. -->
154                                 <plugin>
155                                         <groupId>org.eclipse.m2e</groupId>
156                                         <artifactId>lifecycle-mapping</artifactId>
157                                         <version>1.0.0</version>
158                                         <configuration>
159                                                 <lifecycleMappingMetadata>
160                                                         <pluginExecutions>
161                                                                 <pluginExecution>
162                                                                         <pluginExecutionFilter>
163                                                                                 <groupId>io.swagger.codegen.v3</groupId>
164                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
165                                                                                 <versionRange>[1.0,)</versionRange>
166                                                                                 <goals>
167                                                                                         <goal>generate</goal>
168                                                                                 </goals>
169                                                                         </pluginExecutionFilter>
170                                                                         <action>
171                                                                                 <ignore />
172                                                                         </action>
173                                                                 </pluginExecution>
174                                                         </pluginExecutions>
175                                                 </lifecycleMappingMetadata>
176                                         </configuration>
177                                 </plugin>
178                         </plugins>
179                 </pluginManagement>
180         </build>
181 </project>