Hi All,
trying to set-up AEM instance in local and seen below error, can anyone help here.
maven : Apache Maven 3.9.1
java: "11.0.16.1"
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=40 -D appTitle="Demo" -D appId="demo" -D groupId="com.test.demo" -D aemVersion=6.5.0 -D singleCountry=n
C:\Users\lap\Downloads>mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=40 -D appTitle="Demo" -D appId="demo" -D groupId="com.test.demo" -D aemVersion=6.5.0 -D singleCountry=n
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> archetype:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< archetype:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- archetype:3.2.1:generate (default-cli) @ standalone-pom ---
[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
[INFO] Generating project in Batch mode
[INFO] Archetype repository not defined. Using the one from [com.adobe.aem:aem-project-archetype:41] found in catalog remote
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: aem-project-archetype:40
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.test.demo
[INFO] Parameter: artifactId, Value: demo
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: package, Value: com.test.demo
[INFO] Parameter: packageInPathFormat, Value: com/test/demo
[INFO] Parameter: includeForms, Value: n
[INFO] Parameter: includeFormsenrollment, Value: n
[INFO] Parameter: country, Value: us
[INFO] Parameter: amp, Value: n
[INFO] Parameter: groupId, Value: com.test.demo
[INFO] Parameter: enableDynamicMedia, Value: n
[INFO] Parameter: language, Value: en
[INFO] Parameter: appTitle, Value: Demo
[INFO] Parameter: enableSSR, Value: n
[INFO] Parameter: appId, Value: demo
[INFO] Parameter: artifactId, Value: demo
[INFO] Parameter: includeFormscommunications, Value: n
[INFO] Parameter: singleCountry, Value: n
[INFO] Parameter: includeErrorHandler, Value: n
[INFO] Parameter: datalayer, Value: y
[INFO] Parameter: precompiledScripts, Value: n
[INFO] Parameter: includeDispatcherConfig, Value: y
[INFO] Parameter: sdkFormsVersion, Value: latest
[INFO] Parameter: package, Value: com.test.demo
[INFO] Parameter: includeExamples, Value: n
[INFO] Parameter: commerceEndpoint, Value: https://hostname.com/graphql
[INFO] Parameter: includeFormsheadless, Value: n
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: aemVersion, Value: 6.5.0
[INFO] Parameter: includeCommerce, Value: n
[INFO] Parameter: frontendModule, Value: general
[INFO] Parameter: sdkVersion, Value: latest
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\all\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\core\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\dispatcher.ams\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\dispatcher.cloud\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.frontend.general\pom.xml
[WARNING] Don't override file C:\Users\lap\Downloads\demo\ui.frontend.general\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.frontend.angular\pom.xml
[WARNING] Don't override file C:\Users\lap\Downloads\demo\ui.frontend.angular\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.frontend.react\pom.xml
[WARNING] Don't override file C:\Users\lap\Downloads\demo\ui.frontend.react\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.frontend.react.forms.af\pom.xml
[WARNING] Don't override file C:\Users\lap\Downloads\demo\ui.frontend.react.forms.af\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.apps\pom.xml
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.apps\src\main\content\jcr_root\apps\demo\components\adaptiveForm\image
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.apps\src\main\content\jcr_root\apps\demo\components\image
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.config\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.content\pom.xml
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.content\src\main\content\jcr_root\content\demo\_jcr_content\image
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.content\src\main\content\jcr_root\content\dam\demo\sample_terms.png
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.content\src\main\content\jcr_root\content\dam\demo\sample_logo.png
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.content\src\main\content\jcr_root\content\demo\_jcr_content\image\file
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\it.tests\pom.xml
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.tests\pom.xml
[WARNING] Don't override file C:\Users\lap\Downloads\demo\ui.tests\pom.xml
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\lib
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\lib\util
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\lib\wdio-pixelmatch-service
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\specs
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\specs\aem
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\rules
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\mac os x
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\mac os x\chrome
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\linux
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\linux\firefox
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\linux\chrome
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\mac
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\mac\firefox
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\windows
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\windows\firefox
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\urbane\windows\chrome
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\canvas-3-0
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\canvas-3-0\mac os x
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\canvas-3-0\mac os x\chrome
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\assets\form\themes\canvas-3-0\linux
[WARNING] CP Don't override file C:\Users\lap\Downloads\demo\ui.tests\test-module\README.md
[INFO] Parent element not overwritten in C:\Users\lap\Downloads\demo\ui.apps.structure\pom.xml
[INFO] Executing META-INF/archetype-post-generate.groovy post-generation script
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/lap/.m2/repository/org/codehaus/groovy/groovy-all/2.4.16/groovy-all-2.4.16.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Creating content skeleton...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.512 s
[INFO] Finished at: 2023-05-03T23:56:56+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: java.nio.file.FileSystemException: C:\Users\lap\Downloads\demo\dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client. -> [Help 1]
[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/MojoFailureException
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Ricky99999 ,
Open command prompt as Administrator and run the same command it fixes the above error.
Please refer -
Hi @Ricky99999 ,
Open command prompt as Administrator and run the same command it fixes the above error.
Please refer -
Run your command line tool as administrator, or in mac, use sudo class... it looks like your command line tool is now allowing you to use linux command, cp.
Views
Likes
Replies