@@ -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,56 @@ 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.RemoveUnusedPrivateFields</recipe> -->
820+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe> -->
821+ <!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryThrows</recipe> -->
822+ <!-- <recipe>org.openrewrite.java.ShortenFullyQualifiedTypeReferences</recipe> -->
823+ <recipe >org.openrewrite.java.RemoveUnusedImports</recipe >
824+ <recipe >org.openrewrite.java.security.JavaSecurityBestPractices</recipe >
825+ <recipe >org.openrewrite.staticanalysis.RemoveUnusedLocalVariables</recipe >
826+ </activeRecipes >
827+ <exportDatatables >true</exportDatatables >
828+ <failOnDryRunResults >true</failOnDryRunResults >
829+ </configuration >
830+ <dependencies >
831+ <dependency >
832+ <groupId >org.openrewrite.recipe</groupId >
833+ <artifactId >rewrite-static-analysis</artifactId >
834+ <version >2.9.0</version >
835+ </dependency >
836+ <dependency >
837+ <groupId >org.openrewrite.recipe</groupId >
838+ <artifactId >rewrite-java-security</artifactId >
839+ <version >3.8.0</version >
840+ </dependency >
841+ </dependencies >
842+ <executions >
843+ <execution >
844+ <id >rewrite-maven-plugin</id >
845+ <goals >
846+ <goal >run</goal >
847+ </goals >
848+ <phase >verify</phase >
849+ </execution >
850+ </executions >
851+ </plugin >
810852 </plugins >
811853 </pluginManagement >
812854 <plugins >
855+ <!-- undo-->
856+ <plugin >
857+ <groupId >org.openrewrite.maven</groupId >
858+ <artifactId >rewrite-maven-plugin</artifactId >
859+ </plugin >
813860 <plugin >
814861 <groupId >io.github.olamy.maven.plugins</groupId >
815862 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -822,10 +869,10 @@ under the License.</licenseText>
822869 <configuration >
823870 <asfExtOptions >
824871 <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 >
872+ libraries that provide a widely-used project build tool, targeting mainly Java
873+ development. Apache Maven promotes the use of dependencies via a
874+ standardized coordinates system, binary plugins, and a standard build
875+ lifecycle.</charter >
829876 </asfExtOptions >
830877 </configuration >
831878 </plugin >
@@ -1170,5 +1217,19 @@ under the License.</licenseText>
11701217 </plugins >
11711218 </build >
11721219 </profile >
1220+ <profile >
1221+ <id >rewrite</id >
1222+ <activation >
1223+ <activeByDefault >true</activeByDefault >
1224+ </activation >
1225+ <build >
1226+ <plugins >
1227+ <plugin >
1228+ <groupId >org.openrewrite.maven</groupId >
1229+ <artifactId >rewrite-maven-plugin</artifactId >
1230+ </plugin >
1231+ </plugins >
1232+ </build >
1233+ </profile >
11731234 </profiles >
11741235</project >
0 commit comments