Ensure native EOL
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756059 13f79535-47bb-0310-9956-ffa450edef68master
parent
ec99a5982d
commit
629dd38f3d
|
|
@ -1,47 +1,47 @@
|
||||||
package org.apache.maven.plugin.coreit;
|
package org.apache.maven.plugin.coreit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.plugins.annotations.Parameter;
|
import org.apache.maven.plugins.annotations.Parameter;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Could not use regex in @Parameter(defaultValue)
|
* Could not use regex in @Parameter(defaultValue)
|
||||||
*/
|
*/
|
||||||
@Mojo( name = "mplugin-220" )
|
@Mojo( name = "mplugin-220" )
|
||||||
public class MPlugin220Mojo
|
public class MPlugin220Mojo
|
||||||
extends AbstractMojo
|
extends AbstractMojo
|
||||||
{
|
{
|
||||||
|
|
||||||
@Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" )
|
@Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" )
|
||||||
private String regex;
|
private String regex;
|
||||||
|
|
||||||
public void execute()
|
public void execute()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
{
|
{
|
||||||
getLog().info( "regex = " + regex );
|
getLog().info( "regex = " + regex );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals = clean plugin:report -DskipTests
|
invoker.goals = clean plugin:report -DskipTests
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,45 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
||||||
<artifactId>mplugin-187</artifactId>
|
<artifactId>mplugin-187</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<description>Verify that plugin:report succeeds</description>
|
<description>Verify that plugin:report succeeds</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
<version>@project.version@</version>
|
<version>@project.version@</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals = clean compile plugin:report
|
invoker.goals = clean compile plugin:report
|
||||||
|
|
|
||||||
|
|
@ -1,81 +1,81 @@
|
||||||
package org.apache.maven.plugins.plugin.it;
|
package org.apache.maven.plugins.plugin.it;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.plugins.annotations.Parameter;
|
import org.apache.maven.plugins.annotations.Parameter;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Goal which touches a timestamp file.
|
* Goal which touches a timestamp file.
|
||||||
*/
|
*/
|
||||||
@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
|
@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
|
||||||
public class MyMojo
|
public class MyMojo
|
||||||
extends AbstractMojo
|
extends AbstractMojo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Location of the file.
|
* Location of the file.
|
||||||
*/
|
*/
|
||||||
@Parameter(defaultValue = "${project.build.directory}", required = true)
|
@Parameter(defaultValue = "${project.build.directory}", required = true)
|
||||||
private File outputDirectory;
|
private File outputDirectory;
|
||||||
|
|
||||||
public void execute()
|
public void execute()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
{
|
{
|
||||||
File f = outputDirectory;
|
File f = outputDirectory;
|
||||||
|
|
||||||
if ( !f.exists() )
|
if ( !f.exists() )
|
||||||
{
|
{
|
||||||
f.mkdirs();
|
f.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
File touch = new File( f, "touch.txt" );
|
File touch = new File( f, "touch.txt" );
|
||||||
|
|
||||||
FileWriter w = null;
|
FileWriter w = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
w = new FileWriter( touch );
|
w = new FileWriter( touch );
|
||||||
|
|
||||||
w.write( "touch.txt" );
|
w.write( "touch.txt" );
|
||||||
}
|
}
|
||||||
catch ( IOException e )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
throw new MojoExecutionException( "Error creating file " + touch, e );
|
throw new MojoExecutionException( "Error creating file " + touch, e );
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
if ( w != null )
|
if ( w != null )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
w.close();
|
w.close();
|
||||||
}
|
}
|
||||||
catch ( IOException e )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
File pluginInfo = new File( basedir, "target/site/plugin-info.html" );
|
File pluginInfo = new File( basedir, "target/site/plugin-info.html" );
|
||||||
assert pluginInfo.isFile()
|
assert pluginInfo.isFile()
|
||||||
|
|
||||||
File touchMojo = new File( basedir, "target/generated-site/xdoc/touch-mojo.xml" );
|
File touchMojo = new File( basedir, "target/generated-site/xdoc/touch-mojo.xml" );
|
||||||
assert touchMojo.isFile()
|
assert touchMojo.isFile()
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.java.version = 1.8+
|
invoker.java.version = 1.8+
|
||||||
invoker.goals.1 = clean verify
|
invoker.goals.1 = clean verify
|
||||||
|
|
@ -1,37 +1,37 @@
|
||||||
package fr.ca;
|
package fr.ca;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
import org.apache.maven.plugin.MojoFailureException;
|
import org.apache.maven.plugin.MojoFailureException;
|
||||||
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by clement.agarini on 04/08/14.
|
* Created by clement.agarini on 04/08/14.
|
||||||
*/
|
*/
|
||||||
@Mojo(name="test-plugin",defaultPhase = LifecyclePhase.GENERATE_SOURCES)
|
@Mojo(name="test-plugin",defaultPhase = LifecyclePhase.GENERATE_SOURCES)
|
||||||
public class MyMojo extends AbstractMojo {
|
public class MyMojo extends AbstractMojo {
|
||||||
@Override
|
@Override
|
||||||
public void execute() throws MojoExecutionException, MojoFailureException {
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,27 @@
|
||||||
package fr.ca;
|
package fr.ca;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public interface TestInterface {
|
public interface TestInterface {
|
||||||
|
|
||||||
public default void foo(){
|
public default void foo(){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals.1 = clean process-classes
|
invoker.goals.1 = clean process-classes
|
||||||
|
|
@ -1,82 +1,82 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
this work for additional information regarding copyright ownership.
|
this work for additional information regarding copyright ownership.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
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 not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
||||||
<artifactId>mplugin305</artifactId>
|
<artifactId>mplugin305</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>2.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-annotations</artifactId>
|
<artifactId>maven-plugin-annotations</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.surefire</groupId>
|
<groupId>org.apache.maven.surefire</groupId>
|
||||||
<artifactId>maven-surefire-common</artifactId>
|
<artifactId>maven-surefire-common</artifactId>
|
||||||
<version>2.19.1</version>
|
<version>2.19.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<extractors>
|
<extractors>
|
||||||
<extractor>java-annotations</extractor>
|
<extractor>java-annotations</extractor>
|
||||||
</extractors>
|
</extractors>
|
||||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>mojo-descriptor</id>
|
<id>mojo-descriptor</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>descriptor</goal>
|
<goal>descriptor</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -1,289 +1,289 @@
|
||||||
package org.apache.maven.plugins.plugin.it;
|
package org.apache.maven.plugins.plugin.it;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.surefire.suite.RunResult;
|
import org.apache.maven.surefire.suite.RunResult;
|
||||||
|
|
||||||
@Mojo(name="custom-surefire")
|
@Mojo(name="custom-surefire")
|
||||||
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
||||||
|
|
||||||
public File getBasedir()
|
public File getBasedir()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getClassesDirectory()
|
public File getClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDebugForkedProcess()
|
public String getDebugForkedProcess()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getFailIfNoSpecifiedTests()
|
public Boolean getFailIfNoSpecifiedTests()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getForkedProcessTimeoutInSeconds()
|
public int getForkedProcessTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutForcedInSeconds()
|
public double getParallelTestsTimeoutForcedInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutInSeconds()
|
public double getParallelTestsTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReportFormat()
|
public String getReportFormat()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getReportsDirectory()
|
public File getReportsDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getShutdown()
|
public String getShutdown()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSkipAfterFailureCount()
|
public int getSkipAfterFailureCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTest()
|
public String getTest()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getTestClassesDirectory()
|
public File getTestClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPrintSummary()
|
public boolean isPrintSummary()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkip()
|
public boolean isSkip()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipExec()
|
public boolean isSkipExec()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipTests()
|
public boolean isSkipTests()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseFile()
|
public boolean isUseFile()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseManifestOnlyJar()
|
public boolean isUseManifestOnlyJar()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseSystemClassLoader()
|
public boolean isUseSystemClassLoader()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBasedir( File arg0 )
|
public void setBasedir( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClassesDirectory( File arg0 )
|
public void setClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDebugForkedProcess( String arg0 )
|
public void setDebugForkedProcess( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrintSummary( boolean arg0 )
|
public void setPrintSummary( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportFormat( String arg0 )
|
public void setReportFormat( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportsDirectory( File arg0 )
|
public void setReportsDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkip( boolean arg0 )
|
public void setSkip( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipExec( boolean arg0 )
|
public void setSkipExec( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipTests( boolean arg0 )
|
public void setSkipTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTest( String arg0 )
|
public void setTest( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTestClassesDirectory( File arg0 )
|
public void setTestClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseFile( boolean arg0 )
|
public void setUseFile( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseManifestOnlyJar( boolean arg0 )
|
public void setUseManifestOnlyJar( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseSystemClassLoader( boolean arg0 )
|
public void setUseSystemClassLoader( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String[] getDefaultIncludes()
|
protected String[] getDefaultIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getExcludesFile()
|
public File getExcludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getIncludes()
|
public List<String> getIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getIncludesFile()
|
public File getIncludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getPluginName()
|
protected String getPluginName()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getRerunFailingTestsCount()
|
protected int getRerunFailingTestsCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRunOrder()
|
public String getRunOrder()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File[] getSuiteXmlFiles()
|
public File[] getSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleSummary( RunResult arg0, Exception arg1 )
|
protected void handleSummary( RunResult arg0, Exception arg1 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasSuiteXmlFiles()
|
protected boolean hasSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean isSkipExecution()
|
protected boolean isSkipExecution()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setIncludes( List<String> arg0 )
|
public void setIncludes( List<String> arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRunOrder( String arg0 )
|
public void setRunOrder( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSuiteXmlFiles( File[] arg0 )
|
public void setSuiteXmlFiles( File[] arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<File> suiteXmlFiles()
|
protected List<File> suiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
||||||
assert descriptorFile.isFile()
|
assert descriptorFile.isFile()
|
||||||
|
|
||||||
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
||||||
|
|
||||||
assert pluginDescriptor.mojos.mojo.size() == 1
|
assert pluginDescriptor.mojos.mojo.size() == 1
|
||||||
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
|
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals.1 = clean process-classes
|
invoker.goals.1 = clean process-classes
|
||||||
|
|
@ -1,85 +1,85 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
this work for additional information regarding copyright ownership.
|
this work for additional information regarding copyright ownership.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
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 not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
||||||
<artifactId>mplugin305</artifactId>
|
<artifactId>mplugin305</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>2.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-annotations</artifactId>
|
<artifactId>maven-plugin-annotations</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.surefire</groupId>
|
<groupId>org.apache.maven.surefire</groupId>
|
||||||
<artifactId>maven-surefire-common</artifactId>
|
<artifactId>maven-surefire-common</artifactId>
|
||||||
<version>2.19.1</version>
|
<version>2.19.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<extractors>
|
<extractors>
|
||||||
<extractor>java-annotations</extractor>
|
<extractor>java-annotations</extractor>
|
||||||
</extractors>
|
</extractors>
|
||||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>mojo-descriptor</id>
|
<id>mojo-descriptor</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>descriptor</goal>
|
<goal>descriptor</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<mojoDependencies/>
|
<mojoDependencies/>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -1,289 +1,289 @@
|
||||||
package org.apache.maven.plugins.plugin.it;
|
package org.apache.maven.plugins.plugin.it;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.surefire.suite.RunResult;
|
import org.apache.maven.surefire.suite.RunResult;
|
||||||
|
|
||||||
@Mojo(name="custom-surefire")
|
@Mojo(name="custom-surefire")
|
||||||
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
||||||
|
|
||||||
public File getBasedir()
|
public File getBasedir()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getClassesDirectory()
|
public File getClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDebugForkedProcess()
|
public String getDebugForkedProcess()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getFailIfNoSpecifiedTests()
|
public Boolean getFailIfNoSpecifiedTests()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getForkedProcessTimeoutInSeconds()
|
public int getForkedProcessTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutForcedInSeconds()
|
public double getParallelTestsTimeoutForcedInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutInSeconds()
|
public double getParallelTestsTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReportFormat()
|
public String getReportFormat()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getReportsDirectory()
|
public File getReportsDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getShutdown()
|
public String getShutdown()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSkipAfterFailureCount()
|
public int getSkipAfterFailureCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTest()
|
public String getTest()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getTestClassesDirectory()
|
public File getTestClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPrintSummary()
|
public boolean isPrintSummary()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkip()
|
public boolean isSkip()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipExec()
|
public boolean isSkipExec()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipTests()
|
public boolean isSkipTests()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseFile()
|
public boolean isUseFile()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseManifestOnlyJar()
|
public boolean isUseManifestOnlyJar()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseSystemClassLoader()
|
public boolean isUseSystemClassLoader()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBasedir( File arg0 )
|
public void setBasedir( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClassesDirectory( File arg0 )
|
public void setClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDebugForkedProcess( String arg0 )
|
public void setDebugForkedProcess( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrintSummary( boolean arg0 )
|
public void setPrintSummary( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportFormat( String arg0 )
|
public void setReportFormat( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportsDirectory( File arg0 )
|
public void setReportsDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkip( boolean arg0 )
|
public void setSkip( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipExec( boolean arg0 )
|
public void setSkipExec( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipTests( boolean arg0 )
|
public void setSkipTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTest( String arg0 )
|
public void setTest( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTestClassesDirectory( File arg0 )
|
public void setTestClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseFile( boolean arg0 )
|
public void setUseFile( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseManifestOnlyJar( boolean arg0 )
|
public void setUseManifestOnlyJar( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseSystemClassLoader( boolean arg0 )
|
public void setUseSystemClassLoader( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String[] getDefaultIncludes()
|
protected String[] getDefaultIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getExcludesFile()
|
public File getExcludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getIncludes()
|
public List<String> getIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getIncludesFile()
|
public File getIncludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getPluginName()
|
protected String getPluginName()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getRerunFailingTestsCount()
|
protected int getRerunFailingTestsCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRunOrder()
|
public String getRunOrder()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File[] getSuiteXmlFiles()
|
public File[] getSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleSummary( RunResult arg0, Exception arg1 )
|
protected void handleSummary( RunResult arg0, Exception arg1 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasSuiteXmlFiles()
|
protected boolean hasSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean isSkipExecution()
|
protected boolean isSkipExecution()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setIncludes( List<String> arg0 )
|
public void setIncludes( List<String> arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRunOrder( String arg0 )
|
public void setRunOrder( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSuiteXmlFiles( File[] arg0 )
|
public void setSuiteXmlFiles( File[] arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<File> suiteXmlFiles()
|
protected List<File> suiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
||||||
assert descriptorFile.isFile()
|
assert descriptorFile.isFile()
|
||||||
|
|
||||||
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
||||||
|
|
||||||
assert pluginDescriptor.mojos.mojo.size() == 1
|
assert pluginDescriptor.mojos.mojo.size() == 1
|
||||||
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0
|
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals.1 = clean process-classes
|
invoker.goals.1 = clean process-classes
|
||||||
|
|
@ -1,85 +1,85 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
this work for additional information regarding copyright ownership.
|
this work for additional information regarding copyright ownership.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
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 not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
<groupId>org.apache.maven.plugins.plugin.its</groupId>
|
||||||
<artifactId>mplugin305</artifactId>
|
<artifactId>mplugin305</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>2.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-annotations</artifactId>
|
<artifactId>maven-plugin-annotations</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.surefire</groupId>
|
<groupId>org.apache.maven.surefire</groupId>
|
||||||
<artifactId>maven-surefire-common</artifactId>
|
<artifactId>maven-surefire-common</artifactId>
|
||||||
<version>2.19.1</version>
|
<version>2.19.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
<version>${mavenPluginPluginVersion}</version>
|
<version>${mavenPluginPluginVersion}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<extractors>
|
<extractors>
|
||||||
<extractor>java-annotations</extractor>
|
<extractor>java-annotations</extractor>
|
||||||
</extractors>
|
</extractors>
|
||||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||||
<mojoDependencies>
|
<mojoDependencies>
|
||||||
<mojoDependency>org.apache.maven.surefire:maven-surefire-common</mojoDependency>
|
<mojoDependency>org.apache.maven.surefire:maven-surefire-common</mojoDependency>
|
||||||
</mojoDependencies>
|
</mojoDependencies>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>mojo-descriptor</id>
|
<id>mojo-descriptor</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>descriptor</goal>
|
<goal>descriptor</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -1,289 +1,289 @@
|
||||||
package org.apache.maven.plugins.plugin.it;
|
package org.apache.maven.plugins.plugin.it;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.surefire.suite.RunResult;
|
import org.apache.maven.surefire.suite.RunResult;
|
||||||
|
|
||||||
@Mojo(name="custom-surefire")
|
@Mojo(name="custom-surefire")
|
||||||
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
public class CustomSurefireMojo extends AbstractSurefireMojo {
|
||||||
|
|
||||||
public File getBasedir()
|
public File getBasedir()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getClassesDirectory()
|
public File getClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDebugForkedProcess()
|
public String getDebugForkedProcess()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getFailIfNoSpecifiedTests()
|
public Boolean getFailIfNoSpecifiedTests()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getForkedProcessTimeoutInSeconds()
|
public int getForkedProcessTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutForcedInSeconds()
|
public double getParallelTestsTimeoutForcedInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getParallelTestsTimeoutInSeconds()
|
public double getParallelTestsTimeoutInSeconds()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReportFormat()
|
public String getReportFormat()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getReportsDirectory()
|
public File getReportsDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getShutdown()
|
public String getShutdown()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSkipAfterFailureCount()
|
public int getSkipAfterFailureCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTest()
|
public String getTest()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getTestClassesDirectory()
|
public File getTestClassesDirectory()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPrintSummary()
|
public boolean isPrintSummary()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkip()
|
public boolean isSkip()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipExec()
|
public boolean isSkipExec()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSkipTests()
|
public boolean isSkipTests()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseFile()
|
public boolean isUseFile()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseManifestOnlyJar()
|
public boolean isUseManifestOnlyJar()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseSystemClassLoader()
|
public boolean isUseSystemClassLoader()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBasedir( File arg0 )
|
public void setBasedir( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClassesDirectory( File arg0 )
|
public void setClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDebugForkedProcess( String arg0 )
|
public void setDebugForkedProcess( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
public void setFailIfNoSpecifiedTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
public void setForkedProcessTimeoutInSeconds( int arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
public void setParallelTestsTimeoutInSeconds( double arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrintSummary( boolean arg0 )
|
public void setPrintSummary( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportFormat( String arg0 )
|
public void setReportFormat( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportsDirectory( File arg0 )
|
public void setReportsDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkip( boolean arg0 )
|
public void setSkip( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipExec( boolean arg0 )
|
public void setSkipExec( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSkipTests( boolean arg0 )
|
public void setSkipTests( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTest( String arg0 )
|
public void setTest( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTestClassesDirectory( File arg0 )
|
public void setTestClassesDirectory( File arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseFile( boolean arg0 )
|
public void setUseFile( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseManifestOnlyJar( boolean arg0 )
|
public void setUseManifestOnlyJar( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseSystemClassLoader( boolean arg0 )
|
public void setUseSystemClassLoader( boolean arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String[] getDefaultIncludes()
|
protected String[] getDefaultIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getExcludesFile()
|
public File getExcludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getIncludes()
|
public List<String> getIncludes()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getIncludesFile()
|
public File getIncludesFile()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getPluginName()
|
protected String getPluginName()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getRerunFailingTestsCount()
|
protected int getRerunFailingTestsCount()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRunOrder()
|
public String getRunOrder()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File[] getSuiteXmlFiles()
|
public File[] getSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleSummary( RunResult arg0, Exception arg1 )
|
protected void handleSummary( RunResult arg0, Exception arg1 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasSuiteXmlFiles()
|
protected boolean hasSuiteXmlFiles()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean isSkipExecution()
|
protected boolean isSkipExecution()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setIncludes( List<String> arg0 )
|
public void setIncludes( List<String> arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRunOrder( String arg0 )
|
public void setRunOrder( String arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSuiteXmlFiles( File[] arg0 )
|
public void setSuiteXmlFiles( File[] arg0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<File> suiteXmlFiles()
|
protected List<File> suiteXmlFiles()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
||||||
assert descriptorFile.isFile()
|
assert descriptorFile.isFile()
|
||||||
|
|
||||||
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
def pluginDescriptor = new XmlParser().parse( descriptorFile );
|
||||||
|
|
||||||
assert pluginDescriptor.mojos.mojo.size() == 1
|
assert pluginDescriptor.mojos.mojo.size() == 1
|
||||||
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
|
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,69 +1,69 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<name>target bytecode defined by pluginManagement configuration</name>
|
<name>target bytecode defined by pluginManagement configuration</name>
|
||||||
<description></description>
|
<description></description>
|
||||||
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
||||||
<artifactId>pluginManagement</artifactId>
|
<artifactId>pluginManagement</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<goalPrefix>Management</goalPrefix>
|
<goalPrefix>Management</goalPrefix>
|
||||||
<isolatedRealm>false</isolatedRealm>
|
<isolatedRealm>false</isolatedRealm>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<mojos>
|
<mojos>
|
||||||
<mojo>
|
<mojo>
|
||||||
<goal>touch</goal>
|
<goal>touch</goal>
|
||||||
<description>Goal which touches a timestamp file.</description>
|
<description>Goal which touches a timestamp file.</description>
|
||||||
<requiresDirectInvocation>false</requiresDirectInvocation>
|
<requiresDirectInvocation>false</requiresDirectInvocation>
|
||||||
<requiresProject>true</requiresProject>
|
<requiresProject>true</requiresProject>
|
||||||
<requiresReports>false</requiresReports>
|
<requiresReports>false</requiresReports>
|
||||||
<aggregator>false</aggregator>
|
<aggregator>false</aggregator>
|
||||||
<requiresOnline>false</requiresOnline>
|
<requiresOnline>false</requiresOnline>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<phase>process-sources</phase>
|
<phase>process-sources</phase>
|
||||||
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
||||||
<language>java</language>
|
<language>java</language>
|
||||||
<instantiationStrategy>per-lookup</instantiationStrategy>
|
<instantiationStrategy>per-lookup</instantiationStrategy>
|
||||||
<executionStrategy>once-per-session</executionStrategy>
|
<executionStrategy>once-per-session</executionStrategy>
|
||||||
<threadSafe>false</threadSafe>
|
<threadSafe>false</threadSafe>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter>
|
<parameter>
|
||||||
<name>outputDirectory</name>
|
<name>outputDirectory</name>
|
||||||
<type>java.io.File</type>
|
<type>java.io.File</type>
|
||||||
<required>true</required>
|
<required>true</required>
|
||||||
<editable>true</editable>
|
<editable>true</editable>
|
||||||
<description>Location of the file.</description>
|
<description>Location of the file.</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</mojo>
|
</mojo>
|
||||||
</mojos>
|
</mojos>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
@ -1,69 +1,69 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<name>target bytecode defined by maven.compiler.target property</name>
|
<name>target bytecode defined by maven.compiler.target property</name>
|
||||||
<description></description>
|
<description></description>
|
||||||
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
||||||
<artifactId>property</artifactId>
|
<artifactId>property</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<goalPrefix>property</goalPrefix>
|
<goalPrefix>property</goalPrefix>
|
||||||
<isolatedRealm>false</isolatedRealm>
|
<isolatedRealm>false</isolatedRealm>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<mojos>
|
<mojos>
|
||||||
<mojo>
|
<mojo>
|
||||||
<goal>touch</goal>
|
<goal>touch</goal>
|
||||||
<description>Goal which touches a timestamp file.</description>
|
<description>Goal which touches a timestamp file.</description>
|
||||||
<requiresDirectInvocation>false</requiresDirectInvocation>
|
<requiresDirectInvocation>false</requiresDirectInvocation>
|
||||||
<requiresProject>true</requiresProject>
|
<requiresProject>true</requiresProject>
|
||||||
<requiresReports>false</requiresReports>
|
<requiresReports>false</requiresReports>
|
||||||
<aggregator>false</aggregator>
|
<aggregator>false</aggregator>
|
||||||
<requiresOnline>false</requiresOnline>
|
<requiresOnline>false</requiresOnline>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<phase>process-sources</phase>
|
<phase>process-sources</phase>
|
||||||
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
||||||
<language>java</language>
|
<language>java</language>
|
||||||
<instantiationStrategy>per-lookup</instantiationStrategy>
|
<instantiationStrategy>per-lookup</instantiationStrategy>
|
||||||
<executionStrategy>once-per-session</executionStrategy>
|
<executionStrategy>once-per-session</executionStrategy>
|
||||||
<threadSafe>false</threadSafe>
|
<threadSafe>false</threadSafe>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter>
|
<parameter>
|
||||||
<name>outputDirectory</name>
|
<name>outputDirectory</name>
|
||||||
<type>java.io.File</type>
|
<type>java.io.File</type>
|
||||||
<required>true</required>
|
<required>true</required>
|
||||||
<editable>true</editable>
|
<editable>true</editable>
|
||||||
<description>Location of the file.</description>
|
<description>Location of the file.</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</mojo>
|
</mojo>
|
||||||
</mojos>
|
</mojos>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
@ -1,69 +1,69 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<name>target bytecode defined by report jdk requirement configuration</name>
|
<name>target bytecode defined by report jdk requirement configuration</name>
|
||||||
<description></description>
|
<description></description>
|
||||||
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
<groupId>org.apache.maven.its.plugin-info-jdk</groupId>
|
||||||
<artifactId>requirement</artifactId>
|
<artifactId>requirement</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<goalPrefix>requirement</goalPrefix>
|
<goalPrefix>requirement</goalPrefix>
|
||||||
<isolatedRealm>false</isolatedRealm>
|
<isolatedRealm>false</isolatedRealm>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<mojos>
|
<mojos>
|
||||||
<mojo>
|
<mojo>
|
||||||
<goal>touch</goal>
|
<goal>touch</goal>
|
||||||
<description>Goal which touches a timestamp file.</description>
|
<description>Goal which touches a timestamp file.</description>
|
||||||
<requiresDirectInvocation>false</requiresDirectInvocation>
|
<requiresDirectInvocation>false</requiresDirectInvocation>
|
||||||
<requiresProject>true</requiresProject>
|
<requiresProject>true</requiresProject>
|
||||||
<requiresReports>false</requiresReports>
|
<requiresReports>false</requiresReports>
|
||||||
<aggregator>false</aggregator>
|
<aggregator>false</aggregator>
|
||||||
<requiresOnline>false</requiresOnline>
|
<requiresOnline>false</requiresOnline>
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
<inheritedByDefault>true</inheritedByDefault>
|
||||||
<phase>process-sources</phase>
|
<phase>process-sources</phase>
|
||||||
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
<implementation>org.apache.maven.plugins.issues.plugin.MyMojo</implementation>
|
||||||
<language>java</language>
|
<language>java</language>
|
||||||
<instantiationStrategy>per-lookup</instantiationStrategy>
|
<instantiationStrategy>per-lookup</instantiationStrategy>
|
||||||
<executionStrategy>once-per-session</executionStrategy>
|
<executionStrategy>once-per-session</executionStrategy>
|
||||||
<threadSafe>false</threadSafe>
|
<threadSafe>false</threadSafe>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter>
|
<parameter>
|
||||||
<name>outputDirectory</name>
|
<name>outputDirectory</name>
|
||||||
<type>java.io.File</type>
|
<type>java.io.File</type>
|
||||||
<required>true</required>
|
<required>true</required>
|
||||||
<editable>true</editable>
|
<editable>true</editable>
|
||||||
<description>Location of the file.</description>
|
<description>Location of the file.</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
<outputDirectory implementation="java.io.File">${project.build.directory}</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</mojo>
|
</mojo>
|
||||||
</mojos>
|
</mojos>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
maven.compiler.source=1.3
|
maven.compiler.source=1.3
|
||||||
maven.compiler.target=1.3
|
maven.compiler.target=1.3
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
# regarding copyright ownership. The ASF licenses this file
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
invoker.goals = install -DskipTests
|
invoker.goals = install -DskipTests
|
||||||
invoker.mavenOpts = -Dmaven.plugin.skip=true
|
invoker.mavenOpts = -Dmaven.plugin.skip=true
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "License"); you may not use this file except in compliance
|
* "License"); you may not use this file except in compliance
|
||||||
* with the License. You may obtain a copy of the License at
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing,
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* software distributed under the License is distributed on an
|
* software distributed under the License is distributed on an
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
* KIND, either express or implied. See the License for the
|
* KIND, either express or implied. See the License for the
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
|
||||||
assert !descriptorFile.isFile()
|
assert !descriptorFile.isFile()
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue