archetype fails to run correctly when -DoptionDispatcherConfig=cloud is used on windows
See original GitHub issueExpected Behaviour
archetype is able to create project with cloud ready dispatcher configuration
Actual Behaviour
fails to create the project
Reproduce Scenario (including but not limited to)
on a windows machine with the adobe corp maven repository configured run
mvn archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=22 -DoptionDispatcherConfig=cloud
note: same command works on linux
Platform and Version
windows 10, java8, apache maven 3.5
Logs taken while reproducing problem
[INFO] Parent element not overwritten in D:\aem\sdk\com.headwire.site.hw\it.tests\pom.xml
[INFO] Parent element not overwritten in D:\aem\sdk\com.headwire.site.hw\it.launcher\pom.xml
[INFO] Parent element not overwritten in D:\aem\sdk\com.headwire.site.hw\repository-structure\pom.xml
[INFO] Executing META-INF/archetype-post-generate.groovy post-generation script
Creating content skeleton...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.007 s
[INFO] Finished at: 2020-01-22T06:19:06-08:00
[INFO] Final Memory: 23M/311M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: java.nio.file.FileSystemException: D:\aem\sdk\com.headwire.site.hw\dispatcher\src\conf.d\enabled_vhosts\default.vhost: A required privilege is not held by the client.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Why does not archetype:generate with parameters work for me?
If you are using a Windows shell you need to put quotes around the arguments like this: mvn archetype:generate "-DarchetypeGroupId=org.codehaus.mojo" ...
Read more >Guide to Creating Archetypes - Apache Maven
It lists all the files that will be contained in the archetype and categorizes them so they can be processed correctly by the...
Read more >Does the pom.xml file need to already exist? Maven seems to ...
When running: mvn archetype:generate -B -DgroupId=com.teamtreehou... ... Do I need to already have a pom.xml to use Maven?
Read more >Could not resolve archetype when creating a Maven Project
b) Go to Window > Preferences > MyEclipse > Maven4MyEclipse > User Settings. Make sure the User Settings points to the correct path...
Read more >AEM Project Archetype | Adobe Experience Manager
Name Default Description
artifactId $ Base Maven artifact ID (e.g. "mysite" ).
package $ Java Source Package (e.g. "com.mysite" ).
version 1.0‑SNAPSHOT Project version (e.g. 1.0‑SNAPSHOT...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I still wonder why we do have symlinks in such a case. It just makes the setup more complicated than it should be. (For example I don’t get why there is a directory “enabled_vhosts”. Every vhost present in the config should be active, if you want to remove one, just remove it from the config. Git handles everything else.)
@vladbailescu I don’t think that the “dispatcher” needs them. The setup with the 2 directories
available_vhosts
with all configurations in there and and a separate directoryenabled_vhosts
(here you have lots of symlinks adressing files inavailable_vhosts
) is dating back to times when config files were not versioned, and where enabling and disabling can be done quickly. And the files in theenabled_vhosts
are only included from a different httpd configuration file.But it’s not a requirement enforced by either
httpd
or the dispatcher. You can include basically any directory you like.