ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
Pamela Dragosh | ada55be | 2019-04-05 21:07:07 -0400 | [diff] [blame] | 3 | ONAP |
ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 4 | ================================================================================ |
HOCKLA | c5475f1 | 2020-01-10 12:16:00 -0600 | [diff] [blame] | 5 | Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. |
ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 6 | Modifications Copyright (C) 2019 Nordix Foundation. |
| 7 | ================================================================================ |
| 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 | |
| 22 | <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"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
| 25 | <parent> |
| 26 | <groupId>org.onap.policy.models</groupId> |
| 27 | <artifactId>policy-models-interactions</artifactId> |
HOCKLA | c5475f1 | 2020-01-10 12:16:00 -0600 | [diff] [blame] | 28 | <version>2.2.1-SNAPSHOT</version> |
ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 29 | </parent> |
| 30 | |
| 31 | <groupId>org.onap.policy.models.policy-models-interactions</groupId> |
| 32 | <artifactId>model-yaml</artifactId> |
| 33 | |
| 34 | <dependencies> |
| 35 | <dependency> |
| 36 | <groupId>org.slf4j</groupId> |
| 37 | <artifactId>slf4j-api</artifactId> |
| 38 | <scope>provided</scope> |
| 39 | </dependency> |
| 40 | <dependency> |
| 41 | <groupId>ch.qos.logback</groupId> |
| 42 | <artifactId>logback-classic</artifactId> |
| 43 | <scope>provided</scope> |
| 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>org.yaml</groupId> |
| 47 | <artifactId>snakeyaml</artifactId> |
ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.jgrapht</groupId> |
| 51 | <artifactId>jgrapht-core</artifactId> |
| 52 | <version>0.9.2</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 56 | <artifactId>sdc</artifactId> |
| 57 | <version>${project.version}</version> |
| 58 | <scope>provided</scope> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 62 | <artifactId>aai</artifactId> |
| 63 | <version>${project.version}</version> |
| 64 | <scope>provided</scope> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>com.google.guava</groupId> |
| 68 | <artifactId>guava</artifactId> |
| 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>junit</groupId> |
| 72 | <artifactId>junit</artifactId> |
| 73 | <scope>test</scope> |
| 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>org.onap.policy.common</groupId> |
| 77 | <artifactId>utils-test</artifactId> |
| 78 | <version>${policy.common.version}</version> |
| 79 | <scope>test</scope> |
| 80 | </dependency> |
| 81 | </dependencies> |
| 82 | |
| 83 | <!-- |
| 84 | Without this defined here, the checkstyle plugin just simply fails outright. This needs to be investigated |
| 85 | further as there was no real debugging details as to why or any configuration issue detected. |
| 86 | NOTE: I had to append src/main/java to the sourceDirectory. |
| 87 | Is it a reactor ordering issue? I'm wondering why it is being compiled after aai, in between the sub-modules |
| 88 | in model-impl. Dependency ordering?? Circular dependency?? |
| 89 | --> |
| 90 | <build> |
| 91 | <plugins> |
| 92 | <plugin> |
| 93 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>onap-java-style</id> |
| 97 | <goals> |
| 98 | <goal>check</goal> |
| 99 | </goals> |
| 100 | <phase>process-sources</phase> |
| 101 | <configuration> |
| 102 | <!-- Use Google Java Style Guide: |
| 103 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 104 | with minor changes --> |
| 105 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 106 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 107 | <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories> |
ning.xi | 0b860c8 | 2019-04-04 02:55:50 +0000 | [diff] [blame] | 108 | <includeResources>true</includeResources> |
| 109 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 110 | <includeTestResources>true</includeTestResources> |
| 111 | <excludes> |
| 112 | </excludes> |
| 113 | <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation> |
| 114 | <consoleOutput>true</consoleOutput> |
| 115 | <failsOnViolation>true</failsOnViolation> |
| 116 | <violationSeverity>warning</violationSeverity> |
| 117 | </configuration> |
| 118 | </execution> |
| 119 | </executions> |
| 120 | <dependencies> |
| 121 | <dependency> |
| 122 | <groupId>org.onap.oparent</groupId> |
| 123 | <artifactId>checkstyle</artifactId> |
| 124 | <version>${oparent.version}</version> |
| 125 | <scope>compile</scope> |
| 126 | </dependency> |
| 127 | </dependencies> |
| 128 | </plugin> |
| 129 | </plugins> |
| 130 | </build> |
| 131 | </project> |