overrideUrl doesn't work (original) (raw)

There is a bug in the code which processes the overrideUrl in org.codehaus.mojo.license.LicenseMojoUtils.prepareUrl(String, File, String, File, String):

    final Path basedirPath = basedir.toPath();

    if ( url != null && UrlRequester.isStringUrl( url ) )
    {
        return basedirPath.toUri().toString();
    }

    final Path defaultPath = basedirPath.resolve( defaultFilePath );

should be

    if ( url != null && UrlRequester.isStringUrl( url ) )
    {
        return url;
    }

    final Path basedirPath = basedir.toPath();
    final Path defaultPath = basedirPath.resolve( defaultFilePath );