blob: 56df41fbea4717132e0f737142efd76d6a0f1884 [file] [log] [blame]
ning.xi0b860c82019-04-04 02:55:50 +00001<!--
2 ============LICENSE_START=======================================================
Pamela Dragoshada55be2019-04-05 21:07:07 -04003 ONAP
ning.xi0b860c82019-04-04 02:55:50 +00004 ================================================================================
HOCKLAc5475f12020-01-10 12:16:00 -06005 Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
liamfallon658d2372020-03-12 12:15:04 +00006 Modifications Copyright (C) 2019-2020 Nordix Foundation.
ning.xi0b860c82019-04-04 02:55:50 +00007 ================================================================================
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
liamfallon658d2372020-03-12 12:15:04 +000022<project
23 xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
ning.xi0b860c82019-04-04 02:55:50 +000027
liamfallon658d2372020-03-12 12:15:04 +000028 <parent>
29 <groupId>org.onap.policy.models</groupId>
30 <artifactId>policy-models-interactions</artifactId>
Ram Krishna Vermae14fac52020-05-19 15:16:54 -040031 <version>2.3.0-SNAPSHOT</version>
liamfallon658d2372020-03-12 12:15:04 +000032 </parent>
ning.xi0b860c82019-04-04 02:55:50 +000033
liamfallon658d2372020-03-12 12:15:04 +000034 <groupId>org.onap.policy.models.policy-models-interactions</groupId>
35 <artifactId>model-yaml</artifactId>
36
37 <dependencies>
38 <dependency>
39 <groupId>org.slf4j</groupId>
40 <artifactId>slf4j-api</artifactId>
41 <scope>provided</scope>
42 </dependency>
43 <dependency>
44 <groupId>ch.qos.logback</groupId>
45 <artifactId>logback-classic</artifactId>
46 <scope>provided</scope>
47 </dependency>
48 <dependency>
49 <groupId>org.yaml</groupId>
50 <artifactId>snakeyaml</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>org.jgrapht</groupId>
54 <artifactId>jgrapht-core</artifactId>
55 <version>0.9.2</version>
56 </dependency>
57 <dependency>
58 <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
59 <artifactId>sdc</artifactId>
60 <version>${project.version}</version>
61 <scope>provided</scope>
62 </dependency>
63 <dependency>
64 <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
65 <artifactId>aai</artifactId>
66 <version>${project.version}</version>
67 <scope>provided</scope>
68 </dependency>
69 <dependency>
70 <groupId>com.google.guava</groupId>
71 <artifactId>guava</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>junit</groupId>
75 <artifactId>junit</artifactId>
76 <scope>test</scope>
77 </dependency>
78 <dependency>
79 <groupId>org.onap.policy.common</groupId>
80 <artifactId>utils-test</artifactId>
81 <version>${policy.common.version}</version>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.assertj</groupId>
86 <artifactId>assertj-core</artifactId>
87 <scope>test</scope>
88 </dependency>
89
90 </dependencies>
ning.xi0b860c82019-04-04 02:55:50 +000091
92 <!--
93 Without this defined here, the checkstyle plugin just simply fails outright. This needs to be investigated
94 further as there was no real debugging details as to why or any configuration issue detected.
95 NOTE: I had to append src/main/java to the sourceDirectory.
96 Is it a reactor ordering issue? I'm wondering why it is being compiled after aai, in between the sub-modules
97 in model-impl. Dependency ordering?? Circular dependency??
98 -->
99 <build>
100 <plugins>
101 <plugin>
102 <artifactId>maven-checkstyle-plugin</artifactId>
103 <executions>
104 <execution>
105 <id>onap-java-style</id>
106 <goals>
107 <goal>check</goal>
108 </goals>
109 <phase>process-sources</phase>
110 <configuration>
111 <!-- Use Google Java Style Guide:
112 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
113 with minor changes -->
114 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
115 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
HOCKLA754f9a02019-12-21 12:11:33 -0600116 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
ning.xi0b860c82019-04-04 02:55:50 +0000117 <includeResources>true</includeResources>
118 <includeTestSourceDirectory>true</includeTestSourceDirectory>
119 <includeTestResources>true</includeTestResources>
120 <excludes>
121 </excludes>
122 <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation>
123 <consoleOutput>true</consoleOutput>
124 <failsOnViolation>true</failsOnViolation>
125 <violationSeverity>warning</violationSeverity>
126 </configuration>
127 </execution>
128 </executions>
129 <dependencies>
130 <dependency>
131 <groupId>org.onap.oparent</groupId>
132 <artifactId>checkstyle</artifactId>
133 <version>${oparent.version}</version>
134 <scope>compile</scope>
135 </dependency>
136 </dependencies>
137 </plugin>
138 </plugins>
139 </build>
140</project>