Using the crx packaging type

Given the following project directory structure placing the source artifacts from the sample Hello World project on the Google Chrome Extensions developer web site into the src/main/chrome sub-directory:

+- pom.xml
+- src
|  +- main
|     +- chrome
|        +- manifest.json
|        +- icon.png
|        +- popup.html
|        +- popup.json
+- target
   +- HelloWorld-1.0.0-SNAPSHOT.crx

Create the following pom.xml in the root folder of the project:


Then executing mvn package will produce HelloWorld-1.0.0-SNAPSHOT.crx in the target folder.

mvn -DcrxPEMFile=~/crx.pem -DcrxPEMPassword=SparkleAndFade package