首页 > 解决方案 > Github actions- Java with maven: mvn verify multiple poms

问题描述

project structure

This is my project structure. The blue folder have their respective poms in their subfolders. My question is, in following maven.yml how can I do mvn verify on all those poms? as I have to provide pom location after mvn verify command.

Note- This whole project structure is under a folder named 'web'. Hence you can see in mvn verify command that pom location is under 'web' folder.

maven.yml

标签: javamavengithubcontinuous-integrationgithub-actions

解决方案


If this is a multi-module project and the subprojects are correctly added as modules in the pom.xml, then your command should work.


推荐阅读