@@ -714,21 +714,21 @@ under the License.
714714 <artifactId >modello-maven-plugin</artifactId >
715715 <configuration >
716716 <licenseText >Licensed to the Apache Software Foundation (ASF) under one
717- or more contributor license agreements. See the NOTICE file
718- distributed with this work for additional information
719- regarding copyright ownership. The ASF licenses this file
720- to you under the Apache License, Version 2.0 (the
721- "License"); you may not use this file except in compliance
722- with the License. You may obtain a copy of the License at
717+ or more contributor license agreements. See the NOTICE file
718+ distributed with this work for additional information
719+ regarding copyright ownership. The ASF licenses this file
720+ to you under the Apache License, Version 2.0 (the
721+ "License"); you may not use this file except in compliance
722+ with the License. You may obtain a copy of the License at
723723
724- http://www.apache.org/licenses/LICENSE-2.0
724+ http://www.apache.org/licenses/LICENSE-2.0
725725
726- Unless required by applicable law or agreed to in writing,
727- software distributed under the License is distributed on an
728- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
729- KIND, either express or implied. See the License for the
730- specific language governing permissions and limitations
731- under the License.</licenseText >
726+ Unless required by applicable law or agreed to in writing,
727+ software distributed under the License is distributed on an
728+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
729+ KIND, either express or implied. See the License for the
730+ specific language governing permissions and limitations
731+ under the License.</licenseText >
732732 </configuration >
733733 </plugin >
734734 <!-- enforce backwards compatibility -->
@@ -807,9 +807,59 @@ under the License.</licenseText>
807807 </dependency >
808808 </dependencies >
809809 </plugin >
810+ <plugin >
811+ <groupId >org.openrewrite.maven</groupId >
812+ <artifactId >rewrite-maven-plugin</artifactId >
813+ <version >6.8.1</version >
814+ <configuration >
815+ <activeRecipes >
816+ <!-- Issue: https://github.com/apache/maven/pull/2277 -->
817+ <!-- Fix: https://github.com/openrewrite/rewrite-static-analysis/pull/558 -->
818+ <!-- <recipe>org.openrewrite.staticanalysis.ReplaceCollectToListWithToList</recipe> -->
819+ <!-- <recipe>org.openrewrite.staticanalysis.ReplaceCollectToListWithToList</recipe> -->
820+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateFields</recipe> -->
821+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe> -->
822+ <!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryThrows</recipe> -->
823+ <!-- <recipe>org.openrewrite.java.ShortenFullyQualifiedTypeReferences</recipe> -->
824+ <!-- Issue: https://github.com/apache/maven/pull/2338 -->
825+ <!-- Fix: https://github.com/openrewrite/rewrite-static-analysis/pull/560 -->
826+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedParams</recipe> -->
827+ <recipe >org.openrewrite.java.security.JavaSecurityBestPractices</recipe >
828+ <recipe >org.openrewrite.staticanalysis.RemoveUnusedLocalVariables</recipe >
829+ </activeRecipes >
830+ <exportDatatables >true</exportDatatables >
831+ <failOnDryRunResults >true</failOnDryRunResults >
832+ </configuration >
833+ <dependencies >
834+ <dependency >
835+ <groupId >org.openrewrite.recipe</groupId >
836+ <artifactId >rewrite-static-analysis</artifactId >
837+ <version >2.9.0</version >
838+ </dependency >
839+ <dependency >
840+ <groupId >org.openrewrite.recipe</groupId >
841+ <artifactId >rewrite-java-security</artifactId >
842+ <version >3.8.0</version >
843+ </dependency >
844+ </dependencies >
845+ <executions >
846+ <execution >
847+ <id >rewrite-maven-plugin</id >
848+ <goals >
849+ <goal >run</goal >
850+ </goals >
851+ <phase >verify</phase >
852+ </execution >
853+ </executions >
854+ </plugin >
810855 </plugins >
811856 </pluginManagement >
812857 <plugins >
858+ <!-- undo-->
859+ <plugin >
860+ <groupId >org.openrewrite.maven</groupId >
861+ <artifactId >rewrite-maven-plugin</artifactId >
862+ </plugin >
813863 <plugin >
814864 <groupId >io.github.olamy.maven.plugins</groupId >
815865 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -822,10 +872,10 @@ under the License.</licenseText>
822872 <configuration >
823873 <asfExtOptions >
824874 <charter >The mission of the Apache Maven project is to create and maintain software
825- libraries that provide a widely-used project build tool, targeting mainly Java
826- development. Apache Maven promotes the use of dependencies via a
827- standardized coordinates system, binary plugins, and a standard build
828- lifecycle.</charter >
875+ libraries that provide a widely-used project build tool, targeting mainly Java
876+ development. Apache Maven promotes the use of dependencies via a
877+ standardized coordinates system, binary plugins, and a standard build
878+ lifecycle.</charter >
829879 </asfExtOptions >
830880 </configuration >
831881 </plugin >
@@ -1170,5 +1220,19 @@ under the License.</licenseText>
11701220 </plugins >
11711221 </build >
11721222 </profile >
1223+ <profile >
1224+ <id >rewrite</id >
1225+ <activation >
1226+ <activeByDefault >true</activeByDefault >
1227+ </activation >
1228+ <build >
1229+ <plugins >
1230+ <plugin >
1231+ <groupId >org.openrewrite.maven</groupId >
1232+ <artifactId >rewrite-maven-plugin</artifactId >
1233+ </plugin >
1234+ </plugins >
1235+ </build >
1236+ </profile >
11731237 </profiles >
11741238</project >
0 commit comments