Requested profile "autoInstallSinglePackage" does not exist

Avatar

Avatar

iosborne

Avatar

iosborne

iosborne

22-12-2020

I am currently trying to import my project to AEM. I can use the profile "autoInstallPackage" just fine, and the package appears in package manager, but I cannot install it as a single project. I am only able to deploy the ui.apps part of my project to my local AEM instance, despite building the whole project with autoInstallPackage. Does anyone know what may be occurring? Thanks.

View Entire Topic

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

22-12-2020

Hi @iosborne,

 

Trying to understand your question: Whenever you are doing a build, you are only seeing ui.apps package but not other packages right?

 

So in AEM, specific code/content/assets will be placed in different modules. Please check the module details below

 

KiranVedantam1992_0-1608703054721.png

To install all the modules add them in the module section of your main pom.xml. Also, add a new profile to your main pom.xml for the ID that you are mentioning to get activated 

<profile>
<id>autoInstallSinglePackage</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<executions>
<execution>
<id>install-package</id>
<goals>
<goal>install</goal>
</goals>
<configuration>
<targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
<failOnError>true</failOnError>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

 

For more info on maven commands, visit my blog here.

 

Thanks,

Kiran Vedantam.