[
https://issues.apache.org/jira/browse/JCRVLT-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus resolved JCRVLT-481.
------------------------------------
Resolution: Fixed
PR applied in
https://github.com/apache/jackrabbit-filevault-package-maven-plugin/commit/18aa52af7a31a03990ec936334e02f10b870cb59
Thanks for the contribution [~diru]
> filefault-package:format-xml fails when executed in build reactor
> ------------------------------------------------------------------
>
> Key: JCRVLT-481
> URL: https://issues.apache.org/jira/browse/JCRVLT-481
> Project: Jackrabbit FileVault
> Issue Type: Bug
> Affects Versions: package-maven-plugin-1.0.4, package-maven-plugin-1.1.4
> Reporter: Dirk Rudolph
> Priority: Major
> Fix For: package-maven-plugin-1.1.6
>
>
> The format-xml fails with a "basedir not set" exception when being executed
> in the root of a multi module maven project (build reactor).
> Assuming the following structure:
> {code:java}
> <project>/
> - pom.xml
> a/
> - pom.xml
> src/main/content/jcr_root/
> b/
> - pom.xml
> src/main/content/jcr_root/{code}
> I want to execute {{mvn filefault-package:format-xml}} from the top level
> <project>.
> The reason is that
> {{AbstractSourceAndMetadataPackageMojo.getFirstExistingDirectory()}} returns
> null when non of the configured {{jcrRootSourceDirectory}} exists and this
> {{null}} is passed unchecked to a
> {{org.codehaus.plexus.util.DirectoryScanner}} which validates the given
> basedir and if not set throws ans ISE.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)