| <?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. |
| --> |
| <!-- |
| @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> |
| --> |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>application</artifactId> |
| <version>2.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>ApacheDirectoryStudio-release</artifactId> |
| <name>Apache Directory Studio Application Release</name> |
| <packaging>pom</packaging> |
| |
| <properties> |
| <release-dir>${project.build.directory}/ApacheDirectoryStudio-release-${project.version}</release-dir> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-linux-x86</artifactId> |
| <type>tar.gz</type> |
| <version>${project.version}</version> |
| <outputDirectory>${release-dir}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-linux-x86_64</artifactId> |
| <type>tar.gz</type> |
| <version>${project.version}</version> |
| <outputDirectory>${release-dir}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-macosx-x86-dmg</artifactId> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-macosx-x86_64-dmg</artifactId> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-win32-x86-exe</artifactId> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-win32-x86_64-exe</artifactId> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-updatesite</artifactId> |
| <classifier>default</classifier> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${release-dir}</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>ApacheDirectoryStudio-updatesite</artifactId> |
| <classifier>pao</classifier> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unzip-copy-files</id> |
| <phase>process-resources</phase> |
| <configuration> |
| <tasks> |
| <unzip dest="${project.build.directory}"> |
| <fileset dir="${project.build.directory}" includes="ApacheDirectoryStudio-*.zip"/> |
| </unzip> |
| <copy file="${project.build.directory}/ApacheDirectoryStudio-macosx-x86-dmg-${project.version}/ApacheDirectoryStudio-macosx-x86-${project.version}.dmg" todir="${release-dir}" /> |
| <copy file="${project.build.directory}/ApacheDirectoryStudio-macosx-x86_64-dmg-${project.version}/ApacheDirectoryStudio-macosx-x86_64-${project.version}.dmg" todir="${release-dir}" /> |
| <copy file="${project.build.directory}/ApacheDirectoryStudio-win32-x86-exe-${project.version}/ApacheDirectoryStudio-win32-x86-${project.version}.exe" todir="${release-dir}" /> |
| <copy file="${project.build.directory}/ApacheDirectoryStudio-win32-x86_64-exe-${project.version}/ApacheDirectoryStudio-win32-x86_64-${project.version}.exe" todir="${release-dir}" /> |
| <copy todir="${release-dir}/updatesite"> |
| <fileset dir="${project.build.directory}/ApacheDirectoryStudio-updatesite-${project.version}"/> |
| </copy> |
| <copy file="src/main/resources/sign.sh" todir="${release-dir}"> |
| <filterset> |
| <filter token="gpg.keyname" value="${gpg.keyname}" /> |
| <filter token="gpg.passphrase" value="${gpg.passphrase}" /> |
| </filterset> |
| </copy> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>delete-sign-sh-copy-release</id> |
| <phase>package</phase> |
| <configuration> |
| <tasks> |
| <delete file="${release-dir}/sign.sh"/> |
| <move todir="../../target/release"> |
| <fileset dir="${release-dir}"/> |
| </move> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${release-dir}</workingDirectory> |
| <executable>sh</executable> |
| <arguments> |
| <argument>sign.sh</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| </project> |