Change rule retrieval from CBS to ConfigMap
[holmes/rule-management.git] / rulemgt / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright 2017-2020 ZTE Corporation.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18
19     <modelVersion>4.0.0</modelVersion>
20     <parent>
21         <groupId>org.onap.holmes.rule-management</groupId>
22         <artifactId>holmes-rulemgt-parent</artifactId>
23         <version>1.3.5-SNAPSHOT</version>
24     </parent>
25
26     <artifactId>holmes-rulemgt</artifactId>
27     <name>holmes-rulemgt-service</name>
28     <packaging>jar</packaging>
29
30     <properties>
31         <jetty.version>9.4.18.v20190429</jetty.version>
32     </properties>
33
34     <build>
35         <plugins>
36             <plugin>
37                 <groupId>org.apache.maven.plugins</groupId>
38                 <artifactId>maven-compiler-plugin</artifactId>
39                 <version>3.3</version>
40                 <configuration>
41                     <source>1.8</source>
42                     <target>1.8</target>
43                 </configuration>
44             </plugin>
45         </plugins>
46         <resources>
47             <resource>
48                 <directory>src/main/java</directory>
49                 <includes>
50                     <include>**/*.properties</include>
51                 </includes>
52             </resource>
53             <resource>
54                 <directory>src/main/resources</directory>
55             </resource>
56         </resources>
57     </build>
58
59     <profiles>
60         <profile>
61             <id>swagger</id>
62             <dependencies>
63                 <dependency>
64                     <groupId>io.swagger</groupId>
65                     <artifactId>swagger-jersey2-jaxrs</artifactId>
66                     <version>1.5.3</version>
67                     <exclusions>
68                         <exclusion>
69                             <groupId>com.fasterxml.jackson.core</groupId>
70                             <artifactId>jackson-databind</artifactId>
71                         </exclusion>
72                         <exclusion>
73                             <groupId>com.fasterxml.jackson.core</groupId>
74                             <artifactId>jackson-core</artifactId>
75                         </exclusion>
76                     </exclusions>
77                 </dependency>
78             </dependencies>
79             <build>
80                 <plugins>
81                     <plugin>
82                         <groupId>com.github.kongchen</groupId>
83                         <artifactId>swagger-maven-plugin</artifactId>
84                         <version>3.1.1</version>
85                         <configuration>
86                             <apiSources>
87                                 <apiSource>
88                                     <springmvc>false</springmvc>
89                                     <locations>org.onap.holmes.rulemgt.resources</locations>
90                                     <basePath>/api/holmes-rule-mgmt/v1/</basePath>
91                                     <info>
92                                         <title>API Descriptions for Holmes Rule Management</title>
93                                         <version>v1</version>
94                                         <description>
95                                             This page shows all the APIs available in the Holmes rule management module.
96                                         </description>
97                                         <termsOfService>
98                                             http://www.github.com/kongchen/swagger-maven-plugin
99                                         </termsOfService>
100                                         <contact>
101                                             <email>fu.guangrong@zte.com.cn</email>
102                                             <name>Guangrong Fu</name>
103                                         </contact>
104                                         <license>
105                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
106                                             <name>Apache 2.0</name>
107                                         </license>
108                                     </info>
109                                     <securityDefinitions>
110                                     </securityDefinitions>
111                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
112                                 </apiSource>
113                             </apiSources>
114                         </configuration>
115                         <executions>
116                             <execution>
117                                 <phase>compile</phase>
118                                 <goals>
119                                     <goal>generate</goal>
120                                 </goals>
121                             </execution>
122                         </executions>
123                         <dependencies>
124                             <dependency>
125                                 <groupId>io.swagger</groupId>
126                                 <artifactId>swagger-hibernate-validations</artifactId>
127                                 <version>1.5.6</version>
128                             </dependency>
129                         </dependencies>
130                     </plugin>
131                 </plugins>
132             </build>
133         </profile>
134     </profiles>
135 </project>