Move Javadoc publishing to separate profile, see comments for usage
diff --git a/pom.xml b/pom.xml
index daf4396..d4bbbdf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,6 +113,21 @@
               </execution>
             </executions>
           </plugin>
+        </plugins>
+      </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>
@@ -120,7 +135,7 @@
             <configuration>
               <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
               <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment>
-              <content>${project.build.directory}/apidocs</content>
+              <content>${project.build.directory}/site/apidocs</content>
               <skipDeletedFiles>true</skipDeletedFiles>
               <pubScmUrl>scm:git:https://github.com/01org/jndn-management.git</pubScmUrl>
               <scmBranch>gh-pages</scmBranch>