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 | ================================================================================ |
| 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
| 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> |
| 28 | <version>2.0.0-SNAPSHOT</version> |
| 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> |
| 48 | <version>1.17</version> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.jgrapht</groupId> |
| 52 | <artifactId>jgrapht-core</artifactId> |
| 53 | <version>0.9.2</version> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 57 | <artifactId>sdc</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | <scope>provided</scope> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 63 | <artifactId>aai</artifactId> |
| 64 | <version>${project.version}</version> |
| 65 | <scope>provided</scope> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>com.google.guava</groupId> |
| 69 | <artifactId>guava</artifactId> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>junit</groupId> |
| 73 | <artifactId>junit</artifactId> |
| 74 | <scope>test</scope> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>org.onap.policy.common</groupId> |
| 78 | <artifactId>utils-test</artifactId> |
| 79 | <version>${policy.common.version}</version> |
| 80 | <scope>test</scope> |
| 81 | </dependency> |
| 82 | </dependencies> |
| 83 | |
| 84 | <!-- |
| 85 | Without this defined here, the checkstyle plugin just simply fails outright. This needs to be investigated |
| 86 | further as there was no real debugging details as to why or any configuration issue detected. |
| 87 | NOTE: I had to append src/main/java to the sourceDirectory. |
| 88 | Is it a reactor ordering issue? I'm wondering why it is being compiled after aai, in between the sub-modules |
| 89 | in model-impl. Dependency ordering?? Circular dependency?? |
| 90 | --> |
| 91 | <build> |
| 92 | <plugins> |
| 93 | <plugin> |
| 94 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 95 | <executions> |
| 96 | <execution> |
| 97 | <id>onap-java-style</id> |
| 98 | <goals> |
| 99 | <goal>check</goal> |
| 100 | </goals> |
| 101 | <phase>process-sources</phase> |
| 102 | <configuration> |
| 103 | <!-- Use Google Java Style Guide: |
| 104 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 105 | with minor changes --> |
| 106 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 107 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 108 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 109 | <includeResources>true</includeResources> |
| 110 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 111 | <includeTestResources>true</includeTestResources> |
| 112 | <excludes> |
| 113 | </excludes> |
| 114 | <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation> |
| 115 | <consoleOutput>true</consoleOutput> |
| 116 | <failsOnViolation>true</failsOnViolation> |
| 117 | <violationSeverity>warning</violationSeverity> |
| 118 | </configuration> |
| 119 | </execution> |
| 120 | </executions> |
| 121 | <dependencies> |
| 122 | <dependency> |
| 123 | <groupId>org.onap.oparent</groupId> |
| 124 | <artifactId>checkstyle</artifactId> |
| 125 | <version>${oparent.version}</version> |
| 126 | <scope>compile</scope> |
| 127 | </dependency> |
| 128 | </dependencies> |
| 129 | </plugin> |
| 130 | </plugins> |
| 131 | </build> |
| 132 | </project> |