ui.apps.structure should be built before ui.apps
sadhakim opened this issue · 1 comments
Expected Behaviour
Updates to ui.apps.structure are not seen by ui.apps unless you build ui.apps.structure on its own. Instead if you just change the module order then ui.apps will always get the latest ui.apps.structure settings
Actual Behaviour
Updates to ui.apps.structure are not visible to ui.apps
Reproduce Scenario (including but not limited to)
Update the section in ui.apps.structure to include more "roots". The roots do not become visible to ui.apps unless the code is built independently and your build will fail.
Steps to Reproduce
- Update pom.xml in ui.apps.structure to include a new root.
<filter><root>/apps/foo/bar</root></filter>
- Update filter.xml in ui.apps/src/main/content/META-INF/vault/filter.xml with a new root
<filter root="/apps/foo/bar/foo"/>
- Build your project
mvn clean install
- Your build will fail with a validation error:
[ERROR] ValidationViolation: "jackrabbit-filter: Filter root's ancestor '/apps/foo/bar/foo' is not covered by any of the specified dependencies nor a valid root.", filePath=META-INF/vault/filter.xml
Platform and Version
Mac OS X, FileVault 1.30
Not an issue. Maven automatically determines the order to build your modules based on inter connected dependecies. It doesnt matter which order you list them in. The issue is that if you build a singlar module (like ui.apps) then it wont rebuild ui.apps.strucuture and any changes you made to ui.apps.structure wont be reflected. You have to manually build ui.apps.strucuture and then build ui.apps or you can build the root project (which will build the dependencies in order).