Added service definitions to the assembly KNOX-481
Project: http://git-wip-us.apache.org/repos/asf/knox/repo Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/106279da Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/106279da Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/106279da Branch: refs/heads/KNOX-481 Commit: 106279daa5aa6b924eb8fb0024ebe322d0a1d1c5 Parents: 4dc51e6 Author: Sumit Gupta <su...@apache.org> Authored: Tue Jan 27 12:32:25 2015 -0500 Committer: Sumit Gupta <su...@apache.org> Committed: Wed Feb 11 15:25:55 2015 -0500 ---------------------------------------------------------------------- gateway-release/pom.xml | 31 +++++++++++++++++++++++++++++++ gateway-release/src/assembly.xml | 7 +++++++ 2 files changed, 38 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/knox/blob/106279da/gateway-release/pom.xml ---------------------------------------------------------------------- diff --git a/gateway-release/pom.xml b/gateway-release/pom.xml index 744242b..0ea7a81 100644 --- a/gateway-release/pom.xml +++ b/gateway-release/pom.xml @@ -37,6 +37,7 @@ </license> </licenses> + <profiles> <profile> <id>release</id> @@ -94,6 +95,36 @@ </dependency> </dependencies> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.8</version> + <executions> + <execution> + <id>unpack</id> + <phase>generate-resources</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>${gateway-group}</groupId> + <artifactId>gateway-service-definitions</artifactId> + <type>jar</type> + <overWrite>true</overWrite> + <outputDirectory>${project.build.directory}</outputDirectory> + <includes>services/**/*</includes> + <!--<excludes>**/*.class</excludes>--> + </artifactItem> + </artifactItems> + <!--<outputDirectory>${project.build.directory}/data</outputDirectory>--> + <!--<overWriteReleases>false</overWriteReleases>--> + <!--<overWriteSnapshots>true</overWriteSnapshots>--> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </profile> http://git-wip-us.apache.org/repos/asf/knox/blob/106279da/gateway-release/src/assembly.xml ---------------------------------------------------------------------- diff --git a/gateway-release/src/assembly.xml b/gateway-release/src/assembly.xml index 9a46f39..709d1f3 100644 --- a/gateway-release/src/assembly.xml +++ b/gateway-release/src/assembly.xml @@ -58,6 +58,13 @@ </includes> <fileMode>0444</fileMode> </fileSet> + <fileSet> + <directory>${project.build.directory}/services</directory> + <outputDirectory>data/services</outputDirectory> + <includes> + <include>**/*</include> + </includes> + </fileSet> </fileSets> <dependencySets> <dependencySet>