blob: 335af71bafacf0065d55a9db1ee7f368617433da [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>
HOCKLAe20940f2019-12-06 14:29:46 -060027 <version>1.6.2-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>log4j</groupId>
42 <artifactId>log4j</artifactId>
43 <scope>provided</scope>
44 </dependency>
45 <dependency>
46 <groupId>javax.servlet</groupId>
47 <artifactId>javax.servlet-api</artifactId>
48 <scope>compile</scope>
49 </dependency>
50 <dependency>
51 <groupId>org.slf4j</groupId>
52 <artifactId>slf4j-api</artifactId>
53 </dependency>
54 <dependency>
55 <groupId>com.att.eelf</groupId>
56 <artifactId>eelf-core</artifactId>
57 <version>1.0.1-oss</version>
Jim Hahnfe237212020-01-10 16:59:48 -050058 <exclusions>
59 <exclusion>
60 <groupId>org.powermock</groupId>
61 <artifactId>powermock-api-mockito</artifactId>
62 </exclusion>
63 </exclusions>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040064 </dependency>
Jim Hahn02ba37e2019-07-05 13:03:06 -040065 <dependency>
66 <groupId>org.apache.commons</groupId>
67 <artifactId>commons-lang3</artifactId>
68 </dependency>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040069 <dependency>
70 <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>
74 </dependencies>
75
76 <build>
77 <plugins>
78 <plugin>
79 <artifactId>maven-checkstyle-plugin</artifactId>
80 <executions>
81 <execution>
82 <id>onap-java-style</id>
83 <goals>
84 <goal>check</goal>
85 </goals>
86 <phase>process-sources</phase>
87 <configuration>
88 <!-- Use Google Java Style Guide:
89 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
90 with minor changes -->
91 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
92 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
HOCKLA79e69312019-12-11 10:24:44 -060093 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040094 <includeResources>true</includeResources>
95 <includeTestSourceDirectory>true</includeTestSourceDirectory>
96 <includeTestResources>true</includeTestResources>
97 <excludes>
98 </excludes>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -040099 <consoleOutput>true</consoleOutput>
100 <failsOnViolation>true</failsOnViolation>
101 <violationSeverity>warning</violationSeverity>
102 </configuration>
103 </execution>
104 </executions>
105 <dependencies>
106 <dependency>
107 <groupId>org.onap.oparent</groupId>
108 <artifactId>checkstyle</artifactId>
109 <version>${oparent.version}</version>
110 <scope>compile</scope>
111 </dependency>
112 </dependencies>
113 </plugin>
114 <plugin>
115 <groupId>com.att.eelf</groupId>
116 <artifactId>eelf-maven-plugin</artifactId>
117 <version>0.0.1</version>
118 <executions>
119 <execution>
120 <phase>install</phase>
121 <goals>
122 <goal>WikiMsgGenerator</goal>
123 </goals>
124 </execution>
125 </executions>
126 <dependencies>
Jim Hahn02ba37e2019-07-05 13:03:06 -0400127 <!-- We need to include the dependency of the project so that its include
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400128 in classpath when running plugin -->
129 <dependency>
130 <groupId>org.onap.policy.common</groupId>
131 <artifactId>ONAP-Logging</artifactId>
132 <version>${project.version}</version>
133 </dependency>
134 </dependencies>
135 <configuration>
136 <outputDirectory>target/messages</outputDirectory>
137 <outputFile>messages.html</outputFile>
138 <resources>
139 <resource>
140 <messageClass>org.onap.policy.common.logging.eelf.MessageCodes</messageClass>
141 This needs to be replaced with your Enum
142 class name .which
143 implements EELFResolvableErrorEnum and have your defined error
144 codes.
145 <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500146 <p>
147 <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 -0400148 </resource>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500149
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400150 </resources>
151 </configuration>
152 </plugin>
153 </plugins>
154 </build>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500155</project>