You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
## Appsody does not mount the Maven cache to the Appsody application container
322
-
If you work with Windows Enterprise, such as Azure ID, and use any of the Java Appsody stacks, such as `java-microprofile` or `java-spring-boot2`, Appsody does not mount the Maven cache to the Appsody application container.
321
+
## Appsody mount errors on Windows Enterprise
322
+
If you use Windows Enterprise and authenticate through Azure Active Directory (AAD), you might see mount errors when you use any of the Java Appsody stacks, such as `java-microprofile` or `java-spring-boot2`. Appsody does not mount the Maven cache to the Appsody application container.
323
323
324
-
If you don't set the `MAVEN_OPTS` environment variable, you might receive an error message in the `appsody.log` file when you try to create an Appsody project:
324
+
You might receive an error message in the `appsody.log` file when you try to create an Appsody project:
325
325
```
326
326
[Container] docker: Error response from daemon: error while creating mount source path '/C/Users/<user name>/.m2/repository': mkdir /C/Users/<user name>/.m2: permission denied.
327
327
```
328
328
329
329
**Workaround:** Configure the Maven `.m2` cache to be outside of your home directory.
330
330
1. If you log in to your Windows machine as an Azure user, and you want to create Appsody applications, set the global `MAVEN_OPTS` environment variable before you start Eclipse or VS Code.
2. Configure the IDE to use the custom `.m2` cache location.
333
-
3. (Optional:) If you want Codewind and Eclipse to use the same repository, in Eclipse, go to **Preferences**>**Maven**>**User Settings** and update the **localRepository** field in the `settings.xml` file. In VS Code, locate the Maven `settings.xml` file and edit it manually.
332
+
2. Codewind and Eclipse can use the same repository.
333
+
- In Eclipse, go to **Preferences**>**Maven**>**User Settings** and update the **localRepository** field in the `settings.xml` file.
334
+
- If you use VS Code, locate the Maven `settings.xml` file on your computer and update the **localRepository** field manually.
0 commit comments