Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set generateBackupPoms To False In Pom

Tags:

maven

All our builds add the parameter ''-DgenerateBackupPoms=false'' to the command line while releasing, which I think is kind of stupid and I want to add it to the shared parent pom.xml. But I can't figure out which plug-in it is that generates the backup poms.

I searched the Maven Release Plugin, but no luck.

Then I tried the ''versions-maven-plugin'' (that at least has the parameter), but changing it to false does not help:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>versions-maven-plugin</artifactId>
    <version>2.1</version>
    <configuration>
        <generateBackupPoms>false</generateBackupPoms>
    </configuration>
</plugin>

The backup poms are still generated. So how do I turn them off?

like image 279
Steffi S. Avatar asked Nov 21 '22 10:11

Steffi S.


1 Answers

Simply add it to the properties of pom.xml:

<project>
    <properties>
        <generateBackupPoms>false</generateBackupPoms>
    </properties>
</project>
like image 111
uvsmtid Avatar answered Nov 23 '22 23:11

uvsmtid