You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2015/10/07 11:09:27 UTC
[jira] [Commented] (SLING-3540) maven-sling-plugin with usePut =
true does not create intermediary folders
[ https://issues.apache.org/jira/browse/SLING-3540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946553#comment-14946553 ]
Robert Munteanu commented on SLING-3540:
----------------------------------------
Fixed in [r1707209|https://svn.apache.org/r1707209].
If usePut = true and installation fails with a 409 (Conflict) status attempt to create intermediate paths for deployment. The intermediate path primary type defaults to a Sling:Folder but can be configured using the intermediatePathPrimaryType mojo config property and overriden on the command line using -Dsling.deploy.intermediatePathPrimaryType.
> maven-sling-plugin with usePut = true does not create intermediary folders
> --------------------------------------------------------------------------
>
> Key: SLING-3540
> URL: https://issues.apache.org/jira/browse/SLING-3540
> Project: Sling
> Issue Type: Bug
> Components: Maven Plugins and Archetypes
> Affects Versions: Maven Sling Plugin 2.1.0
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Fix For: Maven Sling Plugin 2.1.2
>
>
> {code}[INFO] Installing Bundle com.example.jcrbundle(/home/rmuntean/tmp/jcrbundle/target/jcrbundle-1.0-SNAPSHOT.jar) to http://localhost:8080/libs/sling/install via PUT
> [ERROR] Installation failed, cause: Conflict{code}
> The reason is that the default Sling launchpad does not have a /libs/sling/install directory structure out of the box. The workaround is to create it, e.g. with curl
> {code}
> curl -u admin:admin -X MKCOL http://localhost:8080/libs
> curl -u admin:admin -X MKCOL http://localhost:8080/libs/sling
> curl -u admin:admin -X MKCOL http://localhost:8080/libs/sling/install
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)