Merge "Add warning about RtD not cleaning up between runs" into stable/boron
[docs.git] / manuals / user-guide / pom.xml
index 75a1cad8bfcbc5e448af637fdac3439d07514564..92da12c34cfb3a4a54cecbb2e10b65486a6ce512 100644 (file)
@@ -2,41 +2,88 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <parent>
-    <groupId>org.opendaylight.documentation</groupId>
+    <groupId>org.opendaylight.docs</groupId>
     <artifactId>manuals</artifactId>
-    <version>0.1.0-SNAPSHOT</version>
+    <version>0.3.1-SNAPSHOT</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>userguide</artifactId>
   <packaging>jar</packaging>
-  <name>OpenDaylight User Guide</name>
+  <name>OpenDaylight Docs - Manuals - User Guide</name>
   <properties>
     <!-- This is set by Jenkins according to the branch. -->
     <release.path.name>local</release.path.name>
     <comments.enabled>1</comments.enabled>
+    <bookname>bk-user-guide</bookname>
   </properties>
   <!-- ################################################ -->
   <!-- USE "mvn clean generate-sources" to run this POM -->
   <!-- ################################################ -->
   <build>
     <plugins>
+      <plugin>
+         <groupId>org.asciidoctor</groupId>
+         <artifactId>asciidoctor-maven-plugin</artifactId>
+         <version>${asciidoctor.version}</version>
+         <executions>
+         <execution>
+            <id>output-docbook</id>
+            <phase>generate-sources</phase>
+            <goals>
+                <goal>process-asciidoc</goal>
+            </goals>
+            <configuration>
+                <backend>docbook5</backend>
+                <doctype>book</doctype>
+            </configuration>
+        </execution>
+        </executions>
+        <configuration>
+           <sourceDirectory>src/main/asciidoc</sourceDirectory>
+           <sourceDocumentName>${bookname}.adoc</sourceDocumentName>
+           <imagesDir>./images</imagesDir>
+        </configuration> 
+      </plugin>
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.6</version>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${basedir}/target/generated-docs</outputDirectory>
+              <resources>          
+                <resource>
+                  <directory>src/main/resources</directory>
+                  <includes>
+                    <include>**/*.*</include>
+                  </includes> 
+               </resource>
+              </resources>              
+            </configuration>            
+          </execution>
+        </executions>
+      </plugin> 
       <plugin>
         <groupId>com.inocybe.api</groupId>
         <artifactId>sdndocs-maven-plugin</artifactId>
-        <version>0.1.0-SNAPSHOT</version>
-<!-- version is set in ../pom.xml file -->
+        <version>0.1.0</version>
         <executions>
-          <!-- Configuration for OpenStack End User Guide -->
           <execution>
             <id>generate-webhelp</id>
             <goals>
               <goal>generate-webhelp</goal>
             </goals>
-            <phase>generate-sources</phase>
+            <phase>compile</phase>
             <configuration>
               <profileAudience>enduser</profileAudience>
-              <includes>bk-user-guide.xml</includes>
+              <includes>target/generated-docs/${bookname}.xml</includes>
+            <!--  <includes>bk-install-guide.xml</includes> -->
               <generateToc>
                 appendix  toc,title
                 article/appendix  nop
@@ -50,8 +97,8 @@
                 reference toc,title
                 set       toc,title
               </generateToc>
-              <webhelpDirname>user-guide</webhelpDirname>
-              <pdfFilenameBase>user-guide</pdfFilenameBase>
+              <webhelpDirname>${bookname}</webhelpDirname>
+              <pdfFilenameBase>${bookname}</pdfFilenameBase>
             </configuration>
           </execution>
         </executions>
           <disqusShortname>os-user-guide</disqusShortname>
           <enableGoogleAnalytics>1</enableGoogleAnalytics>
           <googleAnalyticsId>UA-17511903-1</googleAnalyticsId>
-    -->      <suppressFooterNavigation>0</suppressFooterNavigation>
+    -->   <suppressFooterNavigation>0</suppressFooterNavigation>
           <canonicalUrlBase>http://docs.opendaylight.org/user-guide/content/</canonicalUrlBase>
           <glossaryCollection>${basedir}/../glossary/glossary-terms.xml</glossaryCollection>
         </configuration>
       </plugin>
+      <plugin>
+       <groupId>org.apache.maven.plugins</groupId>
+       <artifactId>maven-site-plugin</artifactId>
+       <version>3.1</version>
+       <configuration>
+          <inputDirectory>${project.build.directory}/docbkx/webhelp</inputDirectory>
+       </configuration>
+       <dependencies>
+           <dependency>
+               <groupId>org.apache.maven.wagon</groupId>
+               <artifactId>wagon-webdav-jackrabbit</artifactId>
+               <version>2.2</version>
+           </dependency>
+           <dependency>
+               <groupId>org.slf4j</groupId>
+               <artifactId>slf4j-api</artifactId>
+               <version>1.6.1</version>
+           </dependency>
+       </dependencies>
+     </plugin>
     </plugins>
   </build>
 </project>