Friday, 13 November 2015

Maven Plugin to Install Bundle Directly Into OSGI in AEM/Adobe CQ5

Use the following plugin in your POM to install bundle directly into OSGI console.


<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>maven-sling-plugin</artifactId>
     <version>2.1.0</version>
    <executions>
       <execution>
           <id>install-bundle</id>
          <goals>
                 <goal>install</goal>
         </goals>
       </execution>
    </executions>
    <configuration>
             <slingUrl>http://localhost:8080/system/console/install</slingUrl>
     <user>admin</user>
     <password>admin</password>
    </configuration>
</plugin>

No comments :

Post a Comment