<?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>

  <parent>
    <groupId>org.apache.maven.its.mng3043</groupId>
    <artifactId>parent</artifactId>
    <version>1</version>
  </parent>

  <artifactId>dependency</artifactId>
  <version>0.1-SNAPSHOT</version>

  <name>Maven Integration Test :: MNG-3043 :: Dependency</name>
  <description>Test that dependencies on attached artifacts like a test JAR or an EJB client JAR which have not been built
    yet, i.e. in build phases prior to "package" like "test", are satisfied from the output directories of the
    projects in the reactor. This is meant as a best effort to provide a class path for compilation or testing.</description>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.its.plugins</groupId>
        <artifactId>maven-it-plugin-artifact</artifactId>
        <version>2.1-SNAPSHOT</version>
        <executions>
          <execution>
            <!-- mimic creation of test JAR -->
            <id>package-test-jar</id>
            <goals>
              <goal>attach</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <attachedFile>classes-test/tests.jar</attachedFile>
              <artifactType>test-jar</artifactType>
              <artifactClassifier>tests</artifactClassifier>
            </configuration>
          </execution>
          <execution>
            <!-- mimic creation of EJB client JAR -->
            <id>package-ejb-client-jar</id>
            <goals>
              <goal>attach</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <attachedFile>classes-main/client.jar</attachedFile>
              <artifactType>ejb-client</artifactType>
              <artifactClassifier>client</artifactClassifier>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <outputDirectory>classes-main</outputDirectory>
    <testOutputDirectory>classes-test</testOutputDirectory>
  </build>
</project>
