Release Boron
[docs.git] / manuals / readme / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4   <parent>
5     <groupId>org.opendaylight.docs</groupId>
6     <artifactId>manuals</artifactId>
7     <version>0.3.0-Boron</version>
8     <relativePath>../pom.xml</relativePath>
9   </parent>
10   <modelVersion>4.0.0</modelVersion>
11   <artifactId>readme</artifactId>
12   <packaging>jar</packaging>
13   <name>OpenDaylight Docs - Manuals - Readme</name>
14   <properties>
15     <!-- This is set by Jenkins according to the branch. -->
16     <release.path.name>local</release.path.name>
17     <comments.enabled>1</comments.enabled>
18     <bookname>readme</bookname>
19   </properties>
20   <!-- ################################################ -->
21   <!-- USE "mvn clean generate-sources" to run this POM -->
22   <!-- ################################################ -->
23   <build>
24     <plugins>
25       <plugin>
26          <groupId>org.asciidoctor</groupId>
27          <artifactId>asciidoctor-maven-plugin</artifactId>
28          <version>${asciidoctor.version}</version>
29          <executions>
30          <execution>
31             <id>output-docbook</id>
32             <phase>generate-sources</phase>
33             <goals>
34                 <goal>process-asciidoc</goal>
35             </goals>
36             <configuration>
37                 <backend>docbook5</backend>
38                 <doctype>book</doctype>
39             </configuration>
40         </execution>
41         </executions>
42         <configuration>
43            <sourceDirectory>src/main/asciidoc</sourceDirectory>
44            <sourceDocumentName>${bookname}.adoc</sourceDocumentName>
45            <imagesDir>./images</imagesDir>
46         </configuration>
47       </plugin>
48       <plugin>
49         <artifactId>maven-resources-plugin</artifactId>
50         <version>2.6</version>
51         <executions>
52           <execution>
53             <id>copy-resources</id>
54             <phase>generate-resources</phase>
55             <goals>
56               <goal>copy-resources</goal>
57             </goals>
58             <configuration>
59               <outputDirectory>${basedir}/target/generated-docs</outputDirectory>
60               <resources>
61                 <resource>
62                   <directory>src/main/resources</directory>
63                   <includes>
64                     <include>**/*.*</include>
65                   </includes>
66                </resource>
67               </resources>
68             </configuration>
69           </execution>
70         </executions>
71       </plugin>
72       <plugin>
73         <groupId>com.inocybe.api</groupId>
74         <artifactId>sdndocs-maven-plugin</artifactId>
75         <version>0.1.0</version>
76         <executions>
77           <execution>
78             <id>generate-webhelp</id>
79             <goals>
80               <goal>generate-webhelp</goal>
81             </goals>
82             <phase>compile</phase>
83             <configuration>
84               <profileAudience>enduser</profileAudience>
85               <includes>target/generated-docs/${bookname}.xml</includes>
86             <!--  <includes>bk-install-guide.xml</includes> -->
87               <generateToc>
88                 appendix  toc,title
89                 article/appendix  nop
90                 article   toc,title
91                 book      toc,title,figure,table,example,equation
92                 chapter   toc,title
93                 section   toc
94                 part      toc,title
95                 qandadiv  toc
96                 qandaset  toc
97                 reference toc,title
98                 set       toc,title
99               </generateToc>
100               <webhelpDirname>${bookname}</webhelpDirname>
101               <pdfFilenameBase>${bookname}</pdfFilenameBase>
102             </configuration>
103           </execution>
104         </executions>
105         <configuration>
106           <profileAudience>enduser</profileAudience>
107           <chapterAutolabel>1</chapterAutolabel>
108           <sectionAutolabel>0</sectionAutolabel>
109           <tocSectionDepth>1</tocSectionDepth>
110           <formalProcedures>0</formalProcedures>
111           <highlightSource>false</highlightSource>
112           <xincludeSupported>true</xincludeSupported>
113           <showXslMessages>true</showXslMessages>
114           <sourceDirectory>.</sourceDirectory>
115           <feedbackEmail>mlemay@inocybe.com</feedbackEmail>
116           <branding>opendaylight</branding>
117           <coverLogoLeft>2.6in</coverLogoLeft>
118 <!--          <enableDisqus>${comments.enabled}</enableDisqus>
119           <disqusShortname>os-user-guide</disqusShortname>
120           <enableGoogleAnalytics>1</enableGoogleAnalytics>
121           <googleAnalyticsId>UA-17511903-1</googleAnalyticsId>
122     -->   <suppressFooterNavigation>0</suppressFooterNavigation>
123           <canonicalUrlBase>http://docs.opendaylight.org/user-guide/content/</canonicalUrlBase>
124           <glossaryCollection>${basedir}/../glossary/glossary-terms.xml</glossaryCollection>
125         </configuration>
126       </plugin>
127       <plugin>
128        <groupId>org.apache.maven.plugins</groupId>
129        <artifactId>maven-site-plugin</artifactId>
130        <version>3.1</version>
131        <configuration>
132           <inputDirectory>${project.build.directory}/docbkx/webhelp</inputDirectory>
133        </configuration>
134        <dependencies>
135            <dependency>
136                <groupId>org.apache.maven.wagon</groupId>
137                <artifactId>wagon-webdav-jackrabbit</artifactId>
138                <version>2.2</version>
139            </dependency>
140            <dependency>
141                <groupId>org.slf4j</groupId>
142                <artifactId>slf4j-api</artifactId>
143                <version>1.6.1</version>
144            </dependency>
145        </dependencies>
146      </plugin>
147     </plugins>
148   </build>
149 </project>