-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archetype fails to run correctly when -DoptionDispatcherConfig=cloud is used on windows #329
Comments
symlink issue? |
@joerghoh could very well be the case |
I still wonder why we do have symlinks in such a case. It just makes the setup more complicated than it should be. |
hi @reusr1 , yes it looks like a symlink issue. I quickly tested and the command works for me but I have the rights to create symlink. If i remove the right i get the same error. See: With Windows you can add a user to the list of who may create symbolic links (without disabling UAC) using security policies. Run "secpol.msc" and change "Security Settings|Local Policies|User Rights Assignment|Create symbolic links" |
@joerghoh , as for why we have the symlinks, it's because the dispatcher needs them and the origins trace back to how Apache web server configurations are structured. |
@msagolj thank you - also seems to work if you run the project in an admin console - would probably be good to mention this in the README |
@vladbailescu I don't think that the "dispatcher" needs them. The setup with the 2 directories But it's not a requirement enforced by either |
@joerghoh unless something changed since https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/dispatcher/overview.html was last updated, they are needed in the current setup and implementation. Agree that we could get rid of them in the dispatcher but I guess people got used to this structure (hence the reference to |
You can easily set up HTTPD without the enabled vhosts symlink structure. I agree with @joerghoh it just makes things much more complicated. Reenabling and disabling vhosts is anyhow not a real use case without redeployment any longer.... |
It should be noted that this should work fine if the Archetype is run using Windows Subsystem for Linux. (Git commit likely needs to be in this context as well.) |
…is used on windows #329 Documented workaround
Documented the workaround in 6ecbe45, to change the way the dispatcher configuration is structured, a request should be sent to the product team. |
Not that the AEM Eclipse plugin has ever actually worked without major issues (even just doing simple stuff), but I'm guessing this issue is responsible for Eclipse now crashing when trying to create an AEM project of Archetype > 22. |
I got same your issue and I could build success when run cmd with Administrator permission |
I am getting similia exception even after running command prompt as administrator. Below is the Maven AEM arche type command used to create project. |
It worked for me. Thanks |
command run as administor it will work. |
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
The text was updated successfully, but these errors were encountered: