Add Javadoc publishing
diff --git a/pom.xml b/pom.xml
index 1348585..69c2ebe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,7 +133,35 @@
</executions>
</plugin>
</plugins>
- </build>
+ </build>
+ </profile>
+
+ <!-- run `mvn clean javadoc:javadoc scm-publish:publish-scm -P docs` to push
+ Javadoc to Github -->
+ <profile>
+ <id>docs</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.10.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
+ <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment>
+ <content>${project.build.directory}/site/apidocs</content>
+ <skipDeletedFiles>true</skipDeletedFiles>
+ <pubScmUrl>scm:git:https://github.com/01org/jndn-utils.git</pubScmUrl>
+ <scmBranch>gh-pages</scmBranch>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</profile>
</profiles>
</project>
\ No newline at end of file