| <?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> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.apache.maven.its.mng3822</groupId> |
| <artifactId>test1</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <name>Maven Integration Test :: MNG-3822</name> |
| <description> |
| Verify that POM interpolation uses basedir-aligned build directories. |
| </description> |
| |
| <properties> |
| <!-- this is where we collect all the interpolated values for the POM dump --> |
| <buildMainSrc>${project.build.sourceDirectory}</buildMainSrc> |
| <buildTestSrc>${project.build.testSourceDirectory}</buildTestSrc> |
| <buildScriptSrc>${project.build.scriptSourceDirectory}</buildScriptSrc> |
| <buildOut>${project.build.directory}</buildOut> |
| <buildMainOut>${project.build.outputDirectory}</buildMainOut> |
| <buildTestOut>${project.build.testOutputDirectory}</buildTestOut> |
| <siteOut>${project.reporting.outputDirectory}</siteOut> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-expression</artifactId> |
| <version>2.1-SNAPSHOT</version> |
| <executions> |
| <execution> |
| <phase>initialize</phase> |
| <goals> |
| <goal>eval</goal> |
| </goals> |
| <configuration> |
| <outputFile>target/interpolated.properties</outputFile> |
| <expressions> |
| <expression>project/properties</expression> |
| </expressions> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <!-- |
| NOTE: Deliberately set all build directories to relative paths to ensure they really need basedir alignment. |
| --> |
| <sourceDirectory>src/main/java</sourceDirectory> |
| <testSourceDirectory>src/test/java</testSourceDirectory> |
| <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> |
| <directory>target</directory> |
| <outputDirectory>target/classes</outputDirectory> |
| <testOutputDirectory>target/test-classes</testOutputDirectory> |
| </build> |
| |
| <reporting> |
| <outputDirectory>target/site</outputDirectory> |
| </reporting> |
| </project> |