blob: c3491c6871b7c57263dcdbae72c1081c1075f3bc [file] [log] [blame]
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins.invoker</groupId>
<artifactId>settings-auto-exclude</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>
Test to check that the custom settings.xml is automatically excluded from the project scanner. This is a convenience
feature to support the following common directory layout
src/it/
project1/
project2/
settings.xml
in combination with the POM include pattern "*" required to select POM-less directories. Without excluding settings.xml,
it would be considered a POM and cause a build failure.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>@pom.version@</version>
<configuration>
<pomIncludes>
<!-- intended to select all immediate sub directories but will also match the settings.xml -->
<pomInclude>*</pomInclude>
</pomIncludes>
<settingsFile>src/it/settings.xml</settingsFile>
<goals>
<goal>validate</goal>
</goals>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>