Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

content-package-maven-plugin has gone missing from adobe repo?

Avatar

Level 3

Trying to do a fresh build on a new computer:

[INFO] Downloading: https://repo.maven.apache.org/maven2/com/day/jcr/vault/content-package-maven-plugin/0.0.24/content-p...
[WARNING] The POM for com.day.jcr.vault:content-package-maven-plugin:jar:0.0.24 is missing, no dependency information available

Looking at that directory, it is a 404. 

I have the adobe repo configured to go to:

https://repo.adobe.com/nexus/content/repositories/public

But maven always downloads from

https://repo.maven.apache.org/maven2

instead...

I attached my pom.xml:

1 Accepted Solution

Avatar

Correct answer by
Level 10

Check you settings.xml in maven folder or .m2 folder to see if there are any repo configured in there

View solution in original post

10 Replies

Avatar

Correct answer by
Level 10

Check you settings.xml in maven folder or .m2 folder to see if there are any repo configured in there

Avatar

Administrator

Hi

As mentioned by Scott and Lokesh, try using settings.xml in provided helpx article.

Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

// The Maven configuration file named settings.xml from [install location]\apache-maven-3.0.4\conf\ to your user profile. For example, C:\Users\scottm\.m2\.

You have to configure your settings.xml file to use Adobe’s public repository. For information, see Adobe Public Maven Repository at http://repo.adobe.com/.

Use the XML provided in the article.

 

I hope this would work for you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 3

Thanks all, the settings.xml did the trick.  I really appreciate the responses!

This is going to be a huge mess to get a settings.xml on to all our build servers, developer laptops so forth on computers all over the world, since it doesn't go into source code control in a repeatably-installable place, and makes the builds unportable, but I'll see if I can work all that out.

Thanks!

Avatar

Level 3

So, I already had defined the Adobe repo profile in my pom.xml, just like in the Archetype.

However, despite being set to be active by default in the POM, it wasn't kicking in every time the build ran for some reason.

If I run:

mvn help:active-profiles

it kicks in every time, but on

clean install

it does not.

Which is weird, and bug-like from a maven perspective.  It also doesn't kick in reliably when running from Eclipse or IntelliJ.

That said, if I explicitly invoke 'adobe-public' as a profile on the build, it works every time.

mvn clean install -P autoInstallPackage adobe-public

This makes it so that we just need to build and POM, and not a separate settings.xml file.

Hope that helps folks,

Tim

Avatar

Level 1

I too faced similar issue. My POMs look good. Repo info defined in settings.xml. But still got issue.

Tim you mentioned - "explicitly invoke 'adobe-public' as a profile on the build"

This did the trick for me.

Avatar

Level 1

Almost June 2019 and still having the same issue here, my settings.xml is pointing to the nexus repo, the same on my pom.xml but I need to invoke 'adobe-public' as a profile in the command. Why is that? (mvn -PautoInstallPackage -Padobe-public clean install)

Avatar

Level 1

Could somebody please please create a ticket at Adobe that they copy the com.day.jcr.vault:content-package-maven-plugin-parent:pom:0.0.24 to the maven central repo? (I don't think I can.) It's been years, and you still have to use repo.adobe.com since that's missing.

Thank you so much!
Hans-Peter

Avatar

Level 1

I don't know of a ticket, and I currently cannot create one.