Expand my Community achievements bar.

SOLVED

JAR not available at adobe repositories

Avatar

Level 5

    Hi All,

      I am trying to migrate OSGI bundles from CRXDE Lite to Maven. I added dependencies required. 

When  i tried to install i got an error saying

[ERROR] Failed to execute goal on project test-utils: Could not resolve dependencies for project com.test.wem:test-utils:bundle:0.1-SNAPSHOT: Failed to collect
dependencies at com.adobe.cq.social:cq-social-commons:jar:1.4.172: Failed to read artifact descriptor for com.adobe.cq.social:cq-social-commons:jar:1.4.172: Failure t
 find com.adobe.cq.social:socialcommunities-parent:pom:1.1.34 in https://repo.adobe.com/nexus/content/groups/public/ was cached in the local repository, resolution wi
l not be reattempted until the update interval of adobe has elapsed or updates are forced -> [Help 1]

I thought of downloading the jars manually.But the required com.adobe.cq.social:socialcommunities-parent:pom:1.1.34  version does not exist. Even in other versions JARs are not available. Attaching the screenshot of the same.

Please help me on this!!

Thanks,

Jai.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Jai1122,

If you leave out the cq-quickstart dependency, what classes are not found? I recommend you open a Daycare support case with the details as it is not obvious to me what quickstart dependency to use for 5.6.1. Is it possible for you to upgrade (ideally to 6.1)? 

View solution in original post

8 Replies

Avatar

Level 4

try compiling your maven project with:

<dependency>
                <groupId>com.adobe.aem</groupId>
                <artifactId>aem-api</artifactId>
                <version>6.0.0.1</version>
                <scope>provided</scope>
            </dependency>

com.adobe.aem:aem-api:6.0.0.1 is a fat jar that provides all these api dependencies:

  1.  com.adobe.cq.*;
  2.  com.adobe.granite.*;
  3. com.adobe.internal.xmp.*; com.adobe.xmp.*;
  4.  com.day.cq.*;
  5.  com.day.crx.*;
  6. org.apache.jackrabbit.*;
  7.  org.apache.sling.*;

Avatar

Level 5

Hi,

Thanks for the response.  I am looking for com.adobe.cq.social.socialcommunities-parent jar which is not part of the dependency specified above.

Avatar

Level 10

I have asked members of the AEM social team to look at this question. 

Avatar

Level 9

Please see if this information, written for AEM 6.1 [0], is helpful for CQ 5.6.1 and version 1.4 of the social communities package.

You would need to look in your package manager to see what version of social communities package you have installed in order to specify the version to Maven correctly.

Maven Dependency Example
The Communities API jar should be specified before the Quickstart API jar.

<dependency>
    <groupId>com.adobe.cq.social</groupId>
    <artifactId>cq-socialcommunities-api</artifactId>
    <version>1.7.197</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>com.day.cq.</groupId>
    <artifactId>cq-quickstart</artifactId>
    <version>6.1.0</version>
    <scope>provided</scope>
    <classifier>apis</classifier>
</dependency>

[0] http://docs.adobe.com/docs/en/aem/6-1/develop/communities/code-guide/maven.html

Avatar

Employee

Hi Jai1122,

The individual social component jars should not be used as dependencies in your project due to the fact that they are not available on the public maven repository. They are not public intentionally due to security and policy. The classes needed for a project are available in the api jars. So if your project uses dependencies defined as follows, then the component jars and the parent will not be required. Please use the following in your project pom.xml:

<dependency>
    <groupId>com.adobe.cq.social</groupId>
    <artifactId>cq-socialcommunities-api</artifactId>
    <version>1.7.197</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>com.day.cq.</groupId>
    <artifactId>cq-quickstart</artifactId>
    <version>6.1.0</version>
    <scope>provided</scope>
    <classifier>apis</classifier>
</dependency>

Be sure and change the versions to the correct values to match your project. i.e. change cq-quickstart jar to match the version of AEM that you're running, and change the cq-socialcommunities-api version to match the version of cq-socialcommunities-pkg that is installed in your AEM instance

Avatar

Level 5

Hi JK,

   I am using AEM 5.6.1 and  cq-socialcommunities-pkg 1.4.206. 

I added the dependecies as folows

   <dependency>
            <groupId>com.adobe.cq.social</groupId>
            <artifactId>cq-socialcommunities-api</artifactId>
            <version>1.4.206</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.day.cq.</groupId>
            <artifactId>cq-quickstart</artifactId>
            <version>5.6.1</version>
            <scope>provided</scope>
            <classifier>apis</classifier>
        </dependency>

and getting an error saying Missing artifact com.day.cq.:cq-quickstart:jar:apis:5.6.1. I tried changing the cq-quickstart dependency to 6.1.0 but as expected it is not working.

Avatar

Level 9

Just to clarify, it may be that your basic problem is trying to build dependencies on individual social communities jars instead of the Communities API jar.

-JK

Avatar

Correct answer by
Employee

Hi Jai1122,

If you leave out the cq-quickstart dependency, what classes are not found? I recommend you open a Daycare support case with the details as it is not obvious to me what quickstart dependency to use for 5.6.1. Is it possible for you to upgrade (ideally to 6.1)?