[ https://issues.apache.org/jira/browse/JCRVLT-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240832#comment-17240832 ]
Dirk Rudolph commented on JCRVLT-481: ------------------------------------- Pull Request created. Would it be possible to release that fix as 1.0.5 as well, as my current project has not yet been migrated to 1.1.x. > 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)