Service is in satisfied state when using com.day.cq.replication.Replicator in AEM 6.3 | Community
Skip to main content
New Participant
January 22, 2018
Solved

Service is in satisfied state when using com.day.cq.replication.Replicator in AEM 6.3

  • January 22, 2018
  • 6 replies
  • 1972 views

Hi All,

I am using "com.day.cq.replication.Replicator" for replicating the content programmatically. But if I include the reference for Replicator, my service is not getting active, it is in satisfied state.Same issue is there with "com.day.cq.collab.replication.ReplicationConfigService" also. I am using uber jar for AEM 6.3.Did anyone face this issue?

Thanks in Advance,

Anusha

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

This command builds Maven 12 projects:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=12 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

As discussed here - Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archetype 12

6 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
January 23, 2018

This command builds Maven 12 projects:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=12 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

As discussed here - Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archetype 12

New Participant
January 23, 2018

Thanks for the reply. When I am trying to build a maven Archtype 12 project following the doucmentation, I am getting the following error.

ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2

.4:generate (default-cli) on project standalone-pom: The desired archetype does

not exist (com.adobe.granite.archetypes:aem-project-archetype:12) -> [Help 1]

I could build project using below command.

mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases

smacdonald2008
New Participant
January 22, 2018

As I suspected  - the Rep API does go into Active state when you build using a Maven Archetype 12 project - see:

smacdonald2008
New Participant
January 22, 2018

I am testing this right now and will create a Replication API article using Maven Archetype 12.  I will post here once done.

smacdonald2008
New Participant
January 22, 2018

Try building a Maven Arch 11 project and then adding this API to a class under core. Add the UBER JAR to the parent pom as shown in this article and the other dependencies to the POM under core:

Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archetype 11

This should get your bundle into an Active state.

smacdonald2008
New Participant
January 22, 2018

That API should be part of the UBER JAR for 6.3.  How are you creating your project - are you using Maven Archetype project?