mirror of https://github.com/apache/maven.git
Don't run surefire for pom project
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b33c9d140f
commit
92a347519c
|
@ -93,6 +93,14 @@ public class SurefirePlugin
|
||||||
*/
|
*/
|
||||||
private List excludes = new ArrayList( Collections.singletonList( "**/Abstract*Test.java" ) );
|
private List excludes = new ArrayList( Collections.singletonList( "**/Abstract*Test.java" ) );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The project whose project files to create.
|
||||||
|
*
|
||||||
|
* @parameter expression="${project}"
|
||||||
|
* @required
|
||||||
|
*/
|
||||||
|
private MavenProject project;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @parameter expression="${localRepository}"
|
* @parameter expression="${localRepository}"
|
||||||
* @required
|
* @required
|
||||||
|
@ -110,6 +118,11 @@ public class SurefirePlugin
|
||||||
public void execute()
|
public void execute()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
{
|
{
|
||||||
|
if ( "pom".equals( project.getPackaging() ) )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Setup the surefire booter
|
// Setup the surefire booter
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue