petals-esb-default-deb
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.ow2.petals</groupId> <artifactId>petals-esb-default-deb</artifactId> <version>5.3.0-1.0</version> </dependency>
<!-- Copyright (c) 2013-2023 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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.ow2.petals</groupId> <artifactId>petals-container-parent</artifactId> <relativePath>../parent/pom.xml</relativePath> <version>4.4.0</version> </parent> <properties> <petals-esb.version-short>5.3.0</petals-esb.version-short> <!-- Add SNAPSHOT to the following property value to base the Debian package on a snapshot version of Petals ESB default ZIP archive --> <petals-esb.version>${petals-esb.version-short}</petals-esb.version> </properties> <groupId>org.ow2.petals</groupId> <artifactId>petals-esb-default-deb</artifactId> <!-- The version '<petals-esb>-<package>[-SNAPSHOT]' is composed of the version of Petals ESB container, and a version of the package relative to the version of Petals ESB container --> <version>5.3.0-1.0</version> <name>Petals ESB - Default container - Debian package</name> <packaging>pom</packaging> <dependencies> <dependency> <groupId>org.ow2.petals</groupId> <artifactId>petals-esb-minimal-zip</artifactId> <version>${petals-esb.version}</version> <type>zip</type> <!-- optional so that depending from the deb does not bring all the dependencies --> <optional>true</optional> </dependency> <dependency> <groupId>org.ow2.petals</groupId> <artifactId>petals-registryoverlay-client-zip</artifactId> <version>1.2.0-1.0</version> <type>zip</type> <!-- optional so that depending from the deb does not bring all the dependencies --> <optional>true</optional> </dependency> </dependencies> <build> <resources> <resource> <directory>src/files/man</directory> <filtering>true</filtering> </resource> </resources> <plugins> <!-- First generate the compressed archive of the Petals ESB container man pages --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>timestamp-property</id> <phase>initialize</phase> <goals> <goal>timestamp-property</goal> </goals> <configuration> <name>current-date</name> <pattern>dd MMM yyyy</pattern> </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> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <mkdir dir="${project.build.directory}/man/man1" /> <gzip src="${project.build.directory}/classes/man1/petals-esb.1" destfile="${project.build.directory}/man/man1/petals-esb.1.gz" /> <mkdir dir="${project.build.directory}/man/man5" /> <gzip src="${project.build.directory}/classes/man5/petals-esb.5" destfile="${project.build.directory}/man/man5/petals-esb.5.gz" /> </target> </configuration> </execution> <execution> <id>generate-version-file</id> <phase>prepare-package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <echo file="${project.build.directory}/petals-esb-container.version" message="${project.version}" /> </target> </configuration> </execution> </executions> </plugin> <!-- Second, generate the Debian package --> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <goals> <goal>properties</goal> </goals> </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> <!-- Petals ESB executable --> <data> <src>${project.basedir}/src/files/bin/petals-esb</src> <dst>/usr/bin/petals-esb</dst> <type>file</type> <mapper> <type>perm</type> <filemode>0755</filemode> </mapper> </data> <data> <type>link</type> <linkName>/usr/bin/petals-esb.sh</linkName> <linkTarget>/usr/bin/petals-esb</linkTarget> </data> <data> <src>${project.basedir}/src/files/bin/init.d</src> <dst>/etc/init.d/petals-esb</dst> <type>file</type> <mapper> <type>perm</type> <filemode>0755</filemode> </mapper> </data> <!-- Required libraries in /usr/share/petals-esb --> <data> <src>${org.ow2.petals:petals-esb-minimal-zip:zip}</src> <type>archive</type> <includes>lib/**</includes> <mapper> <type>perm</type> <prefix>/usr/share/petals-esb</prefix> <strip>1</strip> <dirmode>0755</dirmode> <filemode>0644</filemode> </mapper> </data> <data> <src>${org.ow2.petals:petals-esb-minimal-zip:zip}</src> <type>archive</type> <!-- we don't want to include any extension!! --> <includes>extensions/README.txt,system-extensions/README.txt,system-extensions/petals-esb-container.version</includes> <mapper> <type>perm</type> <prefix>/usr/share/petals-esb</prefix> <filemode>0644</filemode> </mapper> </data> <!-- Registry Overlay Implementation in /usr/share/petals-esb/implementations --> <data> <src>${org.ow2.petals:petals-registryoverlay-client-zip:zip}</src> <type>archive</type> <mapper> <type>perm</type> <prefix>/usr/share/petals-esb/implementations</prefix> <dirmode>0755</dirmode> <filemode>0644</filemode> </mapper> </data> <!-- Default configuration --> <data> <src>${project.basedir}/src/files/conf</src> <type>directory</type> <includes>topology.xml,loggers.properties,server.properties</includes> <mapper> <type>perm</type> <prefix>/etc/petals-esb/container-available/default</prefix> <user>petals</user> <group>petals</group> <filemode>0640</filemode> </mapper> </data> <!-- Configuration common to all Petals containers --> <data> <src>${project.basedir}/src/files/conf/default-env.sh</src> <dst>/etc/petals-esb/default-env.sh</dst> <type>file</type> <mapper> <type>perm</type> <user>petals</user> <group>petals</group> <!-- Caution everyone must be able to read 'default-env.sh' --> <filemode>0644</filemode> </mapper> </data> <data> <src>${org.ow2.petals:petals-esb-minimal-zip:zip}</src> <type>archive</type> <includes>conf/default-snmp.acl</includes> <mapper> <type>perm</type> <prefix>/etc/petals-esb</prefix> <strip>1</strip> <user>petals</user> <group>petals</group> <filemode>0600</filemode> </mapper> </data> <data> <src>${project.basedir}/src/files/conf/m2-settings.xml</src> <dst>/etc/petals-esb/m2-settings.xml</dst> <type>file</type> <mapper> <type>perm</type> <user>petals</user> <group>petals</group> <!-- Caution everyone must be able to read 'm2-settings.xml' --> <filemode>0644</filemode> </mapper> </data> <!-- Licences --> <data> <src>${org.ow2.petals:petals-esb-minimal-zip:zip}</src> <type>archive</type> <includes>licenses/*,THIRD-PARTY</includes> <mapper> <type>perm</type> <prefix>/usr/share/doc/petals-esb</prefix> <filemode>0444</filemode> </mapper> </data> <!-- Man page --> <data> <src>${project.build.directory}/man</src> <type>directory</type> <mapper> <type>perm</type> <prefix>/usr/share/man</prefix> </mapper> </data> <!-- Copyright --> <data> <src>${project.basedir}/COPYRIGHT</src> <dst>/usr/share/doc/petals-esb/copyright</dst> <type>file</type> </data> </dataSet> </configuration> </execution> </executions> </plugin> </plugins> </build> <scm> <connection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-esb-default-deb-5.3.0-1.0</connection> <developerConnection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-esb-default-deb-5.3.0-1.0</developerConnection> <url>http://gitorious.ow2.org/ow2/pom/petals-parent/petals-container-parent/tags/petals-esb-default-deb-5.3.0-1.0</url> </scm> </project>