adobe / adobe/aem-project-archetype
AIO SSR Actions not getting deployed with install phase
- Dominant language
- JavaScript
- Stars
- 596
- Forks
- 431
- Avg merge
- 10d 6h
- Merged PRs (30d)
- 1
Description
When trying to deploy SSR with io runtime, the install phase is not deploying the actions[1], only when we change the phase to generate-resources it deploys the actions[2].
From the archetype, install phase comes by default. We are having to change this behaviour to get the actions deployed.
### Expected Behaviour
SSR actions are deployed with install phase. As this is what is provided from the archetype.
### Actual Behaviour
SSR actions deployed with generated-resources phase and don't get deployed with install phase.
### Reproduce Scenario (including but not limited to)
0. Create fresh AEM archetype project with SSR enabled via Maven.
1. Keep the ui.frontend/pom.xml, same as what comes with the archetype. With install phase when deploying SSR.[1]
2. Run cloud pipeline to deploy to env.
3. Notice, SSR actions do not get deployed. Verify, using aio commands to see latest updated actions.
4. Now, change the phase, to generate-resources[2].
5. Deploy the build using pipelines to the cloud env.
6. Verify the latest SSR actions are deployed.
command: wsk action get /\/\/\
#### Steps to Reproduce
#### Platform and Version
AEM Archetype Version 39
Node v14.21.1
NPM 6.14.17
Version - 2023.7.12874.20230726T072051Z-230702


[build_maven_build_generate_resources.log](https://github.com/adobe/aem-project-archetype/files/12354570/build_maven_build_generate_resources.log)
[build_maven_build_install.log](https://github.com/adobe/aem-project-archetype/files/12354571/build_maven_build_install.log)
#### Logs taken while reproducing problem
Attached logs with install phase and with generate-resources phase.
Contributor guide
Research direction
Start with ui.frontend/pom.xml and compare the attached build_maven_build_install.log and build_maven_build_generate_resources.log to trace how the two Maven phases handle SSR actions. Reproduce with a fresh AEM Archetype 39 project and verify deployment with the provided aio action get command. Done means SSR actions from the install phase are updated in the cloud environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, build-system, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100