Merge "ONAP log files consolidation"
[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.2.0-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>${project.version}</version>
62         </dependency>
63         <!-- CLM security fix - force use of commons-collections 3.2.2. Remove 
64             this if a new version of nexus-rest-client-java is upgraded to not use velocity 
65             (and then subsequently commons-collections v3.1 -->
66         <dependency>
67             <groupId>commons-collections</groupId>
68             <artifactId>commons-collections</artifactId>
69             <version>3.2.2</version>
70         </dependency>
71         <dependency>
72             <groupId>org.sonatype.nexus</groupId>
73             <artifactId>nexus-rest-client-java</artifactId>
74             <version>2.3.1-01</version>
75             <exclusions>
76                 <exclusion>
77                     <groupId>commons-collections</groupId>
78                     <artifactId>commons-collections</artifactId>
79                 </exclusion>
80             </exclusions>
81         </dependency>
82         <dependency>
83             <groupId>com.thoughtworks.xstream</groupId>
84             <artifactId>xstream</artifactId>
85             <version>1.4.10</version>
86         </dependency>
87         <dependency>
88             <groupId>com.att.nsa</groupId>
89             <artifactId>cambriaClient</artifactId>
90             <version>0.0.1</version>
91             <exclusions>
92                 <exclusion>
93                     <groupId>org.slf4j</groupId>
94                     <artifactId>slf4j-log4j12</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98         <dependency>
99             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
100             <artifactId>dmaapClient</artifactId>
101             <version>${dmaap.version}</version>
102             <exclusions>
103                 <exclusion>
104                     <groupId>org.slf4j</groupId>
105                     <artifactId>slf4j-log4j12</artifactId>
106                 </exclusion>
107                 <exclusion>
108                     <groupId>com.att.aft</groupId>
109                     <artifactId>dme2</artifactId>
110                 </exclusion>
111             </exclusions>
112         </dependency>
113         <dependency>
114             <groupId>org.apache.httpcomponents</groupId>
115             <artifactId>httpclient</artifactId>
116             <version>${httpclient.version}</version>
117         </dependency>
118     </dependencies>
119     <build>
120         <plugins>
121             <plugin>
122                 <artifactId>maven-checkstyle-plugin</artifactId>
123                 <executions>
124                     <execution>
125                         <id>onap-java-style</id>
126                         <goals>
127                             <goal>check</goal>
128                         </goals>
129                         <phase>process-sources</phase>
130                         <configuration>
131                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
132                                 with minor changes -->
133                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
134                             <!-- <sourceDirectory> is needed so that checkstyle 
135                                 ignores the generated sources directory -->
136                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
137                             <includeResources>true</includeResources>
138                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
139                             <includeTestResources>true</includeTestResources>
140                             <consoleOutput>true</consoleOutput>
141                             <failOnViolation>true</failOnViolation>
142                             <violationSeverity>warning</violationSeverity>
143                         </configuration>
144                     </execution>
145                 </executions>
146                 <dependencies>
147                     <dependency>
148                         <groupId>org.onap.oparent</groupId>
149                         <artifactId>checkstyle</artifactId>
150                         <version>0.1.1</version>
151                         <scope>compile</scope>
152                     </dependency>
153                 </dependencies>
154             </plugin>
155             <plugin>
156                 <!-- Build an executable JAR -->
157                 <groupId>org.apache.maven.plugins</groupId>
158                 <artifactId>maven-assembly-plugin</artifactId>
159                 <version>2.2</version>
160                 <configuration>
161                     <archive>
162                         <manifest>
163                             <addClasspath>true</addClasspath>
164                             <classpathPrefix>lib/</classpathPrefix>
165                             <mainClass>org.onap.policy.brms.api.BrmsGateway</mainClass>
166                         </manifest>
167                     </archive>
168                     <descriptorRefs>
169                         <descriptorRef>jar-with-dependencies</descriptorRef>
170                     </descriptorRefs>
171                 </configuration>
172                 <executions>
173                     <execution>
174                         <id>make-assembly</id>
175                         <phase>package</phase>
176                         <goals>
177                             <goal>single</goal>
178                         </goals>
179                     </execution>
180                 </executions>
181             </plugin>
182         </plugins>
183     </build>
184 </project>