[MNG-5608] added a warning on ${project.basedir} use for profile

activation
This commit is contained in:
Hervé Boutemy 2014-03-23 19:58:26 +01:00
parent 3c7744a9a0
commit 64c4195067
1 changed files with 8 additions and 0 deletions

View File

@ -116,6 +116,14 @@ public class FileProfileActivator
return null;
}
} );
if ( path.contains( "${project.basedir}" ) )
{
problems.add( new ModelProblemCollectorRequest( Severity.WARNING, Version.BASE )
.setMessage( "Failed to interpolate file location " + path + " for profile " + profile.getId() + ": ${project.basedir} expression not supported during profile activation, use ${basedir} instead" )
.setLocation( file.getLocation( missing ? "missing" : "exists" ) ) );
}
}
else if ( path.contains( "${basedir}" ) )
{