PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/protocols/asn/docs/jdocbook-mobicents/pom.xml

http://mobicents.googlecode.com/
XML | 142 lines | 128 code | 10 blank | 4 comment | 0 complexity | 226d0928a420e39f7b432efe67682c7d MD5 | raw file
  1
  2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3
  4	<parent>
  5		<artifactId>mobicents-asn-docs</artifactId>
  6		<groupId>org.mobicents.protocols.asn.docs</groupId>
  7		<version>2.0.0-SNAPSHOT</version>
  8	</parent>
  9
 10	<artifactId>mobicents-asn-docs-jdocbook-mobicents</artifactId>
 11
 12	<modelVersion>4.0.0</modelVersion>
 13	<name>Mobicents :: ASN :: Docs :: Build :: ${pom.artifactId}</name>
 14	<packaging>jdocbook</packaging>
 15
 16
 17	<profiles>
 18		<profile>
 19			<id>release</id>
 20			<build>
 21				<plugins>
 22					<plugin>
 23						<artifactId>maven-antrun-plugin</artifactId>
 24						<inherited>false</inherited>
 25						<executions>
 26							<execution>
 27								<phase>deploy</phase>
 28								<goals>
 29									<goal>run</goal>
 30								</goals>
 31								<configuration>
 32									<tasks>
 33										<!-- copy docs -->
 34										<copy overwrite="true" todir="${basedir}/../../release/${release.name}/docs">
 35											<fileset dir="${basedir}/target/docbook/publish" />
 36										</copy>
 37									</tasks>
 38								</configuration>
 39							</execution>
 40						</executions>
 41					</plugin>
 42				</plugins>
 43			</build>
 44		</profile>
 45	</profiles>
 46
 47
 48	<build>
 49		<plugins>
 50			<plugin>
 51				<groupId>org.apache.maven.plugins</groupId>
 52				<artifactId>maven-dependency-plugin</artifactId>
 53				<executions>
 54					<execution>
 55						<id>unpack</id>
 56						<phase>generate-resources</phase>
 57						<goals>
 58							<goal>unpack</goal>
 59						</goals>
 60						<configuration>
 61							<artifactItems>
 62								<artifactItem>
 63									<groupId>${pom.groupId}</groupId>
 64									<artifactId>mobicents-asn-docs-sources-mobicents</artifactId>
 65									<version>${pom.version}</version>
 66									<type>jar</type>
 67									<overWrite>true</overWrite>
 68									<outputDirectory>${project.build.directory}/docbook/resources</outputDirectory>
 69								</artifactItem>
 70							</artifactItems>
 71						</configuration>
 72					</execution>
 73				</executions>
 74			</plugin>
 75			<plugin>
 76				<groupId>org.jboss.maven.plugins</groupId>
 77				<artifactId>maven-jdocbook-plugin</artifactId>
 78				<version>2.3.0</version>
 79				<extensions>true</extensions>
 80				<dependencies>
 81					<dependency>
 82						<groupId>org.jboss</groupId>
 83						<artifactId>jbossorg-docbook-xslt</artifactId>
 84						<version>1.1.0</version>
 85					</dependency>
 86					<dependency>
 87						<groupId>org.jboss</groupId>
 88						<artifactId>jbossorg-jdocbook-style</artifactId>
 89						<version>1.1.0</version>
 90						<type>jdocbook-style</type>
 91					</dependency>
 92					<dependency>
 93						<groupId>xml-resolver</groupId>
 94						<artifactId>xml-resolver</artifactId>
 95						<version>1.1</version>
 96					</dependency>
 97					<dependency>
 98						<groupId>saxon</groupId>
 99						<artifactId>saxon</artifactId>
100						<version>6.5.3</version>
101					</dependency>
102				</dependencies>
103				<configuration>
104					<sourceDocumentName>SS7_Stack_User_Guide.xml</sourceDocumentName>
105					<sourceDirectory>${project.build.directory}/docbook/resources</sourceDirectory>
106					<imageResource>
107						<directory>${project.build.directory}/docbook/resources/en-US</directory>
108						<includes>
109							<include>images/*</include>
110						</includes>
111					</imageResource>
112					<formats>
113						<format>
114							<formatName>pdf</formatName>
115							<stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
116							<finalName>Mobicents_${docs.bookid}_User_Guide.pdf</finalName>
117						</format>
118						<format>
119							<formatName>html</formatName>
120							<stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
121							<finalName>index.html</finalName>
122						</format>
123
124						<format>
125							<formatName>html_single</formatName>
126							<stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
127							<finalName>index.html</finalName>
128						</format>
129					</formats>
130					<options>
131						<xincludeSupported>true</xincludeSupported>
132						<!-- needed for uri-resolvers; can be ommitted if using 'current' uri 
133							scheme -->
134						<!-- could also locate the docbook dependency and inspect its version... -->
135						<docbookVersion>1.72.0</docbookVersion>
136					</options>
137				</configuration>
138			</plugin>
139		</plugins>
140	</build>
141
142</project>