Skip to content

Instantly share code, notes, and snippets.

@bmatthews68
Created July 27, 2012 03:22
Show Gist options
  • Select an option

  • Save bmatthews68/3186011 to your computer and use it in GitHub Desktop.

Select an option

Save bmatthews68/3186011 to your computer and use it in GitHub Desktop.
CRX Maven Plugin
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin
$ mvn -DcrxPEMFile=<path> [-DcrxPEMPassword=<password>] <goals>
where:
<path> is the location of the .pem file, e.g. ~/crx.pem
<password> is the password used to secure the .pem file, e.g. SparkleAndFade
<goals> are the Maven goals being executed, e.g. install
<project>
<groupId>com.btmatthews.crx</groupId>
<artifactId>HelloWorld</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>crx</packaging>
<build>
<plugins>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
<project>
<build>
<plugins>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<crxPEMFile>${user.home}/crx.pem</crxPEMFile>
<crxPEMPassword>SparkleAndFade</crxPEMPassword>
</configuration>
</plugin>
</plugins>
</build>
</project>
<project>
<groupId>com.btmatthews.crx</groupId>
<artifactId>HelloWord</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin>
</plugins>
</build>
</project>
<settings>
<profiles>
<profile>
<id>crx</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<crxPEMFile>${user.home}/crx.pem</crxPEMFile>
<crxPEMPassword>SparkleAndFade</crxPEMPassword>
</properties>
</profile>
</profiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment