[AEM 6.5] Project archetype and maven dependencies that are embedded
Hi, I am working on a project that was created recently using the AEM 6.5 archetype base project for best practices LINK and we have run into a few scenarios where we have added a dependency, then we code/build/deploy and the bundle will not start because it cannot import a needed package. I guess it is expecting to find the package exported from some other OSGi bundle.
We solve this by adding the needed packages to the bnd-maven-plugin config under "-conditionalpackage" LINK
Unfortunately, sometimes this leads us down a "rabbit hole" where we have to add a lot of packages, and end up pulling in tons of dependencies just so we can use like one class.
- Are we doing this the correct/ideal way?
- Is this maintainable? What if we keep doing this for years and end up with 50 packages and a 500mb+ bundle size
Thanks.