Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 6ba6f52

Browse files
committed
Adding section about Appsody and Maven
Signed-off-by: Sarah Ishida <sishida@us.ibm.com>
1 parent 0d345da commit 6ba6f52

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/_documentations/troubleshooting.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,21 @@ If you work with Appsody projects in Codewind for VS Code, you might receive mes
312312
1. Right-click the project and select **Restart in Debug Mode**. You might receive an error message that states, `Failed to attach to remote debuggee VM` or `Failed to attach debugger`.
313313
2. Right-click on the project and select `Attach Debugger`.
314314

315+
<!--
316+
Action/Topic: Appsody with Codewind
317+
Issue type: bug/info
318+
Issue link: https://github.com/eclipse/codewind-docs/issues/92
319+
18.10:
320+
-->
321+
## 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.
323+
324+
**Workaround:** Configure the Maven `.m2` cache to be outside of your home directory.
325+
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.
326+
- Example: `MAVEN_OPTS=-Dmaven.repo.local=C:\somefolder\.m2\repository`
327+
2. Configure the IDE to use the custom `.m2` cache location.
328+
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.
329+
315330
<!--
316331
Action/Topic: Appsody with Codewind
317332
Issue type: bug/info

0 commit comments

Comments
 (0)