62c6e55e476664aa861027f20a8a2d0a23ee7ee6
[policy/engine.git] / BRMSGateway / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.engine</groupId>
26         <artifactId>PolicyEngineSuite</artifactId>
27         <version>1.3.1-SNAPSHOT</version>
28     </parent>
29     <artifactId>BRMSGateway</artifactId>
30     <description>This application will take in BRMS rules and acts as interface between PR and PDP XACML</description>
31     <dependencies>
32         <dependency>
33             <groupId>com.h2database</groupId>
34             <artifactId>h2</artifactId>
35             <scope>test</scope>
36         </dependency>
37         <dependency>
38             <groupId>org.onap.policy.engine</groupId>
39             <artifactId>PolicyEngineAPI</artifactId>
40             <version>${project.version}</version>
41             <exclusions>
42                 <exclusion>
43                     <groupId>com.att.nsa</groupId>
44                     <artifactId>cambriaClient</artifactId>
45                 </exclusion>
46             </exclusions>
47         </dependency>
48         <dependency>
49             <groupId>org.apache.maven</groupId>
50             <artifactId>maven-model</artifactId>
51             <version>3.5.3</version>
52         </dependency>
53         <dependency>
54             <groupId>org.apache.maven.shared</groupId>
55             <artifactId>maven-invoker</artifactId>
56             <version>3.0.0</version>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.common</groupId>
60             <artifactId>integrity-monitor</artifactId>
61             <version>${version.policy.common}</version>
62         </dependency>
63         <dependency>
64             <groupId>com.thoughtworks.xstream</groupId>
65             <artifactId>xstream</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>com.att.nsa</groupId>
69             <artifactId>cambriaClient</artifactId>
70             <exclusions>
71                 <exclusion>
72                     <groupId>org.slf4j</groupId>
73                     <artifactId>slf4j-log4j12</artifactId>
74                 </exclusion>
75             </exclusions>
76         </dependency>
77         <dependency>
78             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
79             <artifactId>dmaapClient</artifactId>
80             <exclusions>
81                 <exclusion>
82                     <groupId>org.slf4j</groupId>
83                     <artifactId>slf4j-log4j12</artifactId>
84                 </exclusion>
85                 <exclusion>
86                     <groupId>com.att.aft</groupId>
87                     <artifactId>dme2</artifactId>
88                 </exclusion>
89             </exclusions>
90         </dependency>
91         <dependency>
92             <groupId>org.apache.httpcomponents</groupId>
93             <artifactId>httpclient</artifactId>
94         </dependency>
95     </dependencies>
96     <build>
97         <plugins>
98             <plugin>
99                 <artifactId>maven-checkstyle-plugin</artifactId>
100                 <executions>
101                     <execution>
102                         <id>onap-java-style</id>
103                         <goals>
104                             <goal>check</goal>
105                         </goals>
106                         <phase>process-sources</phase>
107                         <configuration>
108                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
109                                 with minor changes -->
110                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
111                             <!-- <sourceDirectory> is needed so that checkstyle 
112                                 ignores the generated sources directory -->
113                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
114                             <includeResources>true</includeResources>
115                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
116                             <includeTestResources>true</includeTestResources>
117                             <consoleOutput>true</consoleOutput>
118                             <failOnViolation>true</failOnViolation>
119                             <violationSeverity>warning</violationSeverity>
120                         </configuration>
121                     </execution>
122                 </executions>
123                 <dependencies>
124                     <dependency>
125                         <groupId>org.onap.oparent</groupId>
126                         <artifactId>checkstyle</artifactId>
127                         <version>0.1.1</version>
128                         <scope>compile</scope>
129                     </dependency>
130                 </dependencies>
131             </plugin>
132             <plugin>
133                 <!-- Build an executable JAR -->
134                 <groupId>org.apache.maven.plugins</groupId>
135                 <artifactId>maven-assembly-plugin</artifactId>
136                 <configuration>
137                     <archive>
138                         <manifest>
139                             <addClasspath>true</addClasspath>
140                             <classpathPrefix>lib/</classpathPrefix>
141                             <mainClass>org.onap.policy.brms.api.BrmsGateway</mainClass>
142                         </manifest>
143                     </archive>
144                     <descriptorRefs>
145                         <descriptorRef>jar-with-dependencies</descriptorRef>
146                     </descriptorRefs>
147                 </configuration>
148                 <executions>
149                     <execution>
150                         <id>make-assembly</id>
151                         <phase>package</phase>
152                         <goals>
153                             <goal>single</goal>
154                         </goals>
155                     </execution>
156                 </executions>
157             </plugin>
158         </plugins>
159     </build>
160 </project>