我有一个类似这样的目录结构:
- 根据
- 子目录1
- 子目录2
- 子目录3
- 子目录1
- 子目录2
- 子目录4
- 单元测试
如何设置我的 pom.xml 以便它只处理粗体文件夹?如果可能的话,我希望它们都在一次mvn sonar:sonar
调用中得到处理,并在 Sonar 中显示为单独的项目。我尝试查看项目对象模型的文档,但我发现它过于庞大,并且无法弄清楚如何按照我的描述进行设置。这就是我位于 base 中的 pom.xml 目前的样子:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.foo.bar.baz</groupId>
<artifactId>subsubdir2</artifactId>
<name>MyProject</name>
<version>1.0</version>
<build>
<sourceDirectory>subdir3/subsubdir2</sourceDirectory>
<testSourceDirectory>unittests</testSourceDirectory>
</build>
<properties>
<sonar.language>php</sonar.language>
<sonar.phase>generate-sources</sonar.phase>
</properties>
</project>