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
In order to run multiple module project in Azure Dev Spaces, you are now required to perform some additional editing after you run the vscode command Azure Dev Spaces: Prepare configuration files for Azure Dev Spaces
Steps for Spring Boot multiple module project
Your project should look like https://github.com/andxu/samples/tree/andy_azds/spring-boot-test (andy_azds branch contains the original template files generated by azds)
Open your project in vscode, and run the vscode command Azure Dev Spaces: Prepare configuration files for Azure Dev Spaces
At line 13, update the --from=build /usr/src/app/target to the spring boot application project like --from=build /usr/src/app/application/target/gs-multi-module-application-0.0.1-SNAPSHOT.jar
At line 14, update the wrong jar file gs-multi-module-0.0.1-SNAPSHOT.jar to the correct jar like gs-multi-module-application-0.0.1-SNAPSHOT.jar
At last line, update the wrong jar path "target/gs-multi-module-0.0.1-SNAPSHOT.jar" to the correct jar path like "application/target/gs-multi-module-application-0.0.1-SNAPSHOT.jar"
Steps for building jar with dependencies
Your project should look like https://github.com/andxu/samples/blob/andy_azds/multi-module-test (andy_azds branch contains the original template files generated by azds)
Open your project in vscode, and run the vscode command Azure Dev Spaces: Prepare configuration files for Azure Dev Spaces
At line 10, update the build command "mvn", "package" to ./run.sh
At line 13, update the --from=build /usr/src/app/target to the entry project like --from=build /usr/src/app/module2/target/module2-1.0-jar-with-dependencies.jar
At line 14, update the wrong jar file multi-module-test-1.0.jar to the correct jar like module2-1.0-jar-with-dependencies.jar
At line 8, update the build command "mvn", "package" to ./run.sh
At last line, update the wrong jar path "target/multi-module-test-1.0.jar" to the correct jar path like "module2/target/module2-1.0-jar-with-dependencies.jar"
Open the azds.yaml and update the line 31 from - [mvn, package] to - [./run.sh]