While building existing AEM archetype project throwing an error | Community
Skip to main content
Level 2
Nov 19, 2017 4:40 PM UTC
Solved

While building existing AEM archetype project throwing an error

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.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 20, 2017 7:51 PM UTC

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
Level 10
Nov 21, 2017 9:18 PM UTC

I am very happy you got it working!

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 9:09 PM UTC

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

Translate
smacdonald2008
Level 10
Nov 21, 2017 8:56 PM UTC

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.

Translate
smacdonald2008
Level 10
Nov 21, 2017 8:51 PM UTC

Looks like something is wrong with your settings.xml -

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 8:50 PM UTC

ok . ill try with the same version

Translate
smacdonald2008
Level 10
Nov 21, 2017 8:48 PM UTC

I am using apache-maven-3.3.9

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 8:42 PM UTC

i am sorry , i meant settings.xml

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 8:42 PM UTC

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

Translate
smacdonald2008
Level 10
Nov 21, 2017 8:36 PM UTC

Are  you using the settings.xml that Adobe recommends?

How to set up the Adobe Maven Repository

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 8:29 PM UTC

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)

Translate