Dirk Rudolph created JCRVLT-481:
-----------------------------------
Summary: 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.1.4, package-maven-plugin-1.0.4
Reporter: Dirk Rudolph
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)