Revise groupIds in POM files; no functional changes
[portal/ric-dashboard.git] / dashboard / 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
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.e2mgr.client</groupId>
32         <artifactId>e2-mgr-client</artifactId>
33         <name>RIC E2 Manager Client</name>
34         <version>3.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                 <!-- 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.ricplt.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                 </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         </dependencies>
92         <build>
93                 <plugins>
94                         <plugin>
95                                 <!-- This 2019 version is required for OpenAPI 3 -->
96                                 <groupId>io.swagger.codegen.v3</groupId>
97                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
98                                 <version>3.0.8</version>
99                                 <executions>
100                                         <execution>
101                                                 <goals>
102                                                         <goal>generate</goal>
103                                                 </goals>
104                                                 <configuration>
105                                                         <inputSpec>${project.basedir}/ric-plt-e2mgr/Swagger/E2Manager_API.yaml</inputSpec>
106                                                         <language>java</language>
107                                                         <packageName>${client.base.package.name}</packageName>
108                                                         <modelPackage>${client.base.package.name}.model</modelPackage>
109                                                         <apiPackage>${client.base.package.name}.api</apiPackage>
110                                                         <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
111                                                         <configOptions>
112                                                                 <groupId>${project.groupId}</groupId>
113                                                                 <artifactId>${project.artifactId}</artifactId>
114                                                                 <artifactVersion>${project.version}</artifactVersion>
115                                                                 <library>resttemplate</library>
116                                                                 <java8>true</java8>
117                                                                 <dateLibrary>java8</dateLibrary>
118                                                                 <licenseName>Apache 2.0</licenseName>
119                                                                 <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
120                                                         </configOptions>
121                                                 </configuration>
122                                         </execution>
123                                 </executions>
124                         </plugin>
125                         <!-- add build information to manifest. Java provides access to the implementation 
126                                 version for a package, so cram the build number into there. -->
127                         <plugin>
128                                 <groupId>org.apache.maven.plugins</groupId>
129                                 <artifactId>maven-jar-plugin</artifactId>
130                                 <!-- version>2.5</version> -->
131                                 <configuration>
132                                         <archive>
133                                                 <manifest>
134                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
135                                                 </manifest>
136                                                 <manifestEntries>
137                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
138                                                 </manifestEntries>
139                                         </archive>
140                                 </configuration>
141                         </plugin>
142                         <!-- Add generated source folder to Eclipse build path -->
143                         <plugin>
144                                 <groupId>org.codehaus.mojo</groupId>
145                                 <artifactId>build-helper-maven-plugin</artifactId>
146                                 <!--  version>1.7</version> -->
147                                 <executions>
148                                         <execution>
149                                                 <phase>generate-sources</phase>
150                                                 <goals>
151                                                         <goal>add-source</goal>
152                                                 </goals>
153                                                 <configuration>
154                                                         <sources>
155                                                                 <source>target/generated-sources/swagger/src/main/java</source>
156                                                         </sources>
157                                                 </configuration>
158                                         </execution>
159                                 </executions>
160                         </plugin>
161                 </plugins>
162                 <pluginManagement>
163                         <plugins>
164                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
165                                         only. It has no influence on the Maven build itself. -->
166                                 <plugin>
167                                         <groupId>org.eclipse.m2e</groupId>
168                                         <artifactId>lifecycle-mapping</artifactId>
169                                         <version>1.0.0</version>
170                                         <configuration>
171                                                 <lifecycleMappingMetadata>
172                                                         <pluginExecutions>
173                                                                 <pluginExecution>
174                                                                         <pluginExecutionFilter>
175                                                                                 <groupId>io.swagger.codegen.v3</groupId>
176                                                                                 <artifactId>swagger-codegen-maven-plugin</artifactId>
177                                                                                 <versionRange>[1.0,)</versionRange>
178                                                                                 <goals>
179                                                                                         <goal>generate</goal>
180                                                                                 </goals>
181                                                                         </pluginExecutionFilter>
182                                                                         <action>
183                                                                                 <ignore />
184                                                                         </action>
185                                                                 </pluginExecution>
186                                                         </pluginExecutions>
187                                                 </lifecycleMappingMetadata>
188                                         </configuration>
189                                 </plugin>
190                         </plugins>
191                 </pluginManagement>
192         </build>
193 </project>