I have a historyDir defined in my pom.xml, however I have two bamboo plans doing different things. I would like to use a different history point storages for them. I tried adding -Dmaven.clover.historyDir=/some/other/path to the build command but it doesn't work. Am I missing something?
Then answer is - yes, it's possible to override setting from pom.xml.
However, the maven.clover.historyDir shall be declared as a property (with some default value) and referred in the "<configuration><historyDir>" tag.
The following code snippet works:
<properties> <maven.clover.historyDir>/default/dir</maven.clover.historyDir> </properties> <build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <version>3.1.11</version> <configuration> <historyDir>${maven.clover.historyDir}</historyDir> </configuration> </plugin> </plugins> </build>
TIP: you can use help:effective-pom to see how Maven resolves properties.
mvn help:effective-pom mvn -Dmaven.clover.historyDir=/another/dir help:effective-pom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.