This is a small mojo which encrypts a given file, intentionally a JAR or WAR file. The purpose is to mave the archive over a channel that enforces an AV Scan, which prohibits Java/Class/binaries due to their possible harmfulness. If the archive is encrypted the AV scan passes.
<plugin>
<groupId>group.msg</groupId>
<artifactId>archiveEncrypter</artifactId>
<version>1.0</version>
</plugin>
The mojo requires a project to run, then run the mojo by:
$ mvn archiveEncrypter:encrypt
These are the possible configurations, together with their default value.
<configuration>
<filename>${project.artifactId}-${project.version}.war</filename>
<password></password> <!-- Defauts to '0815' -->
</configuration>
“Engineer examines the security requirements”
Viktor Vasnetsov 1878