GUACAMOLE-136: Bundle guacamole-auth-duo .jar into .tar.gz, along with licenses.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/c3c553a8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/c3c553a8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/c3c553a8 Branch: refs/heads/master Commit: c3c553a8999ae9ca212ce2c44d60806795e7db96 Parents: 3457bcf Author: Michael Jumper <[email protected]> Authored: Mon Dec 5 20:31:03 2016 -0800 Committer: Michael Jumper <[email protected]> Committed: Mon Dec 5 22:19:46 2016 -0800 ---------------------------------------------------------------------- extensions/guacamole-auth-duo/pom.xml | 22 ++++++++ .../src/main/assembly/dist.xml | 53 ++++++++++++++++++++ 2 files changed, 75 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/c3c553a8/extensions/guacamole-auth-duo/pom.xml ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-duo/pom.xml b/extensions/guacamole-auth-duo/pom.xml index b129591..22ca020 100644 --- a/extensions/guacamole-auth-duo/pom.xml +++ b/extensions/guacamole-auth-duo/pom.xml @@ -133,6 +133,28 @@ </executions> </plugin> + <!-- Assembly plugin - for easy distribution --> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.5.3</version> + <configuration> + <finalName>${project.artifactId}-${project.version}</finalName> + <appendAssemblyId>false</appendAssemblyId> + <descriptors> + <descriptor>src/main/assembly/dist.xml</descriptor> + </descriptors> + </configuration> + <executions> + <execution> + <id>make-dist-archive</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- Copy dependencies prior to packaging --> <plugin> <groupId>org.apache.maven.plugins</groupId> http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/c3c553a8/extensions/guacamole-auth-duo/src/main/assembly/dist.xml ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-duo/src/main/assembly/dist.xml b/extensions/guacamole-auth-duo/src/main/assembly/dist.xml new file mode 100644 index 0000000..b89fd53 --- /dev/null +++ b/extensions/guacamole-auth-duo/src/main/assembly/dist.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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 + xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> + + <id>dist</id> + <baseDirectory>${project.artifactId}-${project.version}</baseDirectory> + + <!-- Output tar.gz --> + <formats> + <format>tar.gz</format> + </formats> + + <!-- Include licenses and extension .jar --> + <fileSets> + + <!-- Include licenses --> + <fileSet> + <outputDirectory></outputDirectory> + <directory>src/licenses</directory> + </fileSet> + + <!-- Include extension .jar --> + <fileSet> + <directory>target</directory> + <outputDirectory></outputDirectory> + <includes> + <include>*.jar</include> + </includes> + </fileSet> + + </fileSets> + +</assembly>
