Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

SPA App deployment with classic profile

mrobinson
Level 2
Level 2

I am trying to deploy an SPA to AEM version 6.5.5 using the -Pclassic build profile, but at the end of the build process, I receive the following warning:

 

[WARNING] The requested profile "classic" could not be activated because it does not exist.

Am I missing something in order to include that profile?

Thanks! 

1 Accepted Solution
Andrei_Dantsou
Correct answer by
Level 4
Level 4
0 Replies
Andrei_Dantsou
Level 4
Level 4

Hello @mrobinson,

The AEM project archetype (https://github.com/adobe/aem-project-archetype) doesn't include the mentioned profile by default. In order to make your profile available for the build, it should be specified in the "profiles" section of your pom.xml. Please see the documentation for more details about profiles definition.

Regards

mrobinson
Level 2
Level 2

Understood. Is there anywhere that has the full profile code? In the documentation, it provides some of it, but not all. There is a '...' which I assume contains collapsed code.

 

An additional Maven profile, named classic has been added to modify the build to target AEM 6.x environments:
  <!-- AEM 6.x Profile to include Core Components-->
    <profile>
        <id>classic</id>
        <activation>
            <activeByDefault>false</activeByDefault>
        </activation>
        <build>
        ...
    </profile>

 

Andrei_Dantsou
Correct answer by
Level 4
Level 4