| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed 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. |
| --> |
| <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"> |
| <parent> |
| <artifactId>tomee</artifactId> |
| <groupId>org.apache.tomee</groupId> |
| <version>8.0.2-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>tomee-deb</artifactId> |
| <packaging>jar</packaging> |
| <name>TomEE :: TomEE :: Debian Package Builder</name> |
| |
| <properties> |
| <distribution.workdir>${project.build.directory}/work-dir</distribution.workdir> |
| </properties> |
| |
| <dependencies> |
| <!-- Dependencies used by builder logic. --> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-core</artifactId> |
| <version>3.2.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-compress</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </dependency> |
| |
| <!-- We need to be sure the ZIP files are built before the debian package. --> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| </dependency> |
| |
| <!-- We use resources from these guys below. --> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>openejb-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>openejb-cxf</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>openejb-cxf-rs</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>openejb-hsql</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-tomee-zip</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <version>${project.version}</version> |
| <classifier>plus</classifier> |
| <type>zip</type> |
| <outputDirectory>${distribution.workdir}</outputDirectory> |
| <destFileName>tomee-plus.zip</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <version>${project.version}</version> |
| <classifier>webprofile</classifier> |
| <type>zip</type> |
| <outputDirectory>${distribution.workdir}</outputDirectory> |
| <destFileName>tomee-webprofile.zip</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <version>${project.version}</version> |
| <classifier>plume</classifier> |
| <type>zip</type> |
| <outputDirectory>${distribution.workdir}</outputDirectory> |
| <destFileName>tomee-plume.zip</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.gmaven</groupId> |
| <artifactId>groovy-maven-plugin</artifactId> |
| <configuration> |
| <classpathScope>runtime</classpathScope> |
| <scriptpath> |
| <path>${project.basedir}/src/main/groovy</path> |
| </scriptpath> |
| <defaults> |
| <testSectionsFile>${project.basedir}/sections.properties</testSectionsFile> |
| <logOutputDirectory>${project.build.directory}/logs</logOutputDirectory> |
| <backupLogs>true</backupLogs> |
| </defaults> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build-distribution</id> |
| <phase>package</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <configuration> |
| <source> |
| new org.apache.tomee.deb.PackageBuilder(project).createPackage() |
| </source> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-tomee-plus.deb</file> |
| <type>deb</type> |
| <classifier>plus</classifier> |
| </artifact> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-tomee-webprofile.deb |
| </file> |
| <type>deb</type> |
| <classifier>webprofile</classifier> |
| </artifact> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-tomee-plume.deb |
| </file> |
| <type>deb</type> |
| <classifier>plume</classifier> |
| </artifact> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-libtomee-plume-java.deb |
| </file> |
| <type>deb</type> |
| <classifier>lib-plume</classifier> |
| </artifact> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-libtomee-plus-java.deb |
| </file> |
| <type>deb</type> |
| <classifier>lib-plus</classifier> |
| </artifact> |
| <artifact> |
| <file>${project.build.directory}/work-dir/apache-libtomee-webprofile-java.deb |
| </file> |
| <type>deb</type> |
| <classifier>lib-webprofile</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |