有没有办法有条件地运行构建插件扩展。 更具体地说:
<extensions>
<extension>
<groupId>co.leantechniques</groupId>
<artifactId>maven-buildtime-extension</artifactId>
<version>1.0.1</version>
</extension>
</extensions>
显然,您无法在配置文件中为扩展名添加扩展名:
<profiles>
<profile>
<id>someid</id>
<build>
EXTENSION
</build>
</profile>
</profiles>
任何其他好的解决方案?