diff --git a/hadoop-hdds/annotations/pom.xml b/hadoop-hdds/annotations/pom.xml index c6fed7287b68..3bb148d5c255 100644 --- a/hadoop-hdds/annotations/pom.xml +++ b/hadoop-hdds/annotations/pom.xml @@ -34,4 +34,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> true + + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/client/pom.xml b/hadoop-hdds/client/pom.xml index 5c85fda966d8..5cd4ead18fbf 100644 --- a/hadoop-hdds/client/pom.xml +++ b/hadoop-hdds/client/pom.xml @@ -70,6 +70,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + diff --git a/hadoop-hdds/common/pom.xml b/hadoop-hdds/common/pom.xml index 12bfe927b61a..aeec60f97906 100644 --- a/hadoop-hdds/common/pom.xml +++ b/hadoop-hdds/common/pom.xml @@ -257,6 +257,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + diff --git a/hadoop-hdds/common/src/main/resources/META-INF/services/javax.annotation.processing.Processor b/hadoop-hdds/common/src/main/resources/META-INF/services/javax.annotation.processing.Processor deleted file mode 100644 index 8d65dbc0764c..000000000000 --- a/hadoop-hdds/common/src/main/resources/META-INF/services/javax.annotation.processing.Processor +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -org.apache.hadoop.hdds.conf.ConfigFileGenerator -org.apache.ozone.annotations.RequestFeatureValidatorProcessor -org.apache.ozone.annotations.ReplicateAnnotationProcessor diff --git a/hadoop-hdds/config/pom.xml b/hadoop-hdds/config/pom.xml index fb72f93570b9..1c71bf3d90a4 100644 --- a/hadoop-hdds/config/pom.xml +++ b/hadoop-hdds/config/pom.xml @@ -50,4 +50,41 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + compile + + + none + + + + default-testCompile + + testCompile + + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + + + diff --git a/hadoop-hdds/config/src/test/resources/META-INF/services/javax.annotation.processing.Processor b/hadoop-hdds/config/src/test/resources/META-INF/services/javax.annotation.processing.Processor deleted file mode 100644 index f29efdab384d..000000000000 --- a/hadoop-hdds/config/src/test/resources/META-INF/services/javax.annotation.processing.Processor +++ /dev/null @@ -1,16 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -org.apache.hadoop.hdds.conf.ConfigFileGenerator diff --git a/hadoop-hdds/container-service/pom.xml b/hadoop-hdds/container-service/pom.xml index 13973c871e6c..7a341bd66a8f 100644 --- a/hadoop-hdds/container-service/pom.xml +++ b/hadoop-hdds/container-service/pom.xml @@ -123,6 +123,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-hdds/docs/pom.xml b/hadoop-hdds/docs/pom.xml index 94f60ea4aa0c..d14ae28c10d8 100644 --- a/hadoop-hdds/docs/pom.xml +++ b/hadoop-hdds/docs/pom.xml @@ -35,6 +35,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.codehaus.mojo exec-maven-plugin diff --git a/hadoop-hdds/erasurecode/pom.xml b/hadoop-hdds/erasurecode/pom.xml index 14511a160cea..cd0afbca7f80 100644 --- a/hadoop-hdds/erasurecode/pom.xml +++ b/hadoop-hdds/erasurecode/pom.xml @@ -60,6 +60,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + none + + diff --git a/hadoop-hdds/framework/pom.xml b/hadoop-hdds/framework/pom.xml index 4a134e1c338d..6ea989fbc1e5 100644 --- a/hadoop-hdds/framework/pom.xml +++ b/hadoop-hdds/framework/pom.xml @@ -190,6 +190,48 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-annotation-processing + ${hdds.version} + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + org.apache.ozone.annotations.ReplicateAnnotationProcessor + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.kohsuke.MetaInfServices + + + + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/hadoop-hdds/hadoop-dependency-client/pom.xml b/hadoop-hdds/hadoop-dependency-client/pom.xml index 5d0ca946aeed..03b677e3818c 100644 --- a/hadoop-hdds/hadoop-dependency-client/pom.xml +++ b/hadoop-hdds/hadoop-dependency-client/pom.xml @@ -319,4 +319,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> snappy-java + + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/hadoop-dependency-server/pom.xml b/hadoop-hdds/hadoop-dependency-server/pom.xml index 47c571945919..98983db12ba5 100644 --- a/hadoop-hdds/hadoop-dependency-server/pom.xml +++ b/hadoop-hdds/hadoop-dependency-server/pom.xml @@ -206,4 +206,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> snappy-java + + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/hadoop-dependency-test/pom.xml b/hadoop-hdds/hadoop-dependency-test/pom.xml index c7b2776094c4..80ec91cd6d94 100644 --- a/hadoop-hdds/hadoop-dependency-test/pom.xml +++ b/hadoop-hdds/hadoop-dependency-test/pom.xml @@ -104,4 +104,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> slf4j-reload4j + + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/interface-admin/pom.xml b/hadoop-hdds/interface-admin/pom.xml index 8f38fb28dbb7..9230b02b524c 100644 --- a/hadoop-hdds/interface-admin/pom.xml +++ b/hadoop-hdds/interface-admin/pom.xml @@ -50,6 +50,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> com.salesforce.servicelibs proto-backwards-compatibility + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/hadoop-hdds/interface-client/pom.xml b/hadoop-hdds/interface-client/pom.xml index 2160f7c5edbf..98cfc53f5e86 100644 --- a/hadoop-hdds/interface-client/pom.xml +++ b/hadoop-hdds/interface-client/pom.xml @@ -58,6 +58,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> com.salesforce.servicelibs proto-backwards-compatibility + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/hadoop-hdds/interface-server/pom.xml b/hadoop-hdds/interface-server/pom.xml index b0e8d152b184..6c689171c8d3 100644 --- a/hadoop-hdds/interface-server/pom.xml +++ b/hadoop-hdds/interface-server/pom.xml @@ -51,6 +51,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> com.salesforce.servicelibs proto-backwards-compatibility + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/hadoop-hdds/managed-rocksdb/pom.xml b/hadoop-hdds/managed-rocksdb/pom.xml index f2f90ae5a92a..b95fcc3479d6 100644 --- a/hadoop-hdds/managed-rocksdb/pom.xml +++ b/hadoop-hdds/managed-rocksdb/pom.xml @@ -42,6 +42,15 @@ - - + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/rocks-native/pom.xml b/hadoop-hdds/rocks-native/pom.xml index 1c8f01bff93e..509586806c81 100644 --- a/hadoop-hdds/rocks-native/pom.xml +++ b/hadoop-hdds/rocks-native/pom.xml @@ -56,6 +56,13 @@ ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + none + + diff --git a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml index e3d365b65051..22f87556054c 100644 --- a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml +++ b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml @@ -99,6 +99,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + none + + maven-enforcer-plugin diff --git a/hadoop-hdds/server-scm/pom.xml b/hadoop-hdds/server-scm/pom.xml index bb2bdec14052..f1a998f27cfb 100644 --- a/hadoop-hdds/server-scm/pom.xml +++ b/hadoop-hdds/server-scm/pom.xml @@ -121,6 +121,48 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-annotation-processing + ${hdds.version} + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + org.apache.ozone.annotations.ReplicateAnnotationProcessor + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.kohsuke.MetaInfServices + + + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-hdds/test-utils/pom.xml b/hadoop-hdds/test-utils/pom.xml index ea3c94b65a6d..f720d65bdf50 100644 --- a/hadoop-hdds/test-utils/pom.xml +++ b/hadoop-hdds/test-utils/pom.xml @@ -106,4 +106,15 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-hdds/tools/pom.xml b/hadoop-hdds/tools/pom.xml index 5122f1d4a450..5e7238f5f3eb 100644 --- a/hadoop-hdds/tools/pom.xml +++ b/hadoop-hdds/tools/pom.xml @@ -110,4 +110,51 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> test + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + org.kohsuke.metainf-services + metainf-services + ${metainf-services.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + org.kohsuke.metainf_services.AnnotationProcessorImpl + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + + + + + + + + + diff --git a/hadoop-ozone/client/pom.xml b/hadoop-ozone/client/pom.xml index 2a052584ada1..dac609caa46d 100644 --- a/hadoop-ozone/client/pom.xml +++ b/hadoop-ozone/client/pom.xml @@ -79,6 +79,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + diff --git a/hadoop-ozone/common/pom.xml b/hadoop-ozone/common/pom.xml index bc981f0bb34b..15d961e09491 100644 --- a/hadoop-ozone/common/pom.xml +++ b/hadoop-ozone/common/pom.xml @@ -140,6 +140,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + diff --git a/hadoop-ozone/csi/pom.xml b/hadoop-ozone/csi/pom.xml index 4118af5b0693..04c153f3988c 100644 --- a/hadoop-ozone/csi/pom.xml +++ b/hadoop-ozone/csi/pom.xml @@ -171,6 +171,22 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.salesforce.servicelibs proto-backwards-compatibility + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + org.xolstice.maven.plugins protobuf-maven-plugin @@ -212,6 +228,21 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> depcheck + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + diff --git a/hadoop-ozone/datanode/pom.xml b/hadoop-ozone/datanode/pom.xml index 2f2193348899..29c10671d9da 100644 --- a/hadoop-ozone/datanode/pom.xml +++ b/hadoop-ozone/datanode/pom.xml @@ -62,6 +62,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/dist/pom.xml b/hadoop-ozone/dist/pom.xml index 64fc2cfa3728..e260fe1638cc 100644 --- a/hadoop-ozone/dist/pom.xml +++ b/hadoop-ozone/dist/pom.xml @@ -35,6 +35,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.codehaus.mojo exec-maven-plugin diff --git a/hadoop-ozone/fault-injection-test/mini-chaos-tests/pom.xml b/hadoop-ozone/fault-injection-test/mini-chaos-tests/pom.xml index 2fa1826e2704..4548459105fa 100644 --- a/hadoop-ozone/fault-injection-test/mini-chaos-tests/pom.xml +++ b/hadoop-ozone/fault-injection-test/mini-chaos-tests/pom.xml @@ -65,6 +65,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + org.apache.maven.plugins + maven-compiler-plugin + + none + + com.github.spotbugs spotbugs-maven-plugin diff --git a/hadoop-ozone/fault-injection-test/network-tests/pom.xml b/hadoop-ozone/fault-injection-test/network-tests/pom.xml index 4040aef19bca..97d10cbf7615 100644 --- a/hadoop-ozone/fault-injection-test/network-tests/pom.xml +++ b/hadoop-ozone/fault-injection-test/network-tests/pom.xml @@ -33,6 +33,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + org.apache.maven.plugins + maven-compiler-plugin + + none + + maven-resources-plugin diff --git a/hadoop-ozone/httpfsgateway/pom.xml b/hadoop-ozone/httpfsgateway/pom.xml index 582e6c1034a7..ce9ce46081d9 100644 --- a/hadoop-ozone/httpfsgateway/pom.xml +++ b/hadoop-ozone/httpfsgateway/pom.xml @@ -196,6 +196,13 @@ false + + org.apache.maven.plugins + maven-compiler-plugin + + none + + diff --git a/hadoop-ozone/insight/pom.xml b/hadoop-ozone/insight/pom.xml index f5e044ddac2f..ae0bc5cd3aab 100644 --- a/hadoop-ozone/insight/pom.xml +++ b/hadoop-ozone/insight/pom.xml @@ -100,6 +100,43 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> 2048 + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + diff --git a/hadoop-ozone/integration-test/pom.xml b/hadoop-ozone/integration-test/pom.xml index 7de7b2f936ec..e1ba4af83db7 100644 --- a/hadoop-ozone/integration-test/pom.xml +++ b/hadoop-ozone/integration-test/pom.xml @@ -257,6 +257,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/dev-support/findbugsExcludeFile.xml + + org.apache.maven.plugins + maven-compiler-plugin + + none + + diff --git a/hadoop-ozone/interface-client/pom.xml b/hadoop-ozone/interface-client/pom.xml index b92de2f5bc1e..c196dca045da 100644 --- a/hadoop-ozone/interface-client/pom.xml +++ b/hadoop-ozone/interface-client/pom.xml @@ -70,6 +70,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> com.salesforce.servicelibs proto-backwards-compatibility + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/hadoop-ozone/interface-storage/pom.xml b/hadoop-ozone/interface-storage/pom.xml index 8ec4e0d99409..ca7f14f1fa50 100644 --- a/hadoop-ozone/interface-storage/pom.xml +++ b/hadoop-ozone/interface-storage/pom.xml @@ -77,6 +77,43 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/hadoop-ozone/ozone-manager/pom.xml b/hadoop-ozone/ozone-manager/pom.xml index 5af36fb2291d..5f6bc54c5af9 100644 --- a/hadoop-ozone/ozone-manager/pom.xml +++ b/hadoop-ozone/ozone-manager/pom.xml @@ -234,6 +234,48 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-annotation-processing + ${hdds.version} + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + org.apache.ozone.annotations.RequestFeatureValidatorProcessor + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/ozonefs-common/pom.xml b/hadoop-ozone/ozonefs-common/pom.xml index 0543d461ea78..99ab7ba21bf8 100644 --- a/hadoop-ozone/ozonefs-common/pom.xml +++ b/hadoop-ozone/ozonefs-common/pom.xml @@ -32,7 +32,13 @@ - + + org.apache.maven.plugins + maven-compiler-plugin + + none + + diff --git a/hadoop-ozone/ozonefs-hadoop2/pom.xml b/hadoop-ozone/ozonefs-hadoop2/pom.xml index 8e31b055daa4..ee7f6e6848dd 100644 --- a/hadoop-ozone/ozonefs-hadoop2/pom.xml +++ b/hadoop-ozone/ozonefs-hadoop2/pom.xml @@ -112,6 +112,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/ozonefs-hadoop3-client/pom.xml b/hadoop-ozone/ozonefs-hadoop3-client/pom.xml index 4e35e986c155..f27bd411db72 100644 --- a/hadoop-ozone/ozonefs-hadoop3-client/pom.xml +++ b/hadoop-ozone/ozonefs-hadoop3-client/pom.xml @@ -43,6 +43,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/ozonefs-hadoop3/pom.xml b/hadoop-ozone/ozonefs-hadoop3/pom.xml index 6c900c56f86a..ca1c8983f5c1 100644 --- a/hadoop-ozone/ozonefs-hadoop3/pom.xml +++ b/hadoop-ozone/ozonefs-hadoop3/pom.xml @@ -63,6 +63,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/ozonefs-shaded/pom.xml b/hadoop-ozone/ozonefs-shaded/pom.xml index 417a4f9dca3b..df6c724883c9 100644 --- a/hadoop-ozone/ozonefs-shaded/pom.xml +++ b/hadoop-ozone/ozonefs-shaded/pom.xml @@ -81,6 +81,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-shade-plugin diff --git a/hadoop-ozone/ozonefs/pom.xml b/hadoop-ozone/ozonefs/pom.xml index f5cda0414c17..33bbb893cfd7 100644 --- a/hadoop-ozone/ozonefs/pom.xml +++ b/hadoop-ozone/ozonefs/pom.xml @@ -32,6 +32,13 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + none + + org.apache.maven.plugins maven-jar-plugin diff --git a/hadoop-ozone/recon-codegen/pom.xml b/hadoop-ozone/recon-codegen/pom.xml index 50c81ae657e9..26a70c459748 100644 --- a/hadoop-ozone/recon-codegen/pom.xml +++ b/hadoop-ozone/recon-codegen/pom.xml @@ -57,4 +57,46 @@ guice + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + + + diff --git a/hadoop-ozone/recon/pom.xml b/hadoop-ozone/recon/pom.xml index 917a691c543a..f4910189ff7b 100644 --- a/hadoop-ozone/recon/pom.xml +++ b/hadoop-ozone/recon/pom.xml @@ -36,6 +36,43 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + org.codehaus.mojo exec-maven-plugin diff --git a/hadoop-ozone/s3-secret-store/pom.xml b/hadoop-ozone/s3-secret-store/pom.xml index 99f99c2d01d3..df34dd8cdc88 100644 --- a/hadoop-ozone/s3-secret-store/pom.xml +++ b/hadoop-ozone/s3-secret-store/pom.xml @@ -55,4 +55,16 @@ test + + + + + org.apache.maven.plugins + maven-compiler-plugin + + none + + + + diff --git a/hadoop-ozone/s3gateway/pom.xml b/hadoop-ozone/s3gateway/pom.xml index 18bbd906a0b1..5a2900f4bf48 100644 --- a/hadoop-ozone/s3gateway/pom.xml +++ b/hadoop-ozone/s3gateway/pom.xml @@ -168,6 +168,43 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/hadoop-ozone/tools/pom.xml b/hadoop-ozone/tools/pom.xml index 839d01f0fa84..98a6fef13e17 100644 --- a/hadoop-ozone/tools/pom.xml +++ b/hadoop-ozone/tools/pom.xml @@ -121,6 +121,48 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> 2048 + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.apache.ozone + hdds-config + ${hdds.version} + + + org.kohsuke.metainf-services + metainf-services + ${metainf-services.version} + + + + org.apache.hadoop.hdds.conf.ConfigFileGenerator + org.kohsuke.metainf_services.AnnotationProcessorImpl + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-annotations + + + + Only selected annotation processors are enabled, see configuration of maven-compiler-plugin. + + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + + + + + + + diff --git a/pom.xml b/pom.xml index ec059503dcc2..1a3babbdd7eb 100644 --- a/pom.xml +++ b/pom.xml @@ -1559,6 +1559,27 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs + + ban-annotations + process-sources + + enforce + + + + + Annotation processing is disabled by default. Override this ban in modules where processing is enabled. + + org.apache.hadoop.hdds.conf.Config + org.apache.hadoop.hdds.conf.ConfigGroup + org.apache.hadoop.ozone.om.request.validation.RequestFeatureValidator + org.apache.hadoop.hdds.scm.metadata.Replicate + org.kohsuke.MetaInfServices + + + + +