mirror of https://github.com/apache/maven.git
o Improved robustness against bad profile activation
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@823345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38509d6a46
commit
9644d27e64
|
@ -94,9 +94,17 @@ public class DefaultProfileSelector
|
|||
{
|
||||
for ( ProfileActivator activator : activators )
|
||||
{
|
||||
if ( activator.isActive( profile, context, problems ) )
|
||||
try
|
||||
{
|
||||
return true;
|
||||
if ( activator.isActive( profile, context, problems ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch ( RuntimeException e )
|
||||
{
|
||||
problems.addError( "Failed to determine activation for profile " + profile.getId(), e );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue