Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-355

False error in case embedded file/subpackage is overwritten by jcrRootSourceDirectory

    XMLWordPrintableJSON

Details

    Description

      i've found problem with the check introduced with JCRVLT-279 - or i do not understand why the check leads to a failure in my case.

      i've two projects where this happens:

      1. conf-content:
      https://github.com/stefanseifert/filevault-package-maven-plugin-1.0.4-validation-issues/tree/master/content-packages/conf-content

      fails with:

      [ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.4:package (default-package) on project mycompany.myprojectgroup.myproject1.conf-content: org.apache.maven.plugin.MojoFailureException: Found duplicate files in content package, most probably you have overlapping filter roots or you embed a file which is already there in 'jcrRootSourceDirectory'. For details check the nested exception!: Duplicate file jcr_root\conf\myproject1\settings\wcm\policies was found and the duplicate attribute is 'fail'. 

      2. ui.apps
      https://github.com/stefanseifert/filevault-package-maven-plugin-1.0.4-validation-issues/tree/master/content-packages/ui.apps

      fails with:

      [ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.4:package (default-package) on project mycompany.myprojectgroup.myproject1.ui.apps: org.apache.maven.plugin.MojoFailureException: Found duplicate files in content package, most probably you have overlapping filter roots or you embed a file which is already there in 'jcrRootSourceDirectory'. For details check the nested exception!: Duplicate file jcr_root\apps\epsilon65Project\clientlibs\.content.xml was found and the duplicate attribute is 'fail'.
      

      the second project is a special case because in some files in the "clientlibs" folder placeholders are replaced using maven resource filtering, if the corresponding build-helper-maven-plugin definition is removed the build works.

      but the first project is really simple project.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: