Skip to content

Commit 74d92c8

Browse files
authored
HDDS-6213. Pluggable OzoneManager request handling hooks (#3104)
1 parent c2a67ac commit 74d92c8

22 files changed

Lines changed: 2408 additions & 5 deletions

File tree

dev-support/annotations/pom.xml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License. See accompanying LICENSE file.
14+
-->
15+
<project xmlns="http://maven.apache.org/POM/4.0.0"
16+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
18+
https://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<modelVersion>4.0.0</modelVersion>
20+
21+
<groupId>org.apache.ozone</groupId>
22+
<artifactId>ozone-annotation-processing</artifactId>
23+
<version>1.3.0-SNAPSHOT</version>
24+
<description>Apache Ozone annotation processing tools for validating custom
25+
annotations at compile time.
26+
</description>
27+
<name>Apache Ozone Annotation Processing</name>
28+
<packaging>jar</packaging>
29+
30+
<properties>
31+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33+
<spotbugs.version>3.1.12</spotbugs.version>
34+
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
35+
<checkstyle.version>8.29</checkstyle.version>
36+
</properties>
37+
38+
<dependencies>
39+
<dependency>
40+
<groupId>com.github.spotbugs</groupId>
41+
<artifactId>spotbugs</artifactId>
42+
<version>${spotbugs.version}</version>
43+
<scope>provided</scope>
44+
</dependency>
45+
</dependencies>
46+
47+
<build>
48+
<plugins>
49+
<!--
50+
| As this pom is not a child of the main ozone pom.xml, if we want
51+
| findbugs and checkstyle to be running for the module, the plugins
52+
| have to be defined here.
53+
-->
54+
<plugin>
55+
<groupId>com.github.spotbugs</groupId>
56+
<artifactId>spotbugs-maven-plugin</artifactId>
57+
<version>${spotbugs.version}</version>
58+
<configuration>
59+
<maxHeap>1024</maxHeap>
60+
<xmlOutput>true</xmlOutput>
61+
<includeTests>true</includeTests>
62+
</configuration>
63+
</plugin>
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-checkstyle-plugin</artifactId>
67+
<version>${maven-checkstyle-plugin.version}</version>
68+
<dependencies>
69+
<dependency>
70+
<groupId>com.puppycrawl.tools</groupId>
71+
<artifactId>checkstyle</artifactId>
72+
<version>${checkstyle.version}</version>
73+
</dependency>
74+
</dependencies>
75+
<configuration>
76+
<configLocation>../../hadoop-hdds/dev-support/checkstyle/checkstyle.xml</configLocation>
77+
<suppressionsLocation>../../hadoop-hdds/dev-support/checkstyle/suppressions.xml</suppressionsLocation>
78+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
79+
<failOnViolation>false</failOnViolation>
80+
<outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
81+
</configuration>
82+
</plugin>
83+
<!--
84+
| Compiler plugin configuration have to be modified to compile the
85+
| annotation processor, without having any annotation processor applied
86+
| as due to the presence of
87+
| META-INF/services/javac.annotation.processing.Processor the compilation
88+
| would fail as the linked processor class can not be find while we are
89+
| compiling it, hence the compiler argument -proc:none is specified here.
90+
-->
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-compiler-plugin</artifactId>
94+
<version>3.9.0</version>
95+
<configuration>
96+
<source>1.8</source>
97+
<target>1.8</target>
98+
</configuration>
99+
<executions>
100+
<execution>
101+
<id>default-compile</id>
102+
<configuration>
103+
<compilerArgument>-proc:none</compilerArgument>
104+
<includes>
105+
<include>org/apache/ozone/annotations/**</include>
106+
</includes>
107+
</configuration>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
</plugins>
112+
</build>
113+
114+
</project>

0 commit comments

Comments
 (0)