Decrypts a server password in .m2/settings.xml and writes it to a file.
Status: released to Maven Central
Add this to your pom.xml in the <build><plugins> section:
<plugin>
<groupId>com.github.davidmoten</groupId>
<artifactId>decrypt-maven-plugin</artifactId>
<version>VERSION_HERE</version>
<configuration>
<serverId>container</serverId>
<outputFile>${project.build.directory}/pass.txt</outputFile>
</configuration>
</plugin>To call:
mvn decrypt:decrypt