Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Deploy Maven Built Bundle in Apache Felix OSGi Console using CMD

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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