question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

archetype fails to run correctly when -DoptionDispatcherConfig=cloud is used on windows

See original GitHub issue

Expected 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:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
joerghohcommented, Jan 22, 2020

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

2reactions
joerghohcommented, Jan 22, 2020

@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 directory enabled_vhosts (here you have lots of symlinks adressing files in available_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 the enabled_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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found