adobe / adobe/aem-project-archetype
CQBP-84 error on code scanning with fresh build project
- Dominant language
- JavaScript
- Stars
- 596
- Forks
- 431
- Avg merge
- 10d 6h
- Merged PRs (30d)
- 1
Description
### Expected Behaviour
Code Scanning phase should pass
### Actual Behaviour
Code Scanning phase failing
### Reproduce Scenario (including but not limited to)
Using this to build and run the code quality check pipeline
```
mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=27 \
-D appTitle="MyApp" \
-D appId="myapp" \
-D groupId="com.myapp" \
-D frontendModule="react" \
-D aemVersion="6.5.8"
```
#### Steps to Reproduce
Using this to build and run the code quality check pipeline
```
mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=27 \
-D appTitle="MyApp" \
-D appId="myapp" \
-D groupId="com.myapp" \
-D frontendModule="react" \
-D aemVersion="6.5.8"
```
#### Platform and Version
`aemVersion="6.5.8"` and `archetypeVersion=27`
#### Sample Code that illustrates the problem
#### Logs taken while reproducing problem
| File Location | Line Number | Issue | Type | Severity | Effort | Rule | Tags | Documentation
| ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- |
| com.myapp:myapp.all:1.0.0-SNAPSHOT | 0 | The product interface com.day.cq.dam.api.Rendition annotated with @ProviderType should not be implemented by custom code. Detected in com.adobe.cq.wcm.core.components.internal.servlets.EnhancedRendition contained in /apps/myapp-vendor-packages/application/install/core.wcm.components.core-2.15.2.jar. | Bug | Critical | 30m | CQRules:CQBP-84 | cqsoftwarequality | https://www.adobe.com/go/aem_cmcq_cqbp-84_en
Contributor guide
Research direction
Reproduce the failure with the Maven archetype:generate command and the stated AEM and archetype versions. Start with the generated project's code quality pipeline and the CQBP-84 log entry, then determine why the fresh project fails code scanning; done means the generated project passes that phase.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100