blob: f4555698c6a96cc99fad18cb5a66bedce8f2e891 [file] [log] [blame]
Pamela Dragosha974aa02017-02-14 19:31:53 -05001<!--
2 ============LICENSE_START=======================================================
Guo Ruijingf8a620d2017-07-28 08:21:14 +00003 ONAP Policy Engine - Common Modules
Pamela Dragosha974aa02017-02-14 19:31:53 -05004 ================================================================================
HOCKLA61394602020-01-09 11:48:49 -06005 Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
Pamela Dragosha974aa02017-02-14 19:31:53 -05006 ================================================================================
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
Jim Hahn02ba37e2019-07-05 13:03:06 -040010
Pamela Dragosha974aa02017-02-14 19:31:53 -050011 http://www.apache.org/licenses/LICENSE-2.0
Jim Hahn02ba37e2019-07-05 13:03:06 -040012
Pamela Dragosha974aa02017-02-14 19:31:53 -050013 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
liamfallon2f72ab62018-10-31 15:23:33 +000021<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">
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040022 <modelVersion>4.0.0</modelVersion>
Pamela Dragosha974aa02017-02-14 19:31:53 -050023
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040024 <parent>
25 <groupId>org.onap.policy.common</groupId>
26 <artifactId>common-modules</artifactId>
Pamela Dragoshf3e77922020-05-19 13:34:34 -040027 <version>1.7.0-SNAPSHOT</version>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040028 </parent>
Pamela Dragosh11510982017-02-23 05:56:25 -050029
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040030 <artifactId>ONAP-Logging</artifactId>
31 <description>ONAP Logging Framework</description>
32 <packaging>jar</packaging>
Pamela Dragosha974aa02017-02-14 19:31:53 -050033
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040034 <dependencies>
35 <dependency>
Jim Hahn02ba37e2019-07-05 13:03:06 -040036 <groupId>org.projectlombok</groupId>
37 <artifactId>lombok</artifactId>
38 <scope>provided</scope>
39 </dependency>
40 <dependency>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040041 <groupId>javax.servlet</groupId>
42 <artifactId>javax.servlet-api</artifactId>
43 <scope>compile</scope>
44 </dependency>
45 <dependency>
46 <groupId>org.slf4j</groupId>
47 <artifactId>slf4j-api</artifactId>
48 </dependency>
49 <dependency>
50 <groupId>com.att.eelf</groupId>
51 <artifactId>eelf-core</artifactId>
jhh4481ccf2020-06-29 09:54:06 -050052 <version>2.0.0-oss</version>
Jim Hahnfe237212020-01-10 16:59:48 -050053 <exclusions>
54 <exclusion>
55 <groupId>org.powermock</groupId>
56 <artifactId>powermock-api-mockito</artifactId>
57 </exclusion>
58 </exclusions>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040059 </dependency>
Jim Hahn02ba37e2019-07-05 13:03:06 -040060 <dependency>
61 <groupId>org.apache.commons</groupId>
62 <artifactId>commons-lang3</artifactId>
63 </dependency>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040064 <dependency>
Jim Hahn9f913152020-04-06 12:17:11 -040065 <groupId>org.assertj</groupId>
66 <artifactId>assertj-core</artifactId>
67 <scope>test</scope>
68 </dependency>
69 <dependency>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040070 <groupId>org.powermock</groupId>
HOCKLA61394602020-01-09 11:48:49 -060071 <artifactId>powermock-api-mockito2</artifactId>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040072 <scope>test</scope>
73 </dependency>
jhh4481ccf2020-06-29 09:54:06 -050074 <dependency>
75 <groupId>junit</groupId>
76 <artifactId>junit</artifactId>
77 <scope>test</scope>
78 </dependency>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040079 </dependencies>
80
81 <build>
82 <plugins>
83 <plugin>
84 <artifactId>maven-checkstyle-plugin</artifactId>
85 <executions>
86 <execution>
87 <id>onap-java-style</id>
88 <goals>
89 <goal>check</goal>
90 </goals>
91 <phase>process-sources</phase>
92 <configuration>
93 <!-- Use Google Java Style Guide:
94 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
95 with minor changes -->
96 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
97 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
HOCKLA79e69312019-12-11 10:24:44 -060098 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040099 <includeResources>true</includeResources>
100 <includeTestSourceDirectory>true</includeTestSourceDirectory>
101 <includeTestResources>true</includeTestResources>
102 <excludes>
103 </excludes>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400104 <consoleOutput>true</consoleOutput>
105 <failsOnViolation>true</failsOnViolation>
106 <violationSeverity>warning</violationSeverity>
107 </configuration>
108 </execution>
109 </executions>
110 <dependencies>
111 <dependency>
112 <groupId>org.onap.oparent</groupId>
113 <artifactId>checkstyle</artifactId>
114 <version>${oparent.version}</version>
115 <scope>compile</scope>
116 </dependency>
117 </dependencies>
118 </plugin>
119 <plugin>
120 <groupId>com.att.eelf</groupId>
121 <artifactId>eelf-maven-plugin</artifactId>
jhh4481ccf2020-06-29 09:54:06 -0500122 <version>2.0.0-oss</version>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400123 <executions>
124 <execution>
125 <phase>install</phase>
126 <goals>
127 <goal>WikiMsgGenerator</goal>
128 </goals>
129 </execution>
130 </executions>
131 <dependencies>
Jim Hahn02ba37e2019-07-05 13:03:06 -0400132 <!-- We need to include the dependency of the project so that its include
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400133 in classpath when running plugin -->
134 <dependency>
135 <groupId>org.onap.policy.common</groupId>
136 <artifactId>ONAP-Logging</artifactId>
137 <version>${project.version}</version>
138 </dependency>
139 </dependencies>
140 <configuration>
141 <outputDirectory>target/messages</outputDirectory>
142 <outputFile>messages.html</outputFile>
143 <resources>
144 <resource>
145 <messageClass>org.onap.policy.common.logging.eelf.MessageCodes</messageClass>
146 This needs to be replaced with your Enum
147 class name .which
148 implements EELFResolvableErrorEnum and have your defined error
149 codes.
150 <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500151 <p>
152 <ac:macro ac:name="anchor"> <ac:default-parameter>Application Messages</ac:default-parameter> </ac:macro> </p> <h2>Application Messages</h2>]]></header>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400153 </resource>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500154
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400155 </resources>
156 </configuration>
157 </plugin>
158 </plugins>
159 </build>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500160</project>