From 629dd38f3d923965a5db647545a23cacb35e2912 Mon Sep 17 00:00:00 2001 From: Robert Scholte Date: Thu, 11 Aug 2016 22:15:35 +0000 Subject: [PATCH] Ensure native EOL git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756059 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/coreit/MPlugin220Mojo.java | 94 +-- .../src/it/mplugin-187/invoker.properties | 36 +- .../src/it/mplugin-187/pom.xml | 88 +-- .../src/it/mplugin-191/invoker.properties | 36 +- .../maven/plugins/plugin/it/MyMojo.java | 162 ++--- .../src/it/mplugin-191/verify.groovy | 48 +- .../it/mplugin-272_java8/invoker.properties | 36 +- .../src/main/java/fr/ca/MyMojo.java | 74 +-- .../src/main/java/fr/ca/TestInterface.java | 54 +- .../invoker.properties | 34 +- .../pom.xml | 164 ++--- .../plugins/plugin/it/CustomSurefireMojo.java | 576 +++++++++--------- .../verify.groovy | 52 +- .../invoker.properties | 34 +- .../mplugin-305_emptyMojoDependencies/pom.xml | 170 +++--- .../plugins/plugin/it/CustomSurefireMojo.java | 576 +++++++++--------- .../verify.groovy | 52 +- .../invoker.properties | 34 +- .../pom.xml | 170 +++--- .../plugins/plugin/it/CustomSurefireMojo.java | 576 +++++++++--------- .../verify.groovy | 52 +- .../main/resources/META-INF/maven/plugin.xml | 136 ++--- .../main/resources/META-INF/maven/plugin.xml | 136 ++--- .../main/resources/META-INF/maven/plugin.xml | 136 ++--- .../src/it/plugin-info-jdk/test.properties | 34 +- .../src/it/skip/invoker.properties | 36 +- maven-plugin-plugin/src/it/skip/verify.groovy | 46 +- 27 files changed, 1821 insertions(+), 1821 deletions(-) diff --git a/maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java b/maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java index 84a49da..06b6068 100644 --- a/maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java +++ b/maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java @@ -1,47 +1,47 @@ -package org.apache.maven.plugin.coreit; - -/* - * 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.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.plugins.annotations.Parameter; - -import java.io.File; -import java.io.IOException; - -/** - * Could not use regex in @Parameter(defaultValue) - */ -@Mojo( name = "mplugin-220" ) -public class MPlugin220Mojo - extends AbstractMojo -{ - - @Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" ) - private String regex; - - public void execute() - throws MojoExecutionException - { - getLog().info( "regex = " + regex ); - } - -} +package org.apache.maven.plugin.coreit; + +/* + * 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.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; + +import java.io.File; +import java.io.IOException; + +/** + * Could not use regex in @Parameter(defaultValue) + */ +@Mojo( name = "mplugin-220" ) +public class MPlugin220Mojo + extends AbstractMojo +{ + + @Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" ) + private String regex; + + public void execute() + throws MojoExecutionException + { + getLog().info( "regex = " + regex ); + } + +} diff --git a/maven-plugin-plugin/src/it/mplugin-187/invoker.properties b/maven-plugin-plugin/src/it/mplugin-187/invoker.properties index 7b9a69e..5659577 100644 --- a/maven-plugin-plugin/src/it/mplugin-187/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-187/invoker.properties @@ -1,18 +1,18 @@ -# 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. - -invoker.goals = clean plugin:report -DskipTests +# 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. + +invoker.goals = clean plugin:report -DskipTests diff --git a/maven-plugin-plugin/src/it/mplugin-187/pom.xml b/maven-plugin-plugin/src/it/mplugin-187/pom.xml index 52ec7f5..541ee69 100644 --- a/maven-plugin-plugin/src/it/mplugin-187/pom.xml +++ b/maven-plugin-plugin/src/it/mplugin-187/pom.xml @@ -1,45 +1,45 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins.plugin.its - mplugin-187 - 1.0-SNAPSHOT - - Verify that plugin:report succeeds - - - UTF-8 - - - - - - org.apache.maven.plugins - maven-plugin-plugin - @project.version@ - - - - + + + + + + 4.0.0 + + org.apache.maven.plugins.plugin.its + mplugin-187 + 1.0-SNAPSHOT + + Verify that plugin:report succeeds + + + UTF-8 + + + + + + org.apache.maven.plugins + maven-plugin-plugin + @project.version@ + + + + \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-191/invoker.properties b/maven-plugin-plugin/src/it/mplugin-191/invoker.properties index 1cfcc19..8123c49 100644 --- a/maven-plugin-plugin/src/it/mplugin-191/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-191/invoker.properties @@ -1,18 +1,18 @@ -# 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. - -invoker.goals = clean compile plugin:report +# 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. + +invoker.goals = clean compile plugin:report diff --git a/maven-plugin-plugin/src/it/mplugin-191/src/main/java/org/apache/maven/plugins/plugin/it/MyMojo.java b/maven-plugin-plugin/src/it/mplugin-191/src/main/java/org/apache/maven/plugins/plugin/it/MyMojo.java index f6b893c..14c7b92 100644 --- a/maven-plugin-plugin/src/it/mplugin-191/src/main/java/org/apache/maven/plugins/plugin/it/MyMojo.java +++ b/maven-plugin-plugin/src/it/mplugin-191/src/main/java/org/apache/maven/plugins/plugin/it/MyMojo.java @@ -1,81 +1,81 @@ -package org.apache.maven.plugins.plugin.it; - -/* - * 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.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugins.annotations.LifecyclePhase; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.plugins.annotations.Parameter; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; - -/** - * Goal which touches a timestamp file. - */ -@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_RESOURCES) -public class MyMojo - extends AbstractMojo -{ - /** - * Location of the file. - */ - @Parameter(defaultValue = "${project.build.directory}", required = true) - private File outputDirectory; - - public void execute() - throws MojoExecutionException - { - File f = outputDirectory; - - if ( !f.exists() ) - { - f.mkdirs(); - } - - File touch = new File( f, "touch.txt" ); - - FileWriter w = null; - try - { - w = new FileWriter( touch ); - - w.write( "touch.txt" ); - } - catch ( IOException e ) - { - throw new MojoExecutionException( "Error creating file " + touch, e ); - } - finally - { - if ( w != null ) - { - try - { - w.close(); - } - catch ( IOException e ) - { - // ignore - } - } - } - } -} +package org.apache.maven.plugins.plugin.it; + +/* + * 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.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; + +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; + +/** + * Goal which touches a timestamp file. + */ +@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_RESOURCES) +public class MyMojo + extends AbstractMojo +{ + /** + * Location of the file. + */ + @Parameter(defaultValue = "${project.build.directory}", required = true) + private File outputDirectory; + + public void execute() + throws MojoExecutionException + { + File f = outputDirectory; + + if ( !f.exists() ) + { + f.mkdirs(); + } + + File touch = new File( f, "touch.txt" ); + + FileWriter w = null; + try + { + w = new FileWriter( touch ); + + w.write( "touch.txt" ); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Error creating file " + touch, e ); + } + finally + { + if ( w != null ) + { + try + { + w.close(); + } + catch ( IOException e ) + { + // ignore + } + } + } + } +} diff --git a/maven-plugin-plugin/src/it/mplugin-191/verify.groovy b/maven-plugin-plugin/src/it/mplugin-191/verify.groovy index e3f3f46..5a33abd 100644 --- a/maven-plugin-plugin/src/it/mplugin-191/verify.groovy +++ b/maven-plugin-plugin/src/it/mplugin-191/verify.groovy @@ -1,24 +1,24 @@ -/* - * 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. - */ - -File pluginInfo = new File( basedir, "target/site/plugin-info.html" ); -assert pluginInfo.isFile() - -File touchMojo = new File( basedir, "target/generated-site/xdoc/touch-mojo.xml" ); -assert touchMojo.isFile() - -return true; +/* + * 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. + */ + +File pluginInfo = new File( basedir, "target/site/plugin-info.html" ); +assert pluginInfo.isFile() + +File touchMojo = new File( basedir, "target/generated-site/xdoc/touch-mojo.xml" ); +assert touchMojo.isFile() + +return true; diff --git a/maven-plugin-plugin/src/it/mplugin-272_java8/invoker.properties b/maven-plugin-plugin/src/it/mplugin-272_java8/invoker.properties index ea02614..ea9f135 100644 --- a/maven-plugin-plugin/src/it/mplugin-272_java8/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-272_java8/invoker.properties @@ -1,19 +1,19 @@ -# 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. - -invoker.java.version = 1.8+ +# 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. + +invoker.java.version = 1.8+ invoker.goals.1 = clean verify \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/MyMojo.java b/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/MyMojo.java index 0b276ed..0775020 100644 --- a/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/MyMojo.java +++ b/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/MyMojo.java @@ -1,37 +1,37 @@ -package fr.ca; - -/* - * 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.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugins.annotations.LifecyclePhase; -import org.apache.maven.plugins.annotations.Mojo; - -/** - * Created by clement.agarini on 04/08/14. - */ -@Mojo(name="test-plugin",defaultPhase = LifecyclePhase.GENERATE_SOURCES) -public class MyMojo extends AbstractMojo { - @Override - public void execute() throws MojoExecutionException, MojoFailureException { - - } -} +package fr.ca; + +/* + * 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.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; + +/** + * Created by clement.agarini on 04/08/14. + */ +@Mojo(name="test-plugin",defaultPhase = LifecyclePhase.GENERATE_SOURCES) +public class MyMojo extends AbstractMojo { + @Override + public void execute() throws MojoExecutionException, MojoFailureException { + + } +} diff --git a/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java b/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java index 2b2cc0c..1f32023 100644 --- a/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java +++ b/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java @@ -1,27 +1,27 @@ -package fr.ca; - -/* - * 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. - */ - -public interface TestInterface { - - public default void foo(){ - - } -} +package fr.ca; + +/* + * 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. + */ + +public interface TestInterface { + + public default void foo(){ + + } +} diff --git a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/invoker.properties b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/invoker.properties index 1b464c5..2ae6868 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/invoker.properties @@ -1,18 +1,18 @@ -# 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. - +# 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. + invoker.goals.1 = clean process-classes \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/pom.xml b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/pom.xml index 14dba07..b77ad77 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/pom.xml +++ b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/pom.xml @@ -1,82 +1,82 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins.plugin.its - mplugin305 - 1.0-SNAPSHOT - maven-plugin - - https://issues.apache.org/jira/browse/MPLUGIN-305 - - - @project.version@ - UTF-8 - - - - - org.apache.maven - maven-plugin-api - 2.2.1 - - - org.apache.maven.plugin-tools - maven-plugin-annotations - ${mavenPluginPluginVersion} - provided - - - org.apache.maven.surefire - maven-surefire-common - 2.19.1 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.4 - - - org.apache.maven.plugins - maven-plugin-plugin - ${mavenPluginPluginVersion} - - - java-annotations - - true - - - - mojo-descriptor - - descriptor - - - - - - - + + + + + + 4.0.0 + + org.apache.maven.plugins.plugin.its + mplugin305 + 1.0-SNAPSHOT + maven-plugin + + https://issues.apache.org/jira/browse/MPLUGIN-305 + + + @project.version@ + UTF-8 + + + + + org.apache.maven + maven-plugin-api + 2.2.1 + + + org.apache.maven.plugin-tools + maven-plugin-annotations + ${mavenPluginPluginVersion} + provided + + + org.apache.maven.surefire + maven-surefire-common + 2.19.1 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.4 + + + org.apache.maven.plugins + maven-plugin-plugin + ${mavenPluginPluginVersion} + + + java-annotations + + true + + + + mojo-descriptor + + descriptor + + + + + + + diff --git a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java index 838faea..89a197b 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java +++ b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java @@ -1,289 +1,289 @@ -package org.apache.maven.plugins.plugin.it; - -/* - * 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 java.io.File; -import java.util.List; - -import org.apache.maven.plugin.surefire.AbstractSurefireMojo; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.surefire.suite.RunResult; - -@Mojo(name="custom-surefire") -public class CustomSurefireMojo extends AbstractSurefireMojo { - - public File getBasedir() - { - return null; - } - - public File getClassesDirectory() - { - return null; - } - - public String getDebugForkedProcess() - { - return null; - } - - public Boolean getFailIfNoSpecifiedTests() - { - return null; - } - - public int getForkedProcessTimeoutInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutForcedInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutInSeconds() - { - return 0; - } - - public String getReportFormat() - { - return null; - } - - public File getReportsDirectory() - { - return null; - } - - public String getShutdown() - { - return null; - } - - public int getSkipAfterFailureCount() - { - return 0; - } - - public String getTest() - { - return null; - } - - public File getTestClassesDirectory() - { - return null; - } - - public boolean isPrintSummary() - { - return false; - } - - public boolean isSkip() - { - return false; - } - - public boolean isSkipExec() - { - return false; - } - - public boolean isSkipTests() - { - return false; - } - - public boolean isUseFile() - { - return false; - } - - public boolean isUseManifestOnlyJar() - { - return false; - } - - public boolean isUseSystemClassLoader() - { - return false; - } - - public void setBasedir( File arg0 ) - { - } - - public void setClassesDirectory( File arg0 ) - { - } - - public void setDebugForkedProcess( String arg0 ) - { - } - - public void setFailIfNoSpecifiedTests( boolean arg0 ) - { - } - - public void setForkedProcessTimeoutInSeconds( int arg0 ) - { - } - - public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) - { - } - - public void setParallelTestsTimeoutInSeconds( double arg0 ) - { - } - - public void setPrintSummary( boolean arg0 ) - { - } - - public void setReportFormat( String arg0 ) - { - } - - public void setReportsDirectory( File arg0 ) - { - } - - public void setSkip( boolean arg0 ) - { - } - - public void setSkipExec( boolean arg0 ) - { - } - - public void setSkipTests( boolean arg0 ) - { - } - - public void setTest( String arg0 ) - { - } - - public void setTestClassesDirectory( File arg0 ) - { - } - - public void setUseFile( boolean arg0 ) - { - } - - public void setUseManifestOnlyJar( boolean arg0 ) - { - } - - public void setUseSystemClassLoader( boolean arg0 ) - { - } - - @Override - protected String[] getDefaultIncludes() - { - return null; - } - - @Override - public File getExcludesFile() - { - return null; - } - - @Override - public List getIncludes() - { - return null; - } - - @Override - public File getIncludesFile() - { - return null; - } - - @Override - protected String getPluginName() - { - return null; - } - - @Override - protected int getRerunFailingTestsCount() - { - return 0; - } - - @Override - public String getRunOrder() - { - return null; - } - - @Override - public File[] getSuiteXmlFiles() - { - return null; - } - - @Override - protected void handleSummary( RunResult arg0, Exception arg1 ) - { - } - - @Override - protected boolean hasSuiteXmlFiles() - { - return false; - } - - @Override - protected boolean isSkipExecution() - { - return false; - } - - @Override - public void setIncludes( List arg0 ) - { - } - - @Override - public void setRunOrder( String arg0 ) - { - } - - @Override - public void setSuiteXmlFiles( File[] arg0 ) - { - } - - @Override - protected List suiteXmlFiles() - { - return null; - } +package org.apache.maven.plugins.plugin.it; + +/* + * 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 java.io.File; +import java.util.List; + +import org.apache.maven.plugin.surefire.AbstractSurefireMojo; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.surefire.suite.RunResult; + +@Mojo(name="custom-surefire") +public class CustomSurefireMojo extends AbstractSurefireMojo { + + public File getBasedir() + { + return null; + } + + public File getClassesDirectory() + { + return null; + } + + public String getDebugForkedProcess() + { + return null; + } + + public Boolean getFailIfNoSpecifiedTests() + { + return null; + } + + public int getForkedProcessTimeoutInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutForcedInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutInSeconds() + { + return 0; + } + + public String getReportFormat() + { + return null; + } + + public File getReportsDirectory() + { + return null; + } + + public String getShutdown() + { + return null; + } + + public int getSkipAfterFailureCount() + { + return 0; + } + + public String getTest() + { + return null; + } + + public File getTestClassesDirectory() + { + return null; + } + + public boolean isPrintSummary() + { + return false; + } + + public boolean isSkip() + { + return false; + } + + public boolean isSkipExec() + { + return false; + } + + public boolean isSkipTests() + { + return false; + } + + public boolean isUseFile() + { + return false; + } + + public boolean isUseManifestOnlyJar() + { + return false; + } + + public boolean isUseSystemClassLoader() + { + return false; + } + + public void setBasedir( File arg0 ) + { + } + + public void setClassesDirectory( File arg0 ) + { + } + + public void setDebugForkedProcess( String arg0 ) + { + } + + public void setFailIfNoSpecifiedTests( boolean arg0 ) + { + } + + public void setForkedProcessTimeoutInSeconds( int arg0 ) + { + } + + public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) + { + } + + public void setParallelTestsTimeoutInSeconds( double arg0 ) + { + } + + public void setPrintSummary( boolean arg0 ) + { + } + + public void setReportFormat( String arg0 ) + { + } + + public void setReportsDirectory( File arg0 ) + { + } + + public void setSkip( boolean arg0 ) + { + } + + public void setSkipExec( boolean arg0 ) + { + } + + public void setSkipTests( boolean arg0 ) + { + } + + public void setTest( String arg0 ) + { + } + + public void setTestClassesDirectory( File arg0 ) + { + } + + public void setUseFile( boolean arg0 ) + { + } + + public void setUseManifestOnlyJar( boolean arg0 ) + { + } + + public void setUseSystemClassLoader( boolean arg0 ) + { + } + + @Override + protected String[] getDefaultIncludes() + { + return null; + } + + @Override + public File getExcludesFile() + { + return null; + } + + @Override + public List getIncludes() + { + return null; + } + + @Override + public File getIncludesFile() + { + return null; + } + + @Override + protected String getPluginName() + { + return null; + } + + @Override + protected int getRerunFailingTestsCount() + { + return 0; + } + + @Override + public String getRunOrder() + { + return null; + } + + @Override + public File[] getSuiteXmlFiles() + { + return null; + } + + @Override + protected void handleSummary( RunResult arg0, Exception arg1 ) + { + } + + @Override + protected boolean hasSuiteXmlFiles() + { + return false; + } + + @Override + protected boolean isSkipExecution() + { + return false; + } + + @Override + public void setIncludes( List arg0 ) + { + } + + @Override + public void setRunOrder( String arg0 ) + { + } + + @Override + public void setSuiteXmlFiles( File[] arg0 ) + { + } + + @Override + protected List suiteXmlFiles() + { + return null; + } } \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy index d5f6874..5105ea1 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy +++ b/maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy @@ -1,26 +1,26 @@ -/* - * 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. - */ - -File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); -assert descriptorFile.isFile() - -def pluginDescriptor = new XmlParser().parse( descriptorFile ); - -assert pluginDescriptor.mojos.mojo.size() == 1 -assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50 - -return true; +/* + * 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. + */ + +File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); +assert descriptorFile.isFile() + +def pluginDescriptor = new XmlParser().parse( descriptorFile ); + +assert pluginDescriptor.mojos.mojo.size() == 1 +assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50 + +return true; diff --git a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/invoker.properties b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/invoker.properties index 1b464c5..2ae6868 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/invoker.properties @@ -1,18 +1,18 @@ -# 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. - +# 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. + invoker.goals.1 = clean process-classes \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/pom.xml b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/pom.xml index 3dc28ca..f5c309c 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/pom.xml +++ b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/pom.xml @@ -1,85 +1,85 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins.plugin.its - mplugin305 - 1.0-SNAPSHOT - maven-plugin - - https://issues.apache.org/jira/browse/MPLUGIN-305 - - - @project.version@ - UTF-8 - - - - - org.apache.maven - maven-plugin-api - 2.2.1 - - - org.apache.maven.plugin-tools - maven-plugin-annotations - ${mavenPluginPluginVersion} - provided - - - org.apache.maven.surefire - maven-surefire-common - 2.19.1 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.4 - - - org.apache.maven.plugins - maven-plugin-plugin - ${mavenPluginPluginVersion} - - - java-annotations - - true - - - - mojo-descriptor - - descriptor - - - - - - - - - - + + + + + + 4.0.0 + + org.apache.maven.plugins.plugin.its + mplugin305 + 1.0-SNAPSHOT + maven-plugin + + https://issues.apache.org/jira/browse/MPLUGIN-305 + + + @project.version@ + UTF-8 + + + + + org.apache.maven + maven-plugin-api + 2.2.1 + + + org.apache.maven.plugin-tools + maven-plugin-annotations + ${mavenPluginPluginVersion} + provided + + + org.apache.maven.surefire + maven-surefire-common + 2.19.1 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.4 + + + org.apache.maven.plugins + maven-plugin-plugin + ${mavenPluginPluginVersion} + + + java-annotations + + true + + + + mojo-descriptor + + descriptor + + + + + + + + + + diff --git a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java index 838faea..89a197b 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java +++ b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java @@ -1,289 +1,289 @@ -package org.apache.maven.plugins.plugin.it; - -/* - * 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 java.io.File; -import java.util.List; - -import org.apache.maven.plugin.surefire.AbstractSurefireMojo; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.surefire.suite.RunResult; - -@Mojo(name="custom-surefire") -public class CustomSurefireMojo extends AbstractSurefireMojo { - - public File getBasedir() - { - return null; - } - - public File getClassesDirectory() - { - return null; - } - - public String getDebugForkedProcess() - { - return null; - } - - public Boolean getFailIfNoSpecifiedTests() - { - return null; - } - - public int getForkedProcessTimeoutInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutForcedInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutInSeconds() - { - return 0; - } - - public String getReportFormat() - { - return null; - } - - public File getReportsDirectory() - { - return null; - } - - public String getShutdown() - { - return null; - } - - public int getSkipAfterFailureCount() - { - return 0; - } - - public String getTest() - { - return null; - } - - public File getTestClassesDirectory() - { - return null; - } - - public boolean isPrintSummary() - { - return false; - } - - public boolean isSkip() - { - return false; - } - - public boolean isSkipExec() - { - return false; - } - - public boolean isSkipTests() - { - return false; - } - - public boolean isUseFile() - { - return false; - } - - public boolean isUseManifestOnlyJar() - { - return false; - } - - public boolean isUseSystemClassLoader() - { - return false; - } - - public void setBasedir( File arg0 ) - { - } - - public void setClassesDirectory( File arg0 ) - { - } - - public void setDebugForkedProcess( String arg0 ) - { - } - - public void setFailIfNoSpecifiedTests( boolean arg0 ) - { - } - - public void setForkedProcessTimeoutInSeconds( int arg0 ) - { - } - - public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) - { - } - - public void setParallelTestsTimeoutInSeconds( double arg0 ) - { - } - - public void setPrintSummary( boolean arg0 ) - { - } - - public void setReportFormat( String arg0 ) - { - } - - public void setReportsDirectory( File arg0 ) - { - } - - public void setSkip( boolean arg0 ) - { - } - - public void setSkipExec( boolean arg0 ) - { - } - - public void setSkipTests( boolean arg0 ) - { - } - - public void setTest( String arg0 ) - { - } - - public void setTestClassesDirectory( File arg0 ) - { - } - - public void setUseFile( boolean arg0 ) - { - } - - public void setUseManifestOnlyJar( boolean arg0 ) - { - } - - public void setUseSystemClassLoader( boolean arg0 ) - { - } - - @Override - protected String[] getDefaultIncludes() - { - return null; - } - - @Override - public File getExcludesFile() - { - return null; - } - - @Override - public List getIncludes() - { - return null; - } - - @Override - public File getIncludesFile() - { - return null; - } - - @Override - protected String getPluginName() - { - return null; - } - - @Override - protected int getRerunFailingTestsCount() - { - return 0; - } - - @Override - public String getRunOrder() - { - return null; - } - - @Override - public File[] getSuiteXmlFiles() - { - return null; - } - - @Override - protected void handleSummary( RunResult arg0, Exception arg1 ) - { - } - - @Override - protected boolean hasSuiteXmlFiles() - { - return false; - } - - @Override - protected boolean isSkipExecution() - { - return false; - } - - @Override - public void setIncludes( List arg0 ) - { - } - - @Override - public void setRunOrder( String arg0 ) - { - } - - @Override - public void setSuiteXmlFiles( File[] arg0 ) - { - } - - @Override - protected List suiteXmlFiles() - { - return null; - } +package org.apache.maven.plugins.plugin.it; + +/* + * 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 java.io.File; +import java.util.List; + +import org.apache.maven.plugin.surefire.AbstractSurefireMojo; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.surefire.suite.RunResult; + +@Mojo(name="custom-surefire") +public class CustomSurefireMojo extends AbstractSurefireMojo { + + public File getBasedir() + { + return null; + } + + public File getClassesDirectory() + { + return null; + } + + public String getDebugForkedProcess() + { + return null; + } + + public Boolean getFailIfNoSpecifiedTests() + { + return null; + } + + public int getForkedProcessTimeoutInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutForcedInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutInSeconds() + { + return 0; + } + + public String getReportFormat() + { + return null; + } + + public File getReportsDirectory() + { + return null; + } + + public String getShutdown() + { + return null; + } + + public int getSkipAfterFailureCount() + { + return 0; + } + + public String getTest() + { + return null; + } + + public File getTestClassesDirectory() + { + return null; + } + + public boolean isPrintSummary() + { + return false; + } + + public boolean isSkip() + { + return false; + } + + public boolean isSkipExec() + { + return false; + } + + public boolean isSkipTests() + { + return false; + } + + public boolean isUseFile() + { + return false; + } + + public boolean isUseManifestOnlyJar() + { + return false; + } + + public boolean isUseSystemClassLoader() + { + return false; + } + + public void setBasedir( File arg0 ) + { + } + + public void setClassesDirectory( File arg0 ) + { + } + + public void setDebugForkedProcess( String arg0 ) + { + } + + public void setFailIfNoSpecifiedTests( boolean arg0 ) + { + } + + public void setForkedProcessTimeoutInSeconds( int arg0 ) + { + } + + public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) + { + } + + public void setParallelTestsTimeoutInSeconds( double arg0 ) + { + } + + public void setPrintSummary( boolean arg0 ) + { + } + + public void setReportFormat( String arg0 ) + { + } + + public void setReportsDirectory( File arg0 ) + { + } + + public void setSkip( boolean arg0 ) + { + } + + public void setSkipExec( boolean arg0 ) + { + } + + public void setSkipTests( boolean arg0 ) + { + } + + public void setTest( String arg0 ) + { + } + + public void setTestClassesDirectory( File arg0 ) + { + } + + public void setUseFile( boolean arg0 ) + { + } + + public void setUseManifestOnlyJar( boolean arg0 ) + { + } + + public void setUseSystemClassLoader( boolean arg0 ) + { + } + + @Override + protected String[] getDefaultIncludes() + { + return null; + } + + @Override + public File getExcludesFile() + { + return null; + } + + @Override + public List getIncludes() + { + return null; + } + + @Override + public File getIncludesFile() + { + return null; + } + + @Override + protected String getPluginName() + { + return null; + } + + @Override + protected int getRerunFailingTestsCount() + { + return 0; + } + + @Override + public String getRunOrder() + { + return null; + } + + @Override + public File[] getSuiteXmlFiles() + { + return null; + } + + @Override + protected void handleSummary( RunResult arg0, Exception arg1 ) + { + } + + @Override + protected boolean hasSuiteXmlFiles() + { + return false; + } + + @Override + protected boolean isSkipExecution() + { + return false; + } + + @Override + public void setIncludes( List arg0 ) + { + } + + @Override + public void setRunOrder( String arg0 ) + { + } + + @Override + public void setSuiteXmlFiles( File[] arg0 ) + { + } + + @Override + protected List suiteXmlFiles() + { + return null; + } } \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy index f020e46..1e86292 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy +++ b/maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy @@ -1,26 +1,26 @@ -/* - * 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. - */ - -File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); -assert descriptorFile.isFile() - -def pluginDescriptor = new XmlParser().parse( descriptorFile ); - -assert pluginDescriptor.mojos.mojo.size() == 1 -assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0 - -return true; +/* + * 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. + */ + +File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); +assert descriptorFile.isFile() + +def pluginDescriptor = new XmlParser().parse( descriptorFile ); + +assert pluginDescriptor.mojos.mojo.size() == 1 +assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0 + +return true; diff --git a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/invoker.properties b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/invoker.properties index 1b464c5..2ae6868 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/invoker.properties +++ b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/invoker.properties @@ -1,18 +1,18 @@ -# 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. - +# 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. + invoker.goals.1 = clean process-classes \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/pom.xml b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/pom.xml index 600dcc7..db8fd5a 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/pom.xml +++ b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/pom.xml @@ -1,85 +1,85 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins.plugin.its - mplugin305 - 1.0-SNAPSHOT - maven-plugin - - https://issues.apache.org/jira/browse/MPLUGIN-305 - - - @project.version@ - UTF-8 - - - - - org.apache.maven - maven-plugin-api - 2.2.1 - - - org.apache.maven.plugin-tools - maven-plugin-annotations - ${mavenPluginPluginVersion} - provided - - - org.apache.maven.surefire - maven-surefire-common - 2.19.1 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.4 - - - org.apache.maven.plugins - maven-plugin-plugin - ${mavenPluginPluginVersion} - - - java-annotations - - true - - org.apache.maven.surefire:maven-surefire-common - - - - - mojo-descriptor - - descriptor - - - - - - - + + + + + + 4.0.0 + + org.apache.maven.plugins.plugin.its + mplugin305 + 1.0-SNAPSHOT + maven-plugin + + https://issues.apache.org/jira/browse/MPLUGIN-305 + + + @project.version@ + UTF-8 + + + + + org.apache.maven + maven-plugin-api + 2.2.1 + + + org.apache.maven.plugin-tools + maven-plugin-annotations + ${mavenPluginPluginVersion} + provided + + + org.apache.maven.surefire + maven-surefire-common + 2.19.1 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.4 + + + org.apache.maven.plugins + maven-plugin-plugin + ${mavenPluginPluginVersion} + + + java-annotations + + true + + org.apache.maven.surefire:maven-surefire-common + + + + + mojo-descriptor + + descriptor + + + + + + + diff --git a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java index 838faea..89a197b 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java +++ b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/src/main/java/org/apache/maven/plugins/plugin/it/CustomSurefireMojo.java @@ -1,289 +1,289 @@ -package org.apache.maven.plugins.plugin.it; - -/* - * 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 java.io.File; -import java.util.List; - -import org.apache.maven.plugin.surefire.AbstractSurefireMojo; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.surefire.suite.RunResult; - -@Mojo(name="custom-surefire") -public class CustomSurefireMojo extends AbstractSurefireMojo { - - public File getBasedir() - { - return null; - } - - public File getClassesDirectory() - { - return null; - } - - public String getDebugForkedProcess() - { - return null; - } - - public Boolean getFailIfNoSpecifiedTests() - { - return null; - } - - public int getForkedProcessTimeoutInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutForcedInSeconds() - { - return 0; - } - - public double getParallelTestsTimeoutInSeconds() - { - return 0; - } - - public String getReportFormat() - { - return null; - } - - public File getReportsDirectory() - { - return null; - } - - public String getShutdown() - { - return null; - } - - public int getSkipAfterFailureCount() - { - return 0; - } - - public String getTest() - { - return null; - } - - public File getTestClassesDirectory() - { - return null; - } - - public boolean isPrintSummary() - { - return false; - } - - public boolean isSkip() - { - return false; - } - - public boolean isSkipExec() - { - return false; - } - - public boolean isSkipTests() - { - return false; - } - - public boolean isUseFile() - { - return false; - } - - public boolean isUseManifestOnlyJar() - { - return false; - } - - public boolean isUseSystemClassLoader() - { - return false; - } - - public void setBasedir( File arg0 ) - { - } - - public void setClassesDirectory( File arg0 ) - { - } - - public void setDebugForkedProcess( String arg0 ) - { - } - - public void setFailIfNoSpecifiedTests( boolean arg0 ) - { - } - - public void setForkedProcessTimeoutInSeconds( int arg0 ) - { - } - - public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) - { - } - - public void setParallelTestsTimeoutInSeconds( double arg0 ) - { - } - - public void setPrintSummary( boolean arg0 ) - { - } - - public void setReportFormat( String arg0 ) - { - } - - public void setReportsDirectory( File arg0 ) - { - } - - public void setSkip( boolean arg0 ) - { - } - - public void setSkipExec( boolean arg0 ) - { - } - - public void setSkipTests( boolean arg0 ) - { - } - - public void setTest( String arg0 ) - { - } - - public void setTestClassesDirectory( File arg0 ) - { - } - - public void setUseFile( boolean arg0 ) - { - } - - public void setUseManifestOnlyJar( boolean arg0 ) - { - } - - public void setUseSystemClassLoader( boolean arg0 ) - { - } - - @Override - protected String[] getDefaultIncludes() - { - return null; - } - - @Override - public File getExcludesFile() - { - return null; - } - - @Override - public List getIncludes() - { - return null; - } - - @Override - public File getIncludesFile() - { - return null; - } - - @Override - protected String getPluginName() - { - return null; - } - - @Override - protected int getRerunFailingTestsCount() - { - return 0; - } - - @Override - public String getRunOrder() - { - return null; - } - - @Override - public File[] getSuiteXmlFiles() - { - return null; - } - - @Override - protected void handleSummary( RunResult arg0, Exception arg1 ) - { - } - - @Override - protected boolean hasSuiteXmlFiles() - { - return false; - } - - @Override - protected boolean isSkipExecution() - { - return false; - } - - @Override - public void setIncludes( List arg0 ) - { - } - - @Override - public void setRunOrder( String arg0 ) - { - } - - @Override - public void setSuiteXmlFiles( File[] arg0 ) - { - } - - @Override - protected List suiteXmlFiles() - { - return null; - } +package org.apache.maven.plugins.plugin.it; + +/* + * 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 java.io.File; +import java.util.List; + +import org.apache.maven.plugin.surefire.AbstractSurefireMojo; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.surefire.suite.RunResult; + +@Mojo(name="custom-surefire") +public class CustomSurefireMojo extends AbstractSurefireMojo { + + public File getBasedir() + { + return null; + } + + public File getClassesDirectory() + { + return null; + } + + public String getDebugForkedProcess() + { + return null; + } + + public Boolean getFailIfNoSpecifiedTests() + { + return null; + } + + public int getForkedProcessTimeoutInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutForcedInSeconds() + { + return 0; + } + + public double getParallelTestsTimeoutInSeconds() + { + return 0; + } + + public String getReportFormat() + { + return null; + } + + public File getReportsDirectory() + { + return null; + } + + public String getShutdown() + { + return null; + } + + public int getSkipAfterFailureCount() + { + return 0; + } + + public String getTest() + { + return null; + } + + public File getTestClassesDirectory() + { + return null; + } + + public boolean isPrintSummary() + { + return false; + } + + public boolean isSkip() + { + return false; + } + + public boolean isSkipExec() + { + return false; + } + + public boolean isSkipTests() + { + return false; + } + + public boolean isUseFile() + { + return false; + } + + public boolean isUseManifestOnlyJar() + { + return false; + } + + public boolean isUseSystemClassLoader() + { + return false; + } + + public void setBasedir( File arg0 ) + { + } + + public void setClassesDirectory( File arg0 ) + { + } + + public void setDebugForkedProcess( String arg0 ) + { + } + + public void setFailIfNoSpecifiedTests( boolean arg0 ) + { + } + + public void setForkedProcessTimeoutInSeconds( int arg0 ) + { + } + + public void setParallelTestsTimeoutForcedInSeconds( double arg0 ) + { + } + + public void setParallelTestsTimeoutInSeconds( double arg0 ) + { + } + + public void setPrintSummary( boolean arg0 ) + { + } + + public void setReportFormat( String arg0 ) + { + } + + public void setReportsDirectory( File arg0 ) + { + } + + public void setSkip( boolean arg0 ) + { + } + + public void setSkipExec( boolean arg0 ) + { + } + + public void setSkipTests( boolean arg0 ) + { + } + + public void setTest( String arg0 ) + { + } + + public void setTestClassesDirectory( File arg0 ) + { + } + + public void setUseFile( boolean arg0 ) + { + } + + public void setUseManifestOnlyJar( boolean arg0 ) + { + } + + public void setUseSystemClassLoader( boolean arg0 ) + { + } + + @Override + protected String[] getDefaultIncludes() + { + return null; + } + + @Override + public File getExcludesFile() + { + return null; + } + + @Override + public List getIncludes() + { + return null; + } + + @Override + public File getIncludesFile() + { + return null; + } + + @Override + protected String getPluginName() + { + return null; + } + + @Override + protected int getRerunFailingTestsCount() + { + return 0; + } + + @Override + public String getRunOrder() + { + return null; + } + + @Override + public File[] getSuiteXmlFiles() + { + return null; + } + + @Override + protected void handleSummary( RunResult arg0, Exception arg1 ) + { + } + + @Override + protected boolean hasSuiteXmlFiles() + { + return false; + } + + @Override + protected boolean isSkipExecution() + { + return false; + } + + @Override + public void setIncludes( List arg0 ) + { + } + + @Override + public void setRunOrder( String arg0 ) + { + } + + @Override + public void setSuiteXmlFiles( File[] arg0 ) + { + } + + @Override + protected List suiteXmlFiles() + { + return null; + } } \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy index d5f6874..5105ea1 100644 --- a/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy +++ b/maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy @@ -1,26 +1,26 @@ -/* - * 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. - */ - -File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); -assert descriptorFile.isFile() - -def pluginDescriptor = new XmlParser().parse( descriptorFile ); - -assert pluginDescriptor.mojos.mojo.size() == 1 -assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50 - -return true; +/* + * 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. + */ + +File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); +assert descriptorFile.isFile() + +def pluginDescriptor = new XmlParser().parse( descriptorFile ); + +assert pluginDescriptor.mojos.mojo.size() == 1 +assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50 + +return true; diff --git a/maven-plugin-plugin/src/it/plugin-info-jdk/pluginManagement/src/main/resources/META-INF/maven/plugin.xml b/maven-plugin-plugin/src/it/plugin-info-jdk/pluginManagement/src/main/resources/META-INF/maven/plugin.xml index 1ca3b06..6a49de7 100644 --- a/maven-plugin-plugin/src/it/plugin-info-jdk/pluginManagement/src/main/resources/META-INF/maven/plugin.xml +++ b/maven-plugin-plugin/src/it/plugin-info-jdk/pluginManagement/src/main/resources/META-INF/maven/plugin.xml @@ -1,69 +1,69 @@ - - - - - - target bytecode defined by pluginManagement configuration - - org.apache.maven.its.plugin-info-jdk - pluginManagement - 1.0-SNAPSHOT - Management - false - true - - - touch - Goal which touches a timestamp file. - false - true - false - false - false - true - process-sources - org.apache.maven.plugins.issues.plugin.MyMojo - java - per-lookup - once-per-session - false - - - outputDirectory - java.io.File - true - true - Location of the file. - - - - ${project.build.directory} - - - - - - org.apache.maven - maven-plugin-api - jar - 2.0 - - + + + + + + target bytecode defined by pluginManagement configuration + + org.apache.maven.its.plugin-info-jdk + pluginManagement + 1.0-SNAPSHOT + Management + false + true + + + touch + Goal which touches a timestamp file. + false + true + false + false + false + true + process-sources + org.apache.maven.plugins.issues.plugin.MyMojo + java + per-lookup + once-per-session + false + + + outputDirectory + java.io.File + true + true + Location of the file. + + + + ${project.build.directory} + + + + + + org.apache.maven + maven-plugin-api + jar + 2.0 + + \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/plugin-info-jdk/property/src/main/resources/META-INF/maven/plugin.xml b/maven-plugin-plugin/src/it/plugin-info-jdk/property/src/main/resources/META-INF/maven/plugin.xml index bb4aaa6..29305e5 100644 --- a/maven-plugin-plugin/src/it/plugin-info-jdk/property/src/main/resources/META-INF/maven/plugin.xml +++ b/maven-plugin-plugin/src/it/plugin-info-jdk/property/src/main/resources/META-INF/maven/plugin.xml @@ -1,69 +1,69 @@ - - - - - - target bytecode defined by maven.compiler.target property - - org.apache.maven.its.plugin-info-jdk - property - 1.0-SNAPSHOT - property - false - true - - - touch - Goal which touches a timestamp file. - false - true - false - false - false - true - process-sources - org.apache.maven.plugins.issues.plugin.MyMojo - java - per-lookup - once-per-session - false - - - outputDirectory - java.io.File - true - true - Location of the file. - - - - ${project.build.directory} - - - - - - org.apache.maven - maven-plugin-api - jar - 2.0 - - + + + + + + target bytecode defined by maven.compiler.target property + + org.apache.maven.its.plugin-info-jdk + property + 1.0-SNAPSHOT + property + false + true + + + touch + Goal which touches a timestamp file. + false + true + false + false + false + true + process-sources + org.apache.maven.plugins.issues.plugin.MyMojo + java + per-lookup + once-per-session + false + + + outputDirectory + java.io.File + true + true + Location of the file. + + + + ${project.build.directory} + + + + + + org.apache.maven + maven-plugin-api + jar + 2.0 + + \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/plugin-info-jdk/requirement/src/main/resources/META-INF/maven/plugin.xml b/maven-plugin-plugin/src/it/plugin-info-jdk/requirement/src/main/resources/META-INF/maven/plugin.xml index 91a517a..0c19b02 100644 --- a/maven-plugin-plugin/src/it/plugin-info-jdk/requirement/src/main/resources/META-INF/maven/plugin.xml +++ b/maven-plugin-plugin/src/it/plugin-info-jdk/requirement/src/main/resources/META-INF/maven/plugin.xml @@ -1,69 +1,69 @@ - - - - - - target bytecode defined by report jdk requirement configuration - - org.apache.maven.its.plugin-info-jdk - requirement - 1.0-SNAPSHOT - requirement - false - true - - - touch - Goal which touches a timestamp file. - false - true - false - false - false - true - process-sources - org.apache.maven.plugins.issues.plugin.MyMojo - java - per-lookup - once-per-session - false - - - outputDirectory - java.io.File - true - true - Location of the file. - - - - ${project.build.directory} - - - - - - org.apache.maven - maven-plugin-api - jar - 2.0 - - + + + + + + target bytecode defined by report jdk requirement configuration + + org.apache.maven.its.plugin-info-jdk + requirement + 1.0-SNAPSHOT + requirement + false + true + + + touch + Goal which touches a timestamp file. + false + true + false + false + false + true + process-sources + org.apache.maven.plugins.issues.plugin.MyMojo + java + per-lookup + once-per-session + false + + + outputDirectory + java.io.File + true + true + Location of the file. + + + + ${project.build.directory} + + + + + + org.apache.maven + maven-plugin-api + jar + 2.0 + + \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/plugin-info-jdk/test.properties b/maven-plugin-plugin/src/it/plugin-info-jdk/test.properties index ba4a6b0..3db902b 100644 --- a/maven-plugin-plugin/src/it/plugin-info-jdk/test.properties +++ b/maven-plugin-plugin/src/it/plugin-info-jdk/test.properties @@ -1,18 +1,18 @@ -# 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. -maven.compiler.source=1.3 +# 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. +maven.compiler.source=1.3 maven.compiler.target=1.3 \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/skip/invoker.properties b/maven-plugin-plugin/src/it/skip/invoker.properties index b3f810e..8e51f71 100644 --- a/maven-plugin-plugin/src/it/skip/invoker.properties +++ b/maven-plugin-plugin/src/it/skip/invoker.properties @@ -1,19 +1,19 @@ -# 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. - -invoker.goals = install -DskipTests +# 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. + +invoker.goals = install -DskipTests invoker.mavenOpts = -Dmaven.plugin.skip=true \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/skip/verify.groovy b/maven-plugin-plugin/src/it/skip/verify.groovy index b3ad179..e386564 100644 --- a/maven-plugin-plugin/src/it/skip/verify.groovy +++ b/maven-plugin-plugin/src/it/skip/verify.groovy @@ -1,23 +1,23 @@ -/* - * 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. - */ - -File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); -assert !descriptorFile.isFile() - -return true; +/* + * 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. + */ + +File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); +assert !descriptorFile.isFile() + +return true;