Comments (18)
@davidjgonzalez
Thank you very much! I successfully deployed it after using your advice 1.
from aem-guides-wknd.
Now, I am able to build the project successfully.
from aem-guides-wknd.
Use mvn -PautoInstallPackage -Padobe-public clean install command.
from aem-guides-wknd.
@IlOvOII you have updated your ~/.m2/settings file to include repo.adobe.com?
I am traveling this month so my response may be delayed. @davidjgonzalez might also be able to assist...
from aem-guides-wknd.
@IlOvOII use mvn help:all-profiles -Padobe-public -PautoInstallPackage
to verify that your profile is indeed active under that name - you should see: Profile Id: adobe-public (Active: true , Source: settings.xml)
If not, theres a problem w your settings.xml definition.
You can also try:
-
Set
<activeByDefault>true</activeByDefault>
and<activeProfile>adobe-public</activeProfile>
- this should FORCE that profile to be true no matter what.. you can again validate this by runningmvn help:all-profiles
after making that change. -
Comment our your adobe-public and copy/paste mine in .. i dont see why yours wouldnt work, but nothing is jumping out as the obvious problem either.
from aem-guides-wknd.
Hi @munikmca,
Have you set up a settings.xml file beneath your ~/.m2 directory? In it you need to add the Adobe Public Repos to your settings file. See https://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html for details.
Let me know if this fixes the issue and I will update the tutorial instructions in Part 1.
from aem-guides-wknd.
Hi @godanny86
I have the same problem, but I still can't solve it according to what you said.
from aem-guides-wknd.
Hello @pankajchhatri
Can you solve this problem? I didn't succeed in using your suggested method.
from aem-guides-wknd.
Hello @davidjgonzalez
Yes, I had update setting file.But there's the same problem.
from aem-guides-wknd.
@IlOvOII can you paste the profile from your ~/.m2/settings.xml for the adobe public repo?
Since your failing on resolving a plugin dependency, I assume you've doubled checked that the pluginReposistory configuration?
Mine looks like ...
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<id>adobe-public</id>
<repositories>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
<repository>
<id>central</id>
<url>http://repo1.maven.org/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
from aem-guides-wknd.
settings.xml:
<profile>
<id>adobe-public</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
<releaseRepository-Name>Adobe Public Releases</releaseRepository-Name>
<releaseRepository-URL>http://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
</properties>
<repositories>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Basel Public Repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe-public-releases</id>
<name>Adobe Basel Public Repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
The entire text is below.
settings.txt
The error log is below.
D:\AEMtest\aem-guides-wknd>mvn -PautoInstallPackage clean install
[INFO] Scanning for projects...
[WARNING] The POM for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.apps:[unknown-version], D:\AEMtest\aem-guides-wknd\ui.apps\pom.xml, line 34, column 16
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.content:[unknown-version], D:\AEMtest\aem-guides-wknd\ui.content\pom.xml, line 34, column 16
@
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.adobe.aem.guides:aem-guides-wknd.ui.apps:0.0.1-SNAPSHOT (D:\AEMtest\aem-guides-wknd\ui.apps\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.apps:[unknown-version], D:\AEMtest\aem-guides-wknd\ui.apps\pom.xml, line 34, column 16
[ERROR]
[ERROR] The project com.adobe.aem.guides:aem-guides-wknd.ui.content:0.0.1-SNAPSHOT (D:\AEMtest\aem-guides-wknd\ui.content\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.content:[unknown-version], D:\AEMtest\aem-guides-wknd\ui.content\pom.xml, line 34, column 16
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
from aem-guides-wknd.
I am also getting same issue - I have maven 3.3.9 and my settings.xml is below.
=================settings.xml===========
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
<privateKey>/path/to/private/key</privateKey>
<passphrase>optional; leave empty if not used.</passphrase>
</server>
-->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
<releaseRepository-Name>Adobe Public
Releases</releaseRepository-Name>
<releaseRepository-URL>https://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
</properties>
<repositories>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Basel Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe-public-releases</id>
<name>Adobe Basel Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
from aem-guides-wknd.
Use mvn -PautoInstallPackage -Padobe-public clean install command.
It works but gives another error:
package javax.annotation does not exist
from aem-guides-wknd.
Use mvn -PautoInstallPackage -Padobe-public clean install command.
It works but gives another error:
package javax.annotation does not exist
hi @Mohd-Aamir-M do you mind creating a new issue for this? Please detail the AEM version, Java version, maven version...
from aem-guides-wknd.
Hi @godanny86 ,
Here is my configuration.
JAVA
java 11.0.1 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
MAVEN 3.6.0
I have created a project from this command.
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
Archtype version 13.
from aem-guides-wknd.
Hi @Mohd-Aamir-M , currently the tutorial doesn't support Java 11. We are close to releasing an update. In the mean time, you can downgrade to Java 8 or you can try generating the project using Archetype version 18: https://github.com/adobe/aem-project-archetype/releases/tag/aem-project-archetype-18. Not everything will match exactly but you should still be able to follow the tutorial...
In the future, please create a New Issue...
from aem-guides-wknd.
Hi @Mohd-Aamir-M , currently the tutorial doesn't support Java 11. We are close to releasing an update. In the mean time, you can downgrade to Java 8 or you can try generating the project using Archetype version 18: https://github.com/adobe/aem-project-archetype/releases/tag/aem-project-archetype-18. Not everything will match exactly but you should still be able to follow the tutorial...
In the future, please create a New Issue...
Ok, i am going to try with Java 8. Thanks and i am following this tutorial. https://helpx.adobe.com/experience-manager/using/maven_arch13.html
Correct me please, if I am doing something wrong.
from aem-guides-wknd.
Hi @Mohd-Aamir-M , currently the tutorial doesn't support Java 11. We are close to releasing an update. In the mean time, you can downgrade to Java 8 or you can try generating the project using Archetype version 18: https://github.com/adobe/aem-project-archetype/releases/tag/aem-project-archetype-18. Not everything will match exactly but you should still be able to follow the tutorial...
In the future, please create a New Issue...
Do i have to install AEM seperate or it is installed automatically when i run following command for community version. I am using Mac. Today, when i tried to install the we retail demo it thrown error: connection refused.
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
from aem-guides-wknd.
Related Issues (20)
- Problems since AEM 6.4 updates HOT 3
- Importing Maven project has build errors HOT 1
- Unable to deploy the Card Sling Model HOT 2
- https://repo.adobe.com/nexus/content/groups/public - not working HOT 1
- Google font @import not loaded at the top HOT 2
- error - mvn -PautoInstallPackage clean install HOT 4
- Core quick search implementation with result page Demo? HOT 1
- Add maven-sling-plugin to pom.xml HOT 3
- WKDN.Structure component group not visible HOT 4
- Getting React Error HOT 1
- wknd-sites-clientlibs-chapter-3.zip installed from CRX does not work properly. HOT 2
- Legacy Version of tutorial - Archetype 13
- Bootstrap version 4 HOT 1
- Error while deploying custom AEM component HOT 2
- build failure when running mvn -PautoInstallPackage -Padobe-public clean install HOT 3
- reopening - build failure when running mvn -PautoInstallPackage -Padobe-public clean install HOT 3
- Editable Templates - Text V2 HOT 1
- Build Failure running 'mvn clean install' HOT 5
- In Chapter 7, "slide.less" has an undefined variable: @dark-color HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aem-guides-wknd.