March 14, 2020
Estimated Post Reading Time ~

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

Use the following plugin in your POM to install the bundle directly into the 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>



By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.