I have a maven multi module project set up for an AEM application:
- core
- ui.apps
- it.launcher
- it.tests
- ui.workflows (added more recently)
The application is deployed through Jenkins via a Maven build using the 0.0.24 version of the com.day.jcr.vault content-package-maven-plugin:
mvn clean install -PautoInstallPackage (-D... [admin creds] -D... [server info])
Intermittently, the Jenkins build will fail because the deployment of ui.workflows to http://{server}.{port}/crx/packmgr/service.jsp
will fail with the following message:
[ERROR] Missing response status information in response:
Checking in the logs of successful and unsuccessful deployments, I can see that the successful deployment requests returns an XML response that begins with
<crx version="1.4.1" user="admin" workspace="crx.default">
and ends with
Package installed in 4098ms.
</log>
</data>
<status code="200">ok</status>
</response>
</crx>
The unsuccessful deployment requests returns an HTML response that begins with
<html>
<head>
<title>Content modified /crx/packmgr/service.jsp</title>
</head>
<body>
<h1>Content modified /crx/packmgr/service.jsp</h1>
<table>
<tbody>
<tr>
<td>Status</td>
<td><div id="Status">200</div></td>
</tr>
I surmise that the request to the service endpoint in AEM was successful but that the plugin could not parse the HTML response. It looks like AEM in 6.2 is moving away from the /crx/packmgr/service.jsp endpoint, as well as XML responses in this documentation here
In the Adobe Nexus Repo for the maven plugin, there is a new version (0.5), which is a significant leap in version number from the previous number, and also coincides with the AEM 6.2 version release (April 2016) but I cannot find any documentation on how to configure the new plugin.
If anyone has experienced this issue, how did you resolve it?