Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

How does the bundle get updated with Maven install profile?

Avatar

Level 4

So I noticed my AEM project wasn't picking up changes I made to the Java code. I realized any time I ran mvn clean install -PautoInstallPackage, my bundle jar file was not getting reinstalled or updated. I had to manually reinstall the .jar file from /bundle/target/. I'm using IntelliJ Ultimate fwiw.

I assume the bundles would get installed from the package if they are located in this directory /apps/packageNameHere/install/. I just unzipped the package that gets compiled from my project and my .jar file is indeed there. Any ideas?

1 Accepted Solution

Avatar

Correct answer by
Level 4

Figure it out

The following was commented out

<plugin> <groupId>org.apache.sling</groupId> <artifactId>maven-sling-plugin</artifactId> <configuration> <slingUrl>http://${crx.host}:${crx.port}/system/console/bundles</slingUrl> <usePut>false</usePut> </configuration> </plugin>

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Figure it out

The following was commented out

<plugin> <groupId>org.apache.sling</groupId> <artifactId>maven-sling-plugin</artifactId> <configuration> <slingUrl>http://${crx.host}:${crx.port}/system/console/bundles</slingUrl> <usePut>false</usePut> </configuration> </plugin>