| <?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. |
| --> |
| <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.apache.yetus</groupId> |
| <artifactId>yetus-project</artifactId> |
| <version>0.10.0-SNAPSHOT</version> |
| <relativePath>..</relativePath> |
| </parent> |
| <artifactId>precommit</artifactId> |
| <description>Build and Patch Management and Testing</description> |
| <name>Apache Yetus - Precommit</name> |
| <packaging>pom</packaging> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>test-bats-driver</id> |
| <phase>test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <exec dir="src/test/shell" executable="bash" failonerror="true"> |
| <arg value="./run-bats.sh" /> |
| </exec> |
| </target> |
| </configuration> |
| </execution> |
| <execution> |
| <id>mkdir-bin</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <exportAntProperties>true</exportAntProperties> |
| <target> |
| <mkdir dir="target/dist/apache-yetus-${project.version}/lib/${project.artifactId}"/> |
| <mkdir dir="target/dist/apache-yetus-${project.version}/bin"/> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.yetus</groupId> |
| <artifactId>yetus-assemblies</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>build</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <finalName>dist/apache-yetus-${project.version}</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <attach>false</attach> |
| <descriptorRefs> |
| <descriptorRef>script-bundle</descriptorRef> |
| </descriptorRefs> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>module-dist</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <appendAssemblyId>false</appendAssemblyId> |
| <attach>true</attach> |
| <descriptorRefs> |
| <descriptorRef>module-dist</descriptorRef> |
| </descriptorRefs> |
| </configuration> |
| </execution> |
| |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.yetus</groupId> |
| <artifactId>yetus-minimaven-plugin</artifactId> |
| <version>${project.version}</version> |
| <executions> |
| <execution> |
| <id>qbt.sh</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>symlink</goal> |
| </goals> |
| <configuration> |
| <target>test-patch.sh</target> |
| <newLink>dist/apache-yetus-${project.version}/lib/${project.artifactId}/qbt.sh</newLink> |
| </configuration> |
| </execution> |
| <execution> |
| <id>bins4libs</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>bin4libs</goal> |
| </goals> |
| <configuration> |
| <libdir>lib/precommit</libdir> |
| <basedir>${project.build.directory}/dist/apache-yetus-${project.version}</basedir> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>src/main/python/unit-test-filter-file.example</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| </project> |