From 12378bbfcb51d18441eac0d6486c3b0cc8eabcad Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 7 Feb 2022 03:01:38 +0100 Subject: [PATCH] [MCOMPILER-484] Remove deprecated mojos (#87) --- .../maven/plugin/AbstractCompilerMojo.java | 38 ------------------ .../plugin/CompilationFailureException.java | 40 ------------------- .../org/apache/maven/plugin/CompilerMojo.java | 34 ---------------- .../apache/maven/plugin/TestCompilerMojo.java | 34 ---------------- 4 files changed, 146 deletions(-) delete mode 100644 src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java delete mode 100644 src/main/java/org/apache/maven/plugin/CompilationFailureException.java delete mode 100644 src/main/java/org/apache/maven/plugin/CompilerMojo.java delete mode 100644 src/main/java/org/apache/maven/plugin/TestCompilerMojo.java diff --git a/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java deleted file mode 100644 index 4a69cfcb..00000000 --- a/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.plugin; - -/* - * 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. - */ - -/** - * TODO: At least one step could be optimized, currently the plugin will do two - * scans of all the source code if the compiler has to have the entire set of - * sources. This is currently the case for at least the C# compiler and most - * likely all the other .NET compilers too. - * - * @author others - * @author Trygve Laugstøl - * @since 2.0 - * @deprecated package change since 3.0 - */ -@Deprecated -public abstract class AbstractCompilerMojo - extends org.apache.maven.plugin.compiler.AbstractCompilerMojo -{ - // no op only here for backward comp -} diff --git a/src/main/java/org/apache/maven/plugin/CompilationFailureException.java b/src/main/java/org/apache/maven/plugin/CompilationFailureException.java deleted file mode 100644 index dbf8c3d4..00000000 --- a/src/main/java/org/apache/maven/plugin/CompilationFailureException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.plugin; - -/* - * 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. - */ - -import org.codehaus.plexus.compiler.CompilerMessage; - -import java.util.List; - -/** - * @author Jason van Zyl - * @version $Id$ - * @deprecated package change since 3.0 - */ -@SuppressWarnings ( "serial" ) -@Deprecated -public class CompilationFailureException - extends org.apache.maven.plugin.compiler.CompilationFailureException -{ - public CompilationFailureException( List messages ) - { - super( messages ); - } -} diff --git a/src/main/java/org/apache/maven/plugin/CompilerMojo.java b/src/main/java/org/apache/maven/plugin/CompilerMojo.java deleted file mode 100644 index 20a1fa1d..00000000 --- a/src/main/java/org/apache/maven/plugin/CompilerMojo.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.apache.maven.plugin; - -/* - * 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. - */ - -/** - * Compiles application sources - * - * @author Jason van Zyl - * @since 2.0 - * @deprecated package change since 3.0 - */ -@Deprecated -public class CompilerMojo - extends org.apache.maven.plugin.compiler.CompilerMojo -{ - // no op only here for backward comp -} diff --git a/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java b/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java deleted file mode 100644 index 021d4db6..00000000 --- a/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.apache.maven.plugin; - -/* - * 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. - */ - -/** - * Compiles application test sources. - * - * @author Jason van Zyl - * @since 2.0 - * @deprecated package change since 3.0 - */ -@Deprecated -public class TestCompilerMojo - extends org.apache.maven.plugin.compiler.TestCompilerMojo -{ - // no op only here for backward comp -}