Requested profile "autoInstallSinglePackage" does not exist

Avatar

Avatar
Validate 1
Level 1
iosborne
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
iosborne
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
iosborne
Level 1

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

196 likes

Total Posts

213 posts

Correct reply

60 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

196 likes

Total Posts

213 posts

Correct reply

60 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

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.

 

Answers (2)

Answers (2)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

249 likes

Total Posts

410 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

249 likes

Total Posts

410 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

22-12-2020

@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

Avatar
Give Back 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Give Back 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
praveenjain
Level 4

24-12-2020

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