| <?xml version="1.0"?> |
| <!-- |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>odf-doc</artifactId> |
| <packaging>war</packaging> |
| <dependencies> |
| <dependency> |
| <groupId>javax.ws.rs</groupId> |
| <artifactId>jsr311-api</artifactId> |
| <version>1.1.1</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-api</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <scope>compile</scope> |
| </dependency> |
| <!-- The following dependencies are required by Spark Discovery Services only and are provided by the Spark cluster --> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_2.11</artifactId> |
| <version>2.1.0</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-sql_2.11</artifactId> |
| <version>2.1.0</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.6</version> |
| <configuration> |
| <webResources> |
| <resource> |
| <directory>${project.build.directory}/site</directory> |
| <targetPath>/doc</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.10.3</version> |
| <configuration> |
| <sourcepath>${basedir}/../odf-api/src/main/java</sourcepath> |
| <outputDirectory>${project.build.directory}/doc</outputDirectory> |
| <excludePackageNames>org.apache.atlas.odf.core.metadata.atlas:org.apache.atlas.odf.core.metadata.importer:org.apache.atlas.odf.core.metadata.internal:org.apache.atlas.odf.json</excludePackageNames> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-javadocs</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>javadoc</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.3</version> |
| <configuration> |
| <port>9000</port> |
| <tempWebappDirectory>${basedir}/target/site/tempdir</tempWebappDirectory> |
| <generateProjectInfo>false</generateProjectInfo> |
| <generateReports>false</generateReports> |
| <inputEncoding>UTF-8</inputEncoding> |
| <outputEncoding>UTF-8</outputEncoding> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-html</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>site</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.doxia</groupId> |
| <artifactId>doxia-module-markdown</artifactId> |
| <version>1.3</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <!-- this section compiles the tutorial project to check if the code is valid. |
| --> |
| <!-- |
| <plugin> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <version>2.0.0</version> |
| <configuration> |
| <projectsDirectory>src/site/resources/tutorial-projects</projectsDirectory> |
| <cloneProjectsTo>${project.build.directory}/tutorial-projects-build</cloneProjectsTo> |
| </configuration> |
| <executions> |
| <execution> |
| <id>compile-tutorial-projects</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| --> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <!-- Turn off additional checks for maven-javadoc-plugin that will cause build errors when using Java 8 --> |
| <!-- See http://stackoverflow.com/questions/22528767/how-to-work-around-the-stricter-java-8-javadoc-when-using-maven --> |
| <id>disable-java8-doclint</id> |
| <activation> |
| <jdk>[1.8,)</jdk> |
| </activation> |
| <properties> |
| <additionalparam>-Xdoclint:none</additionalparam> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |