AEM - Maven project does not copy apps components package -
i'm using aem 6.1 , using maven(3.3.3) build , deploy projects. whereas, maven buiild installs bundle package, java code. not copying components , templates folder (in apps folder).
i have added paths in filter.xml. can provide me sample pom or structure of how can achieve copying of components during build?
thanks!
was maven project created archetype? if so, there should autoinstallpackage profile defined. suspect may using autoinstallbundle, install osgi bundle.
if wasn't, need configure content-package-maven-plugin deploy generated crx package target instance.
there should sufficient information in official adobe documentation managing packages maven here's sample config lazybone's aem-multimodule-project acs commons.
specify contents of crx package:
<plugin> <groupid>com.day.jcr.vault</groupid> <artifactid>content-package-maven-plugin</artifactid> <extensions>true</extensions> <configuration> <group>${packagegroup}</group> <filtersource>src/main/content/meta-inf/vault/filter.xml</filtersource> <embeddeds> <embedded> <groupid>${groupid}</groupid> <artifactid>${bundleartifactid}</artifactid> <target>/apps/${appsfoldername}/install</target> </embedded> </embeddeds> <targeturl>http://\${crx.host}:\${crx.port}/crx/packmgr/service.jsp</targeturl> </configuration> </plugin> specify profile use in order install package:
<profile> <id>autoinstallpackage</id> <build> <plugins> <plugin> <groupid>com.day.jcr.vault</groupid> <artifactid>content-package-maven-plugin</artifactid> <executions> <execution> <id>install-content-package</id> <phase>install</phase> <goals> <goal>install</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile>
Comments
Post a Comment