TLDR;
The following command fails to run in Virtual Box guest OS to build and install an artifact onto an AEM 6.3 Author instance running on the host OS.
mvn -PautoInstallPackage clean install
The host machine is behind a corporate proxy and guest OS has CNTLM and Maven proxy file configured.
Longer version
I use a VirtualBox VM for development - mainly to mitigate corporate software installation restrictions. Trying to run the following command to build and deploy an AEM 6.3 multi module project, but it keeps failing. The following is the maven command:
mvn -PautoInstallPackage clean install
And the build stop running beyond this point:
[INFO] Discarding unexpected response: HTTP/1.1 100 Continue
When I run the same command with the debug flag (-X
), I get the following lines before the error:
...
[DEBUG] Request body sent
[DEBUG] << "HTTP/1.1 100 Continue[\r][\n]"
[DEBUG] << "HTTP/1.1 100 Continue[\r][\n]"
[DEBUG] << "Proxy-Connection: keep-alive[\r][\n]"
[DEBUG] << "Connection: keep-alive[\r][\n]"
[DEBUG] << "[\r][\n]"
[INFO] Discarding unexpected response: HTTP/1.1 100 Continue
Some key details of my setup:
- Host OS is Windows 7 Enterprise - this is where my AEM 6.3 Author instance is running
- Guest OS is Ubuntu 16.04.4 LTS - this is where I do development
- The computer is connected to a network that sits behind a corporate proxy
- Proxy is setup on VM guest with CNTLM,
http_proxy
,https_proxy
env variables and~/.m2/settings.xml
for Maven - Maven can fetch all dependencies from Internet without any issue
- All other commands like
npm install
,curl
work fine fetching content from Internet - I have added
10.*
to the white-list in both CNTLM and Mavensettings.xml
file - In Virtual Box settings I have added the Host-only Adapter
- I can connect to the AEM instance running on host OS through browser via http://10.0.2.2:4502
Full error log file: https://paste.ee/p/dph1n
Any help is highly appreciated.