> Sometimes I'd like to deploy a bundle to archiva but skip the whole install > process to a sling server. This is so that I can upload some small bundles > that are dependencies in another project but skip having to install them into > a running sling server. > > When I try to skip the install step like this: > mvn clean deploy -Dmaven.install.skip=true
Hi Rob, I guess that you have the sling:install goal bound to a lifecycle phase by default, so what you're looking for is -Dsling.install.skip=true . > > It still installs to localhost:8080. What's weird is that it doesn't seem to > be using my 'default' profile - it just builds everything and uploads each > bundle to localhost:8080 which I assume is a default in the > maven-sling-plugin. > By default the sling-maven-plugin is not bound to any lifecycle phase, you have to bind it explicitly. Robert > Sometimes I'd like to just do something like: > mvn clean compile > mvn make_some_bundle > mvn deploy -Dmaven.install.skip=true > > where the deploy uploads to my snapshotRepository as defined in > repositoryManagement.
