Hi,
Looking for a way to minimize the time to build bundle using maven and goto CQ Felix console and install the jar from repo..
[ Found an option using maven here- http://blog.bigpixel.ro/2010/07/deploying-osgi-bundles-automatically-with-maven/ ]
Is there any cmd line option to deploy the maven built bundle like using 'mvn clean install' into CQ's Felix OSGi ?
Kindly help.
Thanks,
Ram
Solved! Go to Solution.
Views
Replies
Total Likes
When you build your OSGi bundle using Maven -- you can use the following Maven plug-in to automatically deploy the bundle:
<
profile
>
<
id
>autoInstallBundle</
id
>
<
build
>
<
plugins
>
<
plugin
>
<
groupId
>org.apache.sling</
groupId
>
<
artifactId
>maven-sling-plugin</
artifactId
>
<
executions
>
<
execution
>
<
id
>install-bundle</
id
>
<
goals
>
<
goal
>install</
goal
>
</
goals
>
</
execution
>
</
executions
>
</
plugin
>
</
plugins
>
</
build
>
</
profile
>
TO see a full example -- see:
http://scottsdigitalcommunity.blogspot.ca/2013/03/creating-adobe-cq-shopping-cart.html
Views
Replies
Total Likes
When you build your OSGi bundle using Maven -- you can use the following Maven plug-in to automatically deploy the bundle:
<
profile
>
<
id
>autoInstallBundle</
id
>
<
build
>
<
plugins
>
<
plugin
>
<
groupId
>org.apache.sling</
groupId
>
<
artifactId
>maven-sling-plugin</
artifactId
>
<
executions
>
<
execution
>
<
id
>install-bundle</
id
>
<
goals
>
<
goal
>install</
goal
>
</
goals
>
</
execution
>
</
executions
>
</
plugin
>
</
plugins
>
</
build
>
</
profile
>
TO see a full example -- see:
http://scottsdigitalcommunity.blogspot.ca/2013/03/creating-adobe-cq-shopping-cart.html
Views
Replies
Total Likes