blob: 4011bfb6f94da3486d13805318118bc7fa69db0f [file] [log] [blame]
PatrikBuhra2bc79c2019-10-29 13:39:00 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--<![CDATA[
3========================LICENSE_START=================================
4O-RAN-SC
5%%
6Copyright (C) 2019 Nordix Foundation
7%%
8Licensed under the Apache License, Version 2.0 (the "License");
9you may not use this file except in compliance with the License.
10You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14Unless required by applicable law or agreed to in writing, software
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations 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>
RehanRaza4e239f32019-11-12 16:09:43 +010026 <groupId>org.o-ran-sc.nonrt.ric-dashboard</groupId>
PatrikBuhra2bc79c2019-10-29 13:39:00 +010027 <artifactId>ric-dash-parent</artifactId>
RehanRaza4e239f32019-11-12 16:09:43 +010028 <version>1.0.0-SNAPSHOT</version>
PatrikBuhra2bc79c2019-10-29 13:39:00 +010029 </parent>
30 <!-- This groupId will NOT allow deployment in LF -->
31 <groupId>org.o-ran-sc.ric.plt.a1controller.client</groupId>
32 <artifactId>a1-controller-client</artifactId>
33 <name>RIC A1 Controller client</name>
34 <version>0.1.0-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.a1controller.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 </dependency>
64 <!-- JSON processing: jackson -->
65 <dependency>
66 <groupId>com.fasterxml.jackson.core</groupId>
67 <artifactId>jackson-core</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>com.fasterxml.jackson.core</groupId>
71 <artifactId>jackson-annotations</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>com.fasterxml.jackson.core</groupId>
75 <artifactId>jackson-databind</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>com.fasterxml.jackson.jaxrs</groupId>
79 <artifactId>jackson-jaxrs-json-provider</artifactId>
80 </dependency>
81 <dependency>
82 <groupId>com.fasterxml.jackson.datatype</groupId>
83 <artifactId>jackson-datatype-jsr310</artifactId>
84 </dependency>
85 <!-- test dependencies -->
86 <dependency>
87 <groupId>org.junit.jupiter</groupId>
88 <artifactId>junit-jupiter-api</artifactId>
89 <scope>test</scope>
90 </dependency>
91 <dependency>
92 <groupId>org.slf4j</groupId>
93 <artifactId>slf4j-api</artifactId>
94 </dependency>
95 </dependencies>
96 <build>
97 <plugins>
98 <plugin>
99 <!-- This 2019 version is required for OpenAPI 3 -->
100 <groupId>io.swagger.codegen.v3</groupId>
101 <artifactId>swagger-codegen-maven-plugin</artifactId>
102 <version>3.0.8</version>
103 <executions>
104 <execution>
105 <goals>
106 <goal>generate</goal>
107 </goals>
108 <configuration>
109 <inputSpec>${project.basedir}/src/main/resources/a1_controller_0.1.0.yaml</inputSpec>
110 <language>java</language>
111 <packageName>${client.base.package.name}</packageName>
112 <modelPackage>${client.base.package.name}.model</modelPackage>
113 <apiPackage>${client.base.package.name}.api</apiPackage>
114 <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
115 <configOptions>
116 <groupId>${project.groupId}</groupId>
117 <artifactId>${project.artifactId}</artifactId>
118 <artifactVersion>${project.version}</artifactVersion>
119 <library>resttemplate</library>
120 <java8>true</java8>
121 <dateLibrary>java8</dateLibrary>
122 <licenseName>Apache 2.0</licenseName>
123 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
124 </configOptions>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 <!-- add build information to manifest. Java provides access to the implementation
130 version for a package, so cram the build number into there. -->
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-jar-plugin</artifactId>
134 <configuration>
135 <archive>
136 <manifest>
137 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
138 </manifest>
139 <manifestEntries>
140 <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
141 </manifestEntries>
142 </archive>
143 </configuration>
144 </plugin>
145 </plugins>
146 <pluginManagement>
147 <plugins>
148 <!--This plugin's configuration is used to store Eclipse m2e settings
149 only. It has no influence on the Maven build itself. -->
150 <plugin>
151 <groupId>org.eclipse.m2e</groupId>
152 <artifactId>lifecycle-mapping</artifactId>
153 <version>1.0.0</version>
154 <configuration>
155 <lifecycleMappingMetadata>
156 <pluginExecutions>
157 <pluginExecution>
158 <pluginExecutionFilter>
159 <groupId>io.swagger.codegen.v3</groupId>
160 <artifactId>swagger-codegen-maven-plugin</artifactId>
161 <versionRange>[1.0,)</versionRange>
162 <goals>
163 <goal>generate</goal>
164 </goals>
165 </pluginExecutionFilter>
166 <action>
167 <ignore />
168 </action>
169 </pluginExecution>
170 </pluginExecutions>
171 </lifecycleMappingMetadata>
172 </configuration>
173 </plugin>
174 </plugins>
175 </pluginManagement>
176 </build>
177</project>