The CRX Maven Plugin is responsible for collecting all the resources of a Google Chrome Extension and packaging them into a signed CRX archive.
General instructions on how to use the Maven CRX Plugin can be found on the usage page. Some more specific use cases are described in the examples given below.
To provide you with better understanding on some usages of the Maven CRX Plugin, you can take a look into the following examples:
The lifecycle for a Google Chrome Extension is as follows:
It is recommended that your private key not be included in your project sources and furthermore that it be password protected.
You can specify the location of your private key and the password on you Maven command line setting the crxPEMFile and crxPEMPassword properties as follows:
$ mvn -DcrxPEMFile=~/crx.pem -DcrxPEMPassword=SparkleAndFade install
Or you can add them to your ~/.m2/settings.xml file as follows:
<settings>
...
<profiles>
...
<profile>
<id>crx</id>
<properties>
<crxPEMFile>${user.home}/crx.pem</crxPEMFile>
<crxPEMPassword>SparkleAndFade</crxPEMPassword>
</properties>
</profile>
...
</profiles>
...
</settings>
Also it is possible to password protect your the password.