Expand my Community achievements bar.

404 while getting apache jcr jar from repo.adobe.com

Avatar

Community Advisor

Hi,

Trying to get jcr commons jar getting 404. according to https://mvnrepository.com/artifact/org.apache.jackrabbit/jackrabbit-jcr-commons/2.2.6-r1089293 it should be in:

https://repo.adobe.com/nexus/content/repositories/public/org/apache/jackrabbit/jackrabbit-jcr-common...

Surely it should be there, can we place jar back there please ?

Regards,

Peter

12 Replies

Avatar

Level 10

This JCR API JAR should be part of the POM file created when you use Maven 10 Archetype - see this article - also notice the use of the AEM Urber JAR: 

https://helpx.adobe.com/experience-manager/using/first-arch10.html

Avatar

Community Advisor

Hi Scott,

Appreciate your response, the project I am currently looking at, was created long before Archetype 10 was created.

I absolutely agree that new projects should be generated via Archetype 10. But, in order to build older project we need to be able to get dependencies somehow(e.g. to build the code from source, when local .m2 is empty and company's nexus is empty too)..

Is it possible to add missing jar to the Adobe repo or is it permanently gone?

Regards,

Peter

Avatar

Level 10

WHat is happening when you use AEM Dependency Finder then use that in your POM?(the old way before Urber AEM JAR) 

Avatar

Community Advisor

Hi Scott,

Believe that in the version of CQ5 for which this code is build the exact match is jackrabbit-jcr-commons-2.2.6-r1089293.

I do understand that this version is no longer supported by Adobe(hence why not raising it via DayCare) and that the version can be restored from apache felix itself and renamed, then moved to nexus(but it's quite painful and slow, as there could be few of them)...

Is it possible to restore jars on repo.adobe.com(or they are permanently deleted)?

Regards,

Peter

Avatar

Level 10

I will check with internal ppl about this. If it is deleted - it may be hard to get back as they focus on AEM 6.x 

Avatar

Level 10

Also - if you can get the JAR - you can always make it local to your repos as a workaround.

Avatar

Community Advisor

Yes, Scott, do understand this. Thank you for your reply.

Look forward to hear your response.

Regards,

Peter

Avatar

Level 10

I do not think it will be put back into the repo. Here is what to do: 

 Download the JAR here:

https://mvnrepository.com/artifact/org.apache.jackrabbit/jackrabbit-jcr-commons/2.2.6-r1089293

Then upload the JAR to Maven by using this Maven command: 

mvn install:install-file -Dfile=C:/jackrabbit-jcr-commons.jar -DgroupId=com.foo.jr -DartifactId=jrjcr1.0 -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

Once you upload the JAR to Maven using this command, you can reference this JAR file using this Dependency.

<groupId>com.foo.jr</groupId>
<artifactId>jrjcr1.0 </artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>C:\Users\scottm\.m2\repository\<YOUR PATH></systemPath>
</dependency>

Now you can build against this API. 

Avatar

Level 10

I will check to see why the other version is not there. 

Avatar

Community Advisor

Please check. Look forward to read you reply.

Regards,

Peter