Core module bundle not installing
Hello,
I replaced the core module in a Maven project with the core module from another project. However, when I ran "mvn clean install -PautoInstallPackage", the package is not installed, so nothing found at http://localhost:4502/system/console/bundles.
I was able to make it work by manually installing the jar file (project-abc.core-3.0.0-SNAPSHOT.jar) taken from the target folder. But I still wonder why is my core module is not getting installed automatically.
Here are my steps after I replaced the core module:
1. Update the `artifactId` in my added core module at "core/pom.xml" to be `project-abc.core` to match the new project structure.
2. Make sure that the "core/pom.xml" refer correctly to the new parent pom.xml per below:
<parent>
<groupId>com.abc.aem</groupId>
<artifactId>project-abc</artifactId>
<version>2.9.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
3. Make sure that the dependencies and embeds refer to the correct core module `artifactId` from step 1.
/AEM_ABC/ui.apps/pom.xml
<dependency>
<groupId>com.abc.aem</groupId>
<artifactId>project-abc.core</artifactId>
<version>${project.version}</version>
</dependency>
/AEM_ABC/all/pom.xml
<embedded>
<groupId>com.abc.aem</groupId>
<artifactId>project-abc.core</artifactId>
<target>/apps/project-abc-packages/content/install</target>
</embedded>
4. Made sure the filter.xml at "/AEM_ABC/all/src/main/content/META-INF/vault/filter.xml" include the path below:
<workspaceFilter version="1.0">
<filter root="/apps/project-abc-packages"/>
</workspaceFilter>
As you can see, I am not exactly sure what are required by OSGi to install the jar file as a bundle when running "mvn clean install -PautoInstallPackage". Any input or suggestion is appreciated,
Thanks,
Sean