petals-cli-distrib-deb
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.ow2.petals</groupId>
<artifactId>petals-cli-distrib-deb</artifactId>
<version>3.3.0-1.0</version>
</dependency><!--
Copyright (c) 2013-2026 Linagora
This program/library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 of the License, or (at your
option) any later version.
This program/library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program/library; If not, see http://www.gnu.org/licenses/
for the GNU Lesser General Public License version 2.1.
-->
<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.ow2.petals</groupId>
<artifactId>petals-cli-parent</artifactId>
<relativePath>../parent/pom.xml</relativePath>
<version>1.3.0</version>
</parent>
<properties>
<petals-cli.version-short>3.3.0</petals-cli.version-short>
<!-- Add SNAPSHOT to the following property to embed a snapshot version -->
<petals-cli.version>${petals-cli.version-short}</petals-cli.version>
</properties>
<groupId>org.ow2.petals</groupId>
<artifactId>petals-cli-distrib-deb</artifactId>
<!-- The version of the distribution package is composed of the version
of Petals CLI, and a version of the distribution package relative to the
version of Petals CLI: '<petals-cli>-<package>[-SNAPSHOT]' -->
<version>3.3.0-1.0</version>
<name>Petals ESB - Client tools - Petals CLI - Packages - Debian package</name>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>org.ow2.petals</groupId>
<artifactId>petals-cli</artifactId>
<version>${petals-cli.version}</version>
<type>zip</type>
<!-- optional so that depending from the zip does not bring all the dependencies -->
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.ow2.petals</groupId>
<artifactId>petals-cli</artifactId>
<version>${petals-cli.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/files/man</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>current-date</id>
<phase>initialize</phase>
<goals>
<goal>timestamp-property</goal>
</goals>
<configuration>
<name>current-date</name>
<pattern>dd MMM yyyy</pattern>
</configuration>
</execution>
<execution>
<id>add-it-test-source</id>
<phase>process-resources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/it/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Generate Petals CLI preferences -->
<unzip src="${project.build.directory}/dependency/petals-cli-${petals-cli.version}.zip" dest="${project.build.directory}/dependency/petals-cli-zip">
<patternset>
<include name="**/conf/petals-cli.default" />
</patternset>
</unzip>
<replaceregexp file="${project.build.directory}/dependency/petals-cli-zip/conf/petals-cli.default" match="^default.passphrase=(.*)$" replace="#default.passphrase=\1" byline="true" />
<!-- Man pages generation -->
<mkdir dir="${project.build.directory}/man/man1" />
<gzip src="${project.build.directory}/classes/man1/petals-cli.1" destfile="${project.build.directory}/man/man1/petals-cli.1.gz" />
<mkdir dir="${project.build.directory}/man/man5" />
<gzip src="${project.build.directory}/classes/man5/petals-cli.5" destfile="${project.build.directory}/man/man5/petals-cli.5.gz" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.10</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<skipPOMs>false</skipPOMs>
<dataSet>
<data>
<!-- Petals CLI executable -->
<src>${project.basedir}/src/files/bin/petals-cli</src>
<dst>petals-cli</dst>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin</prefix>
<user>root</user>
<group>root</group>
<filemode>0755</filemode>
</mapper>
</data>
<data>
<type>link</type>
<linkName>/usr/bin/petals-cli.sh</linkName>
<linkTarget>/usr/bin/petals-cli</linkTarget>
<symlink>true</symlink>
</data>
<data>
<!-- Required libraries in /usr/share/petals-cli -->
<src>${project.build.directory}/dependency/petals-cli-${petals-cli.version}.zip</src>
<type>archive</type>
<includes>**/lib/*</includes>
<mapper>
<type>perm</type>
<prefix>/usr/share/petals-cli</prefix>
<strip>1</strip>
<user>root</user>
<group>root</group>
<filemode>0644</filemode>
</mapper>
</data>
<data>
<!-- Extensions -->
<src>${project.build.directory}/dependency/petals-cli-${petals-cli.version}.zip</src>
<type>archive</type>
<includes>**/extensions/*</includes>
<mapper>
<type>perm</type>
<prefix>/usr/share/petals-cli/extensions</prefix>
<strip>1</strip>
<user>root</user>
<group>root</group>
<filemode>0644</filemode>
</mapper>
</data>
<data>
<!-- Preferences -->
<src>${project.build.directory}/dependency/petals-cli-zip/conf/petals-cli.default</src>
<dst>petals-cli.default</dst>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/etc/petals-cli</prefix>
<strip>1</strip>
<user>root</user>
<group>petals</group>
<filemode>0640</filemode>
</mapper>
</data>
<data>
<!-- Man page -->
<src>${project.build.directory}/man</src>
<type>directory</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/man</prefix>
<user>root</user>
<group>root</group>
<filemode>0644</filemode>
</mapper>
</data>
<data>
<!-- Copyright -->
<type>link</type>
<linkName>/usr/share/doc/petals-cli/copyright</linkName>
<linkTarget>/usr/share/common-licenses/LGPL-2.1</linkTarget>
<symlink>true</symlink>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<archive-base-directory>${project.build.directory}/dependency/petals-cli-zip</archive-base-directory>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-cli-distrib-deb-3.3.0-1.0</connection>
<developerConnection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-cli-distrib-deb-3.3.0-1.0</developerConnection>
<url>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-cli-distrib-deb-3.3.0-1.0</url>
</scm>
</project>