How to list active sub-modules in a Maven project?

前端 未结 8 1293
长发绾君心
长发绾君心 2020-12-24 13:26

I have a complex project where there are many directories that have POM files, but only some of which are sub-modules (possibly transitively) of a particular parent project.

8条回答
  •  梦谈多话
    2020-12-24 13:58

    This is the command I use for listing all pom.xml files inside a project at the root of the project.

    find -name pom.xml | grep -v target | sort

    What the command do :

    find -name pom.xml what I search

    grep -v target avoid to list pom.xml inside target/ directory

    sort list the result in alphabetical order

提交回复
热议问题