I figured that my bundle is not executing new features after the manual maven installation. So I tried a log trace code as:
log.trace("start my new features");
Then I ran maven as:
mvn -Pinstall -Pinstall-publish clean install
The code basically installs the bundle on both author and publisher instances. But when I looked at the log, the line is not logged. I looked at the package installer and figured everything is correct, service is running fine from /system/console. So every time I have to restart my AEM servers, any idea how I should accomplish it without restarting the instances?
As per my understanding, maven is not deploying the latest changes to the AEM instance when deploying manually.
Try to change the log level for maven to verbose and check through the various stages of build/compile.
It's installing the jar file, but not loading the updated one. I tried a few times to upload it from the package manager and installed it on different servers, all other servers are the same. I barely remember if it was working without restarting the server, seems that it changed to the current behavior a few months ago.
Have you tried to manually delete your bundle in the OSGI console and deploy your bundle via Maven again? This will tell you if there is an issue with the deployment or the bundle.