unable to fine dependency in pom.xml | Community
Skip to main content
Level 4
Feb 3, 2016 6:44 PM UTC
Solved

unable to fine dependency in pom.xml

Dear Team,

I am trying to build my existing maven project in eclipse. After importing existing maven project in my Eclipse work space, my pom.xml file is throwing error, as shown in below screenshot.

My pom.xml file is not able to get below dependency.

 

<dependency>
<groupId>org.springframework</groupId>
  <artifactId>org.springframework.context.support</artifactId>
  <version>3.2.4.RELEASE</version>
</dependency>

<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-replication</artifactId>
<version>5.4.2</version>
<scope>compile</scope>
</dependency>

Can I put some jar files in my Eclipse build path?

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Feb 4, 2016 7:28 AM UTC

Adding to Scott's post, 

Please have a look at dffinder :-

Determine Maven Coordinates

To find the Maven coordinates for a class or package, you can use the Web Console's "Packages" screen athttp://<host>:<port>/system/console/depfinder.

Enter com.day.cq.wcm.msm.api into the "Packages / Classes" input field and click "Find". The Web Console will provide an XML fragment that can be used with Maven as shown in the screen below.

file

Reference link:- http://labs.6dglobal.com/blog/2012-05-04/new-cq-55-dependency-finder/

Kautuk Sahni

8 replies

dan_klco
Level 4
Feb 22, 2018 10:16 PM UTC

FYI since labs.6dglobal.com is down, here's the same blog post on the dependency finder on my personal blog: https://www.danklco.com/posts/2012/05/04/new-cq-55-dependency-finder/

Translate
Level 4
Feb 4, 2016 3:48 PM UTC

Hi All,

Thanks a lot for all of your help.

I deleted the below dependency

<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-replication</artifactId>
<version>5.4.2</version>
<scope>compile</scope>
</dependency>

After that my pom is working fine.

Translate
Level 4
Feb 4, 2016 3:31 PM UTC

another dependency is

<dependency>
<groupId>org.springframework</groupId>
  <artifactId>org.springframework.context.support</artifactId>
  <version>3.2.4.RELEASE</version>
</dependency>

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Feb 4, 2016 7:28 AM UTC

Adding to Scott's post, 

Please have a look at dffinder :-

Determine Maven Coordinates

To find the Maven coordinates for a class or package, you can use the Web Console's "Packages" screen athttp://<host>:<port>/system/console/depfinder.

Enter com.day.cq.wcm.msm.api into the "Packages / Classes" input field and click "Find". The Web Console will provide an XML fragment that can be used with Maven as shown in the screen below.

file

Reference link:- http://labs.6dglobal.com/blog/2012-05-04/new-cq-55-dependency-finder/

Translate
Kautuk Sahni
smacdonald2008
Level 10
Feb 3, 2016 9:39 PM UTC

try using AEM dependency finder - it will specify the POM dependency that you need for a given AEM package: 

http://localhost:4502/system/console/depfinder

To help you further - i would need a complete list of Java packages that you are having issues with. 

Translate
Employee
Feb 3, 2016 9:34 PM UTC

<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-replication</artifactId>
<version>5.4.2</version>
<scope>compile</scope>
</dependency>

does exist in the adobe repo

https://repo.adobe.com/nexus/content/groups/public/com/day/cq/cq-replication/5.4.2/

Is this the only AEM dependancy you have in your project?

Regards,

Opkar

Translate
Level 4
Feb 3, 2016 8:13 PM UTC

We are using below java packages in our OSGI Bundle.

com.xxx.dfac.xxxxxx.components

com.day.cq.xxxxxx

Translate
smacdonald2008
Level 10
Feb 3, 2016 6:50 PM UTC

I would try and build from Maven command line to make sure that the bundle works and POM dependencies can be resolved.

Once you know it works from command line - then you can hook into Eclipse. Using Maven from command line eliminates any Eclipse IDE plug-in errors. 

What Java package are you trying to use in the OSGi bundle? 

Translate