我们有一个 Maven2项目,里面有很多模块。例如:
<modules>
<module>common</module>
<module>foo</module>
<module>data</module>
<module>bar</module>
... more ...
</module>
假设构建“数据”模块非常耗时,并且我们希望在 CI 服务器构建项目时将其排除在外。目前我们使用两个 pom.xml 文件来实现这一点。一个包含所有的模块,另一个包含所有的模块,除了那些可以留给 CI 的模块。但是这很烦人,因为有时候我们忘记在 both文件中放入一个新模块。
Is there a solution which doesn't need two separate module lists?