6f608116fc695183548255281f4f9be1dc6b0053
[portal/ric-dashboard.git] / dashboard / app-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
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>2.0.1-SNAPSHOT</version>
29         </parent>
30         <!-- This groupId will NOT allow deployment in LF -->
31         <groupId>org.o-ran-sc.ric.plt.appmgr.client</groupId>
32         <artifactId>app-mgr-client</artifactId>
33         <name>RIC App Manager client</name>
34         <!-- Update to match submodule tag -->
35         <version>0.3.3-SNAPSHOT</version>
36         <properties>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39                 <!-- Jenkins invokes maven with -Dbuild.number=.. -->
40                 <build.number>0</build.number>
41                 <!-- same as groupId BUT without hyphens -->
42                 <client.base.package.name>org.oransc.ric.plt.appmgr.client</client.base.package.name>
43         </properties>
44         <!-- Successful compilation requires generated code dependencies -->
45         <dependencies>
46                 <!-- Required for Java 9 and later -->
47                 <dependency>
48                         <groupId>javax.annotation</groupId>
49                         <artifactId>javax.annotation-api</artifactId>
50                 </dependency>
51                 <dependency>
52                         <groupId>io.swagger</groupId>
53                         <artifactId>swagger-annotations</artifactId>
54                         <version>1.5.15</version>
55                 </dependency>
56                 <dependency>
57                         <groupId>org.springframework</groupId>
58                         <artifactId>spring-context</artifactId>
59                 </dependency>
60                 <!-- HTTP client: Spring RestTemplate -->
61                 <dependency>
62                         <groupId>org.springframework</groupId>
63                         <artifactId>spring-web</artifactId>
64                 </dependency>
65                 <!-- JSON processing: jackson -->
66                 <dependency>
67                         <groupId>com.fasterxml.jackson.core</groupId>
68                         <artifactId>jackson-core</artifactId>
69                 </dependency>
70                 <dependency>
71                         <groupId>com.fasterxml.jackson.core</groupId>
72                         <artifactId>jackson-annotations</artifactId>
73                 </dependency>
74                 <dependency>
75                         <groupId>com.fasterxml.jackson.core</groupId>
76                         <artifactId>jackson-databind</artifactId>
77                 </dependency>
78                 <dependency>
79                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
80                         <artifactId>jackson-jaxrs-json-provider</artifactId>
81                 </dependency>
82                 <dependency>
83                         <groupId>com.fasterxml.jackson.datatype</groupId>
84                         <artifactId>jackson-datatype-jsr310</artifactId>
85                 </dependency>
86                 <!-- test dependencies -->
87                 <dependency>
88                         <groupId>org.junit.jupiter</groupId>
89                         <artifactId>junit-jupiter-api</artifactId>
90                         <scope>test</scope>
91                 </dependency>
92         </dependencies>
93         <build>
94                 <plugins>
95                         <plugin>
96                                 <!-- This version works fine on Swagger 2.0 -->
97                                 <groupId>io.swagger</groupId>
98                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
99                                 <version>2.4.5</version>
100                                 <executions>
101                                         <execution>
102                                                 <goals>
103                                                         <goal>generate</goal>
104                                                 </goals>
105                                                 <configuration>
106                                                         <inputSpec>${project.basedir}/ric-plt-appmgr/api/appmgr_rest_api.yaml</inputSpec>
107                                                         <language>java</language>
108                                                         <configOptions>
109                                                                 <groupId>${project.groupId}</groupId>
110                                                                 <artifactId>${project.artifactId}</artifactId>
111                                                                 <artifactVersion>${project.version}</artifactVersion>
112                                                                 <library>resttemplate</library>
113                                                                 <java8>true</java8>
114                                                                 <dateLibrary>java8</dateLibrary>
115                                                                 <licenseName>Apache 2.0</licenseName>
116                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
117                                                         </configOptions>
118                                                         <packageName>${client.base.package.name}</packageName>
119                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
120                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
121                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
122                                                 </configuration>
123                                         </execution>
124                                 </executions>
125                         </plugin>
126                         <!-- add build information to manifest. Java provides access to the implementation 
127                                 version for a package, so cram the build number into there. -->
128                         <plugin>
129                                 <groupId>org.apache.maven.plugins</groupId>
130                                 <artifactId>maven-jar-plugin</artifactId>
131                                 <!-- version>2.5</version> -->
132                                 <configuration>
133                                         <archive>
134                                                 <manifest>
135                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
136                                                 </manifest>
137                                                 <manifestEntries>
138                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
139                                                 </manifestEntries>
140                                         </archive>
141                                 </configuration>
142                         </plugin>
143                         <!-- Add generated source folder to Eclipse build path -->
144                         <plugin>
145                                 <groupId>org.codehaus.mojo</groupId>
146                                 <artifactId>build-helper-maven-plugin</artifactId>
147                                 <!--  version>1.7</version> -->
148                                 <executions>
149                                         <execution>
150                                                 <phase>generate-sources</phase>
151                                                 <goals>
152                                                         <goal>add-source</goal>
153                                                 </goals>
154                                                 <configuration>
155                                                         <sources>
156                                                                 <source>target/generated-sources/swagger/src/main/java</source>
157                                                         </sources>
158                                                 </configuration>
159                                         </execution>
160                                 </executions>
161                         </plugin>
162                 </plugins>
163                 <pluginManagement>
164                         <plugins>
165                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
166                                         only. It has no influence on the Maven build itself. -->
167                                 <plugin>
168                                         <groupId>org.eclipse.m2e</groupId>
169                                         <artifactId>lifecycle-mapping</artifactId>
170                                         <version>1.0.0</version>
171                                         <configuration>
172                                                 <lifecycleMappingMetadata>
173                                                         <pluginExecutions>
174                                                                 <pluginExecution>
175                                                                         <pluginExecutionFilter>
176                                                                                 <groupId>io.swagger</groupId>
177                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
178                                                                                 <versionRange>[1.0,)</versionRange>
179                                                                                 <goals>
180                                                                                         <goal>generate</goal>
181                                                                                 </goals>
182                                                                         </pluginExecutionFilter>
183                                                                         <action>
184                                                                                 <ignore />
185                                                                         </action>
186                                                                 </pluginExecution>
187                                                         </pluginExecutions>
188                                                 </lifecycleMappingMetadata>
189                                         </configuration>
190                                 </plugin>
191                         </plugins>
192                 </pluginManagement>
193         </build>
194 </project>