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:
Emmanuel Venisse 2005-06-07 08:36:15 +00:00
parent b33c9d140f
commit 92a347519c
1 changed files with 13 additions and 0 deletions

View File

@ -93,6 +93,14 @@ public class SurefirePlugin
*/
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}"
* @required
@ -110,6 +118,11 @@ public class SurefirePlugin
public void execute()
throws MojoExecutionException
{
if ( "pom".equals( project.getPackaging() ) )
{
return;
}
// ----------------------------------------------------------------------
// Setup the surefire booter
// ----------------------------------------------------------------------