| <?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.maven</groupId> |
| <artifactId>maven</artifactId> |
| <version>2.2.2-RC1-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>apache-maven</artifactId> |
| |
| <name>Maven Distribution</name> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <systemProperties> |
| <property> |
| <name>basedir</name> |
| <value>${basedir}</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>1.2</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <finalName>maven-${project.version}-uber</finalName> |
| <createDependencyReducedPom> |
| false |
| </createDependencyReducedPom> |
| <keepDependenciesWithProvidedScope> |
| true |
| </keepDependenciesWithProvidedScope> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" /> |
| </transformers> |
| <artifactSet> |
| <excludes> |
| <exclude> |
| org.codehaus.plexus:plexus-component-api |
| </exclude> |
| <exclude>classworlds:classworlds</exclude> |
| <exclude>xml-apis:xml-apis</exclude> |
| <exclude>junit:junit</exclude> |
| <exclude>jmock:jmock</exclude> |
| </excludes> |
| </artifactSet> |
| <relocations> |
| <!-- for jackrabbit webdav wagon --> |
| <relocation> |
| <pattern>org.apache.jackrabbit</pattern> |
| </relocation> |
| |
| <!-- For http/webdav wagons --> |
| <relocation> |
| <pattern>org.apache.commons.httpclient</pattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.commons.logging</pattern> |
| </relocation> |
| <relocation> |
| <pattern>org.slf4j</pattern> |
| </relocation> |
| |
| <!-- For maven-artifact-manager --> |
| <relocation> |
| <pattern>edu.emory.mathcs.backport</pattern> |
| </relocation> |
| |
| <!-- For jsch wagon --> |
| <relocation> |
| <pattern>org.apache.commons.codec</pattern> |
| </relocation> |
| |
| <!-- For wagon API --> |
| <relocation> |
| <pattern>org.cyberneko</pattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.xerces</pattern> |
| </relocation> |
| |
| <relocation> |
| <pattern>org.codehaus.plexus.util</pattern> |
| <excludes> |
| <exclude>org.codehaus.plexus.util.xml.Xpp3Dom</exclude> |
| <exclude>org.codehaus.plexus.util.xml.pull.XmlPullParser</exclude> |
| <exclude>org.codehaus.plexus.util.xml.pull.XmlPullParserException</exclude> |
| <exclude>org.codehaus.plexus.util.xml.pull.XmlSerializer</exclude> |
| </excludes> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2-beta-4</version> |
| <executions> |
| <execution> |
| <id>assemblies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assemble/bin.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-compat</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-toolchain</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>include-site</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-plugin</artifactId> |
| <configuration> |
| <connectionUrl>scm:svn:http://svn.apache.org/repos/asf/maven/site/trunk</connectionUrl> |
| <checkoutDirectory>${project.build.directory}/maven-site</checkoutDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>initialize</phase> |
| <goals> |
| <goal>checkout</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <projectsDirectory>${project.build.directory}/maven-site</projectsDirectory> |
| <pom>${project.build.directory}/maven-site/pom.xml</pom> |
| <goals> |
| <goal>clean</goal> |
| <goal>site</goal> |
| </goals> |
| </configuration> |
| <executions> |
| <execution> |
| <id>initialize</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assemble/src.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |