adobe / adobe/aem-project-archetype

ui.content fails mvn clean test

Open
#919 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

### Expected Behaviour
All modules produced by the archetype should have 0 errors when running `mvn clean test`.

### Actual Behaviour
When running `mvn clean test` on the ui.content module, the following error is produced:
``` bash
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/content/dam/wetrain/jcr:content/folderThumbnail' is not contained in any of the filter rules", filePath=src/main/content/jcr_root/content/dam/wetrain/_jcr_content/folderThumbnail

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.263 s
[INFO] Finished at: 2022-04-19T12:39:43-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.1.6:validate-files (default-validate-files) on project wetrain.ui.content: Found 1 violation(s) (with severity=ERROR). Check above errors for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
```

### Reproduce Scenario (including but not limited to)
Create a project using the latest archetype (36) and then on the project root or in the ui.content module run
``` bash
mvn clean test
```

#### Potential Solution
Delete the `src/main/content/jcr_root/content/dam/wetrain/_jcr_content` folder from the archetype creation, it's not needed.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by creating a project with archetype 36 and running `mvn clean test` from the project root or `ui.content`. Inspect `src/main/content/jcr_root/content/dam/wetrain/_jcr_content` and the reported validation violation; done means the generated `ui.content` module passes `mvn clean test` with no errors.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.