JAR not available at adobe repositories | Community
Skip to main content
Jai1122
Level 4
October 16, 2015
Solved

JAR not available at adobe repositories

  • October 16, 2015
  • 8 replies
  • 3936 views

    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.

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 donwalling

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)? 

8 replies

Rima_Mittal
Level 4
October 16, 2015

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.*;
Jai1122
Jai1122Author
Level 4
October 16, 2015

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.

smacdonald2008
Level 10
October 16, 2015

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

JK_Kendall
Level 9
October 16, 2015

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

Adobe Employee
October 16, 2015

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

Jai1122
Jai1122Author
Level 4
October 16, 2015

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.

JK_Kendall
Level 9
October 16, 2015

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

donwallingAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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)?