content-package-maven-plugin has gone missing from adobe repo? | Community
Skip to main content
timlwhite
Level 2
April 6, 2016
Solved

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

  • April 6, 2016
  • 7 replies
  • 8153 views

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-package-maven-plugin-0.0.24.pom
[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:

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 Lokesh_Shivalingaiah

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

7 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
April 7, 2016

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

smacdonald2008
Level 10
April 7, 2016

On the fresh computer - try using the settings.xml example found in this article: 

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

kautuk_sahni
Community Manager
Community Manager
April 7, 2016

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
timlwhite
timlwhiteAuthor
Level 2
April 7, 2016

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!

timlwhite
timlwhiteAuthor
Level 2
April 7, 2016

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

April 25, 2018

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.

May 29, 2019

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)

hpstoerr
Level 2
July 3, 2023

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

hpstoerr
Level 2
October 9, 2023

Did you get this resolved?

 


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