Question

We are using cqblueprints archetype for building our cq project (eclipse/cqblueprints). But while trying to deploy the acme-corporate-services (the project which contains the bundle), using

    mvn -Pauto-deploy install

command, we are getting the following error.

    [INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ acme-corporate-services ---
[INFO] Installing com/acme/wcm/cq/acme-corporate-services/1.0.0-SNAPSHOT/acme-corporate-services-1.0.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ acme-corporate-services ---
[INFO] Installing Bundle com.acme.wcm.cq.acme-corporate-services(C:\acme_CORP_REFACTOR\acme-corporate\acme-corporate-services\target\acme-corporate-services-1.0.0-SNAPSHOT.jar) to http://localhost:4502/apps/acme-corporate/install via PUT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.831 s
[INFO] Finished at: 2014-04-20T07:35:35-08:00
[INFO] Final Memory: 11M/42M
    [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.1.0:install (install-bundle) on project acme-corporate-services: Installation on http://localhost:4502/apps/acme-corporate/install failed, cause: Installation failed, cause: Conflict -> [Help 1]

Please help us to find the root cause for this error.

Was it helpful?

Solution

The above mentioned error might occur if the installation directory is missing in the repository.

In your case maven is trying to on /apps/acme-corporate/install. If the above path doesn't exist then you might get the Conflict error.

Check whether the required directory exists in the repo, and in case it doesn't, try creating one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top