Expand my Community achievements bar.

Issues with maven dependencies for WCMUsePojo

Avatar

Level 7

Hi Team,

I used the below maven dependencies to import WCMUsePojo - 

        <dependency>
            <groupId>com.adobe.cq.sightly</groupId>
            <artifactId>cq-wcm-sightly-extension</artifactId>
            <version>1.1.18</version>
            <scope>provided</scope>
        </dependency>

But when I building the code I got the below error-

[ERROR] Failed to execute goal on project myproject-services: Could not resolve dependencies for project com.myproject:myproject-services:bundle:0.0.1-SNAPSHOT: Could not find artifact com.adobe.cq.sightly:cq-wcm-sightly-extension:jar:1.1.18 in cqblueprints.releases (http://dev.cqblu
eprints.com/nexus/content/repositories/releases/) -> [Help 1]

Sometimes I got the below error - 

[ERROR] Failed to execute goal on project myproject-services: Could not resolve dependencies for project com.myproject:myproject-services:bundle:0.0.1-SNAPSHOT: Failure to find com.adobe.cq.sightly:cq-wcm-sightly-extension:jar:1.1.18 in http://dev.cqblueprints.com/nexus/content/repos
itories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of cqblueprints.releases has elapsed or updates are forced -> [Help 1]

Are the dependencies available publicly?

Please help me in this.

Thanks,

AryA.

3 Replies

Avatar

Level 10

Use this dependency

In core pom.xml

        <dependency>
            <groupId>com.adobe.aem</groupId>
            <artifactId>uber-jar</artifactId>
            <classifier>obfuscated-apis</classifier>
        </dependency>

In bundle pom.xml

         <dependency>
                <groupId>com.adobe.aem</groupId>
                <artifactId>uber-jar</artifactId>
                <version>6.1.0</version>
                <scope>provided</scope>
                <classifier>obfuscated-apis</classifier>
            </dependency>

Thanks

Avatar

Level 7

Hi Praveen,

You mean core means parent pom and bundle pom is which we used for java classes?

Shall I add both in the same?

 

Thanks,

AryA.