Merge "Use powermock artifacts from parent pom"
[policy/drools-applications.git] / controlloop / common / feature-controlloop-trans / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP
4   ================================================================================
5   Copyright (C) 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
25     <parent>
26         <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
27         <artifactId>common</artifactId>
28         <version>1.3.0-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>feature-controlloop-trans</artifactId>
32
33     <description>
34         Loadable PDP-D feature module to track control loop transactions
35     </description>
36
37     <properties>
38         <maven.compiler.source>1.8</maven.compiler.source>
39         <maven.compiler.target>1.8</maven.compiler.target>
40     </properties>
41
42     <build>
43         <plugins>
44             <plugin>
45                 <artifactId>maven-assembly-plugin</artifactId>
46                 <executions>
47                     <execution>
48                         <id>zipfile</id>
49                         <goals>
50                             <goal>single</goal>
51                         </goals>
52                         <phase>package</phase>
53                         <configuration>
54                             <attach>true</attach>
55                             <finalName>${project.artifactId}-${project.version}</finalName>
56                             <descriptors>
57                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
58                             </descriptors>
59                             <appendAssemblyId>false</appendAssemblyId>
60                         </configuration>
61                     </execution>
62                 </executions>
63             </plugin>
64             <plugin>
65                 <groupId>org.apache.maven.plugins</groupId>
66                 <artifactId>maven-dependency-plugin</artifactId>
67                 <executions>
68                     <execution>
69                         <id>copy-dependencies</id>
70                         <goals>
71                             <goal>copy-dependencies</goal>
72                         </goals>
73                         <phase>prepare-package</phase>
74                         <configuration>
75                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
76                             <overWriteReleases>false</overWriteReleases>
77                             <overWriteSnapshots>true</overWriteSnapshots>
78                             <overWriteIfNewer>true</overWriteIfNewer>
79                             <useRepositoryLayout>false</useRepositoryLayout>
80                             <addParentPoms>false</addParentPoms>
81                             <copyPom>false</copyPom>
82                             <includeScope>runtime</includeScope>
83                         </configuration>
84                     </execution>
85                 </executions>
86             </plugin>
87             <plugin>
88                 <artifactId>maven-checkstyle-plugin</artifactId>
89                 <executions>
90                     <execution>
91                         <id>onap-java-style</id>
92                         <goals>
93                             <goal>check</goal>
94                         </goals>
95                         <phase>process-sources</phase>
96                         <configuration>
97                             <!-- Use Google Java Style Guide:
98                             https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
99                             with minor changes -->
100                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
101                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
102                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
103                             <includeResources>true</includeResources>
104                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
105                             <includeTestResources>true</includeTestResources>
106                             <excludes>
107                             </excludes>
108                             <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation>
109                             <consoleOutput>true</consoleOutput>
110                             <failsOnViolation>true</failsOnViolation>
111                             <violationSeverity>warning</violationSeverity>
112                         </configuration>
113                     </execution>
114                 </executions>
115                 <dependencies>
116                     <dependency>
117                         <groupId>org.onap.oparent</groupId>
118                         <artifactId>checkstyle</artifactId>
119                         <version>${oparent.version}</version>
120                         <scope>compile</scope>
121                     </dependency>
122                 </dependencies>
123             </plugin>
124         </plugins>
125     </build>
126
127     <dependencies>
128         <dependency>
129             <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
130             <artifactId>events</artifactId>
131             <version>${project.version}</version>
132         </dependency>
133         <dependency>
134             <groupId>org.onap.policy.common</groupId>
135             <artifactId>policy-endpoints</artifactId>
136             <version>${project.version}</version>
137             <scope>provided</scope>
138         </dependency>
139         <dependency>
140             <groupId>org.onap.policy.drools-pdp</groupId>
141             <artifactId>policy-management</artifactId>
142             <version>${project.version}</version>
143             <scope>provided</scope>
144         </dependency>
145         <dependency>
146             <groupId>org.onap.policy.drools-pdp</groupId>
147             <artifactId>policy-utils</artifactId>
148             <version>${project.version}</version>
149             <scope>provided</scope>
150         </dependency>
151         <dependency>
152             <groupId>junit</groupId>
153             <artifactId>junit</artifactId>
154             <scope>test</scope>
155         </dependency>
156         <dependency>
157             <groupId>com.google.guava</groupId>
158             <artifactId>guava</artifactId>
159             <scope>provided</scope>
160         </dependency>
161     </dependencies>
162 </project>