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 8:01 PM UTC

Watch the video located here - it will show you all the steps -- Scott's Digital Community: Creating an AEM HTML Template Language component that uses the WCMUsePojo class

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

The C:\AdobeCQ is only a example windows based path i use when creating Maven Projects-  you can use what ever path you want.

FOr Maven 10 -- use this command:

mvn archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=10 -DarchetypeRepository=https://repo.adobe.com/nexus/content/groups/public/

Then fill in the input values as you see in the article --

Adobe Experience Manager Help | Creating your first Adobe Experience Manager 6.2 Project using Adobe Maven Archetype 10

This will build a project from scratch that you can them import into AEM using this command

mvn -PautoInstallPackage -install

You see that too in the article

FOllow all the steps and you will get the example project into AEM.

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 7:52 PM UTC

Yes i am doing it in my local system not on any environment and

i just had few questions

Is this the build from scratch?

do i need to follow the same folder structure ?

Do i need a pom.xml in the blank folder to build the archetype?

is this the correct way to use the command when opening a cmd

C:\AdobeCQ>mvn archetype:generate -DarchetypeGroupId=com.adobe.granite.archetype

s -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=10 -DarchetypeR

epository=https://repo.adobe.com/nexus/content/groups/public/ -DgroupId=AEM62App

-DartifactId=echo62 -Dversion=1.0-SNAPSHOT -Dpackage=com.aem.community -DappsFo

lderName=AEM62App -DartifactName=AEM62App -DcomponentGroupName=AEM62 -DcontentFo

lderName=AEM62App -DcssId=AEM62CSS -DpackageGroup=AEM62App -DsiteName=AEM62App

Translate
smacdonald2008
Level 10
Nov 21, 2017 7:30 PM UTC

Try following the artilce i listed above. I just tested yesterday and it worked perfectly. Also - if you have another computer try that too. Make sure its not your environment.

Translate
ranjnaAuthor
Level 2
Nov 21, 2017 7:27 PM UTC

Hi

i took the package from github repository and based on your comment changed the Uber jar 6.1 but still the build is getting failure . now i am facing the below error

Translate
joerghoh
Employee
Nov 20, 2017 9:17 PM UTC

In your error message I see the string "proxy.host.net" ... which makes me think that you have configured a proxy, which is likely non existent.

Please validate your maven setup not to use any proxy or configure the correct proxy.

Jörg

Translate
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

Translate
smacdonald2008
Level 10
Nov 20, 2017 6:56 PM UTC

Try following this for AEM 6.1. Change the UBER JAR to 6.1 in the POM

Adobe Experience Manager Help | Creating your first Adobe Experience Manager 6.2 Project using Adobe Maven Archetype 10

This works

Translate
ranjnaAuthor
Level 2
Nov 20, 2017 6:29 PM UTC

Hi,

GitHub - Adobe-Marketing-Cloud/aem-project-archetype: Maven template to create a new AEM project as starting point to de

This is the URL from where i downloaded the prject and tried to buld it.

Translate
Ratna_Kumar
Level 10
Nov 20, 2017 6:05 AM UTC

Hi Ranjna,

Could you tell us from where you downloaded that project, so that we could also test the same.

Thanks,

Ratna.

Translate