• Andy Wilkinson's avatar
    Fix MavenSettings’ handling of profiles activated by a file · c4f756da
    Andy Wilkinson authored
    Previously, MavenSettings used a FileProfileActivator with no
    PathTransformer. If a settings.xml file contains a file-activated
    profile this would result in an NPE within Maven. This was made worse
    by the NPE not being included in the resulting failure message which
    hampered diagnosis of the problem.
    
    This commit updates MavenSettings to configure its FileProfileActivator
    with a PathTransformer. It also improves the failure message that’s
    created from any problems that are reported by Maven while determining
    the active profiles to include a problem’s exception if it has one.
    
    Closes gh-4826
    c4f756da
Name
Last commit
Last update
..
.m2 Loading commit data...
commands Loading commit data...
dir-sample/code Loading commit data...
grab-samples Loading commit data...
maven-settings Loading commit data...
metadata Loading commit data...
repro-samples Loading commit data...
resource-matcher Loading commit data...
scripts Loading commit data...
static/css Loading commit data...
templates Loading commit data...
classloader-test-app.groovy Loading commit data...
foo.jar Loading commit data...
foo.pom Loading commit data...
grab.groovy Loading commit data...
init.groovy Loading commit data...
schema-all.sql Loading commit data...