May 27, 2020
Estimated Post Reading Time ~

Maven Plugin to Install Bundle Directly Into OSGI in AEM

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