Expand my Community achievements bar.

SOLVED

Requested profile "autoInstallSinglePackage" does not exist

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

View solution in original post

3 Replies

Avatar

Employee Advisor

@iosborne 

Please confirm which archetype you're using and does your project have a 'all' module with pom.xml having 'autoInstallSinglePackage' profile as below? The error you've shared suggest that this profile doesn't exist.

<profiles>
<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>

Avatar

Correct answer by
Community Advisor

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.

 

Avatar

Level 4

In case you have multiple module in project and want to install all package in single run, you can add those modules entry in profile, that profile will run all the modules in same sequence and install it in aem.

<profile>
   <id>install-all-modules</id>
   <modules>
      <module>module1</module>
      <module>module2</module>
   </modules>
</profile>

 

Regards
Praveen