How does the bundle get updated with Maven install profile? | Community
Skip to main content
Level 3
May 13, 2016
Solved

How does the bundle get updated with Maven install profile?

  • May 13, 2016
  • 1 reply
  • 736 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by squid267

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>

1 reply

squid267AuthorAccepted solution
Level 3
May 13, 2016

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>