mirror of https://github.com/apache/maven.git
[MNG-5608] added a warning on ${project.basedir} use for profile
activation
This commit is contained in:
parent
3c7744a9a0
commit
64c4195067
|
@ -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}" ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue