Maven clean install unauthorized error
When running the maven clean install command:
mvn clean install -PautoInstallPackage -Daem.host=remoteserver -Daem.port=4502 -Dsling.user=admin -Dsling.password=<password>
I am getting:
[DEBUG] Authorization required
[DEBUG] Supported authentication schemes in the order of preference: [ntlm, digest, basic]
[DEBUG] Challenge for ntlm authentication scheme not available
[DEBUG] Challenge for digest authentication scheme not available
[INFO] basic authentication scheme selected
[DEBUG] Using authentication scheme: basic
[DEBUG] Authorization challenge processed
[DEBUG] Authentication scope: BASIC 'Sling (Development)'@remoteserver:4502
[DEBUG] Credentials required
[DEBUG] Credentials provider not available
[INFO] Failure authenticating with BASIC 'Sling (Development)'@remoteserver:4502
[ERROR] Request to http://remoteserver:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[DEBUG] Should close connection in response to directive: close
[DEBUG] Releasing connection back to connection manager.
Surprisingly the curl call to the same server, with exact same credentials is successful:
curl -u admin:<password> http://remoteserver:4502/crx/packmgr/service.jsp?cmd=ls
I tried to find the logs in error.log, access.log, and request.log for either calls, but AEM does not seem to be keeping the logs for call to /crx/packmgr/service.jsp
Is there anyway, I can setup the AEM to log the calls to /crx/packmgr/service.jsp?
Thanks you very much for looking at my question. Would greatly appreciate a suggestion.
