While building existing AEM archetype project throwing an error | Community
Skip to main content
New Participant
November 19, 2017
Solved

While building existing AEM archetype project throwing an error

  • November 19, 2017
  • 20 replies
  • 5202 views

Hi,

I am using AEM 6.1 and  took the aem archetype project from the official website of AEM which is maven-archetype-master . When i am trying to build the project with mvn-clean-install it is throwing the below error

[ERROR] Plugin org.apache.maven.plugins:maven-source-plugin:3.0.1 or one of its

dependencies could not be resolved: Failed to read artifact descriptor for org.a

pache.maven.plugins:maven-source-plugin:jar:3.0.1: Could not transfer artifact o

rg.apache.maven.plugins:maven-source-plugin:pom:3.0.1 from/to central (https://r

epo.maven.apache.org/maven2): proxy.host.net -> [Help 1]

earlier i was using maven 3.5.0 but later changed it to version 3.0.1 but still issue persist.

Could someone please help on the same , i have been trying it from so long but could not resolve it .

Is it because maven is not able to download the plugin from the repository? if yes then how it can be resolved?

any help on this would be really appreciated.

Thanks

Ranjna

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 smacdonald2008

I just tested the above article. I changed to use UBER 6.1 in the POM. It worked:

Deployed to AEM using mvn -PautoInstallPackage install

20 replies

smacdonald2008
New Participant
November 21, 2017

I am very happy you got it working!

ranjnaAuthor
New Participant
November 21, 2017

Hi

Issue got resolved

I used the same version of maven (3.3.9) mentioned by you and then deleted the old repository from .m2 folder and started building again

thank you so much for help

kind regards,

Ranjna

smacdonald2008
New Participant
November 21, 2017

Try setting up Maven again and .m2. Use a new settings. xml file and follow this...

How to set up the Adobe Maven Repository

I think issue is that.

smacdonald2008
New Participant
November 21, 2017

Looks like something is wrong with your settings.xml -

ranjnaAuthor
New Participant
November 21, 2017

ok . ill try with the same version

smacdonald2008
New Participant
November 21, 2017

I am using apache-maven-3.3.9

ranjnaAuthor
New Participant
November 21, 2017

i am sorry , i meant settings.xml

ranjnaAuthor
New Participant
November 21, 2017

Yes, i have placed the same pom.xml mentioned in the article  in .m2 folder

smacdonald2008
New Participant
November 21, 2017

Are  you using the settings.xml that Adobe recommends?

How to set up the Adobe Maven Repository

ranjnaAuthor
New Participant
November 21, 2017

Thanks for sharing the video . I understood the process that after executing the maven command it should prompt for the input values but it is not happening in my case and it shows the below error

Is it because of maven version which i am using(3.0.1)