Repository: nifi Updated Branches: refs/heads/NIFI-725-master [created] af87b52b8
NIFI-725 building site assembly Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/cfa37fbf Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/cfa37fbf Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/cfa37fbf Branch: refs/heads/NIFI-725-master Commit: cfa37fbf55531303730a350b64f1d74d3e87252b Parents: a264c49 Author: danbress <[email protected]> Authored: Mon Aug 17 21:23:07 2015 -0400 Committer: danbress <[email protected]> Committed: Mon Aug 17 21:23:07 2015 -0400 ---------------------------------------------------------------------- nifi-assembly/pom.xml | 57 ++++++++++++++++++++ .../src/main/assembly/dependencies.xml | 1 + nifi-assembly/src/main/assembly/site.xml | 57 ++++++++++++++++++++ 3 files changed, 115 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/cfa37fbf/nifi-assembly/pom.xml ---------------------------------------------------------------------- diff --git a/nifi-assembly/pom.xml b/nifi-assembly/pom.xml index 1f15227..b895483 100644 --- a/nifi-assembly/pom.xml +++ b/nifi-assembly/pom.xml @@ -46,8 +46,58 @@ language governing permissions and limitations under the License. --> <tarLongFileMode>posix</tarLongFileMode> </configuration> </execution> + <execution> + <id>make site</id> + <goals> + <goal>single</goal> + </goals> + <phase>package</phase> + <configuration> + <archiverConfig> + <defaultDirectoryMode>0775</defaultDirectoryMode> + <directoryMode>0775</directoryMode> + <fileMode>0664</fileMode> + </archiverConfig> + <descriptors> + <descriptor>src/main/assembly/site.xml</descriptor> + </descriptors> + <tarLongFileMode>posix</tarLongFileMode> + </configuration> + </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>generate-resources</phase> + <goals> + <goal>unpack-dependencies</goal> + </goals> + <configuration> + <includeArtifactIds>nifi-web-api</includeArtifactIds> + <includes>**/*.*</includes> + <outputDirectory>${project.build.directory}/nifi-web-api</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.nifi</groupId> + <artifactId>nifi-documentation-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <executions> + <execution> + <id>extract</id> + <goals> + <goal>extract</goal> + </goals> + <phase>process-classes</phase> + </execution> + </executions> + </plugin> </plugins> </build> <dependencies> @@ -217,6 +267,13 @@ language governing permissions and limitations under the License. --> <artifactId>nifi-ambari-nar</artifactId> <type>nar</type> </dependency> + <dependency> + <groupId>org.apache.nifi</groupId> + <artifactId>nifi-web-api</artifactId> + <version>0.3.0-SNAPSHOT</version> + <type>war</type> + <scope>compile</scope> + </dependency> </dependencies> <properties> http://git-wip-us.apache.org/repos/asf/nifi/blob/cfa37fbf/nifi-assembly/src/main/assembly/dependencies.xml ---------------------------------------------------------------------- diff --git a/nifi-assembly/src/main/assembly/dependencies.xml b/nifi-assembly/src/main/assembly/dependencies.xml index 0e5362c..7acd0bc 100644 --- a/nifi-assembly/src/main/assembly/dependencies.xml +++ b/nifi-assembly/src/main/assembly/dependencies.xml @@ -36,6 +36,7 @@ <exclude>nifi-bootstrap</exclude> <exclude>nifi-resources</exclude> <exclude>nifi-docs</exclude> + <exclude>nifi-web-api</exclude> </excludes> </dependencySet> http://git-wip-us.apache.org/repos/asf/nifi/blob/cfa37fbf/nifi-assembly/src/main/assembly/site.xml ---------------------------------------------------------------------- diff --git a/nifi-assembly/src/main/assembly/site.xml b/nifi-assembly/src/main/assembly/site.xml new file mode 100644 index 0000000..9b87ed6 --- /dev/null +++ b/nifi-assembly/src/main/assembly/site.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor + license agreements. See the NOTICE file distributed with this work for additional + information regarding copyright ownership. The ASF licenses this file to + You 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. --> +<assembly> + <id>site</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>true</includeBaseDirectory> + <baseDirectory>nifi-docs</baseDirectory> + + <dependencySets> + <!-- Writes out the docs directory contents --> + <dependencySet> + <scope>runtime</scope> + <useProjectArtifact>false</useProjectArtifact> + <outputDirectory>./</outputDirectory> + <useTransitiveFiltering>true</useTransitiveFiltering> + <includes> + <include>nifi-docs</include> + </includes> + <unpack>true</unpack> + <unpackOptions> + <filtered>false</filtered> + <excludes> + <!-- LICENSE and NOTICE both covered by top-level --> + <exclude>LICENSE</exclude> + <exclude>NOTICE</exclude> + </excludes> + </unpackOptions> + </dependencySet> + </dependencySets> + <fileSets> + <fileSet> + <directory>./target/docs/</directory> + <outputDirectory>components</outputDirectory> + <includes> + <include>**/*.*</include> + </includes> + </fileSet> + <fileSet> + <directory>./target/nifi-web-api/docs/</directory> + <outputDirectory>./</outputDirectory> + <includes> + <include>**/*.*</include> + </includes> + </fileSet> + </fileSets> +</assembly>
