Allow apache-rat-pluin to work when building single modules The configuration for apache-rat-plugin excludes the '**/target/**' path. However, when building a single module, the basedir that the plugin uses by default is the modules' target directory. The exclude signature for target doesn't match, as it would be attempting to match a target directory under the target directory itself. This works when building from a multi-module directory, e.g. brooklyn or brooklyn-server, as the basedir in this case is not the target directory.
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/dbe3a50d Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/dbe3a50d Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/dbe3a50d Branch: refs/heads/master Commit: dbe3a50dda1868fd92ea84b70cecde65e2b23dd8 Parents: 4ddffae Author: Paul Campbell <paul.campb...@cloudsoft.io> Authored: Wed Oct 3 14:21:56 2018 +0100 Committer: Paul Campbell <paul.campb...@cloudsoft.io> Committed: Wed Oct 3 14:21:56 2018 +0100 ---------------------------------------------------------------------- parent/pom.xml | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/dbe3a50d/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index f9a026b..9f6f1f8 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -1090,6 +1090,7 @@ <excludes combine.children="merge"> so that the child pom entries replace the parent entries --> + <basedir>${project.basedir}</basedir> <excludes combine.children="append"> <!-- Exclude sandbox because not part of distribution: not in tgz, and not uploaded to maven-central --> <exclude>sandbox/**</exclude>