Giter Club home page Giter Club logo

Comments (18)

IlOvOII avatar IlOvOII commented on August 18, 2024 2

@davidjgonzalez
Thank you very much! I successfully deployed it after using your advice 1.

from aem-guides-wknd.

dhulipudi avatar dhulipudi commented on August 18, 2024 2

Now, I am able to build the project successfully.

from aem-guides-wknd.

pankajchhatri avatar pankajchhatri commented on August 18, 2024 1

Use mvn -PautoInstallPackage -Padobe-public clean install command.

from aem-guides-wknd.

godanny86 avatar godanny86 commented on August 18, 2024 1

@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.

davidjgonzalez avatar davidjgonzalez commented on August 18, 2024 1

@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:

  1. 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 running mvn help:all-profiles after making that change.

  2. 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.

godanny86 avatar godanny86 commented on August 18, 2024

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.

IlOvOII avatar IlOvOII commented on August 18, 2024

Hi @godanny86
I have the same problem, but I still can't solve it according to what you said.

from aem-guides-wknd.

IlOvOII avatar IlOvOII commented on August 18, 2024

Hello @pankajchhatri
Can you solve this problem? I didn't succeed in using your suggested method.

from aem-guides-wknd.

IlOvOII avatar IlOvOII commented on August 18, 2024

Hello @davidjgonzalez
Yes, I had update setting file.But there's the same problem.

from aem-guides-wknd.

davidjgonzalez avatar davidjgonzalez commented on August 18, 2024

@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.

IlOvOII avatar IlOvOII commented on August 18, 2024

@davidjgonzalez

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.

dhulipudi avatar dhulipudi commented on August 18, 2024

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>
-->
adobe-public
<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>
adobe-public ====================================

from aem-guides-wknd.

Mohd-Aamir-M avatar Mohd-Aamir-M commented on August 18, 2024

Use mvn -PautoInstallPackage -Padobe-public clean install command.

It works but gives another error:

package javax.annotation does not exist

from aem-guides-wknd.

godanny86 avatar godanny86 commented on August 18, 2024

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.

Mohd-Aamir-M avatar Mohd-Aamir-M commented on August 18, 2024

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.

godanny86 avatar godanny86 commented on August 18, 2024

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.

Mohd-Aamir-M avatar Mohd-Aamir-M commented on August 18, 2024

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.

Mohd-Aamir-M avatar Mohd-Aamir-M commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.