<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.cb.maven.plugins.exec</groupId>
  <artifactId>project3</artifactId>
  <version>0.1</version>
  <packaging>jar</packaging>
  <name>Maven Exec Plugin</name>
  <inceptionYear>2005</inceptionYear>
  <licenses>
    <license>
      <name>Apache License 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <developers>
    <developer>
      <name>Jerome Lacoste</name>
      <id>jerome</id>
      <email>jerome@coffeebreaks.org</email>
      <organization>CoffeeBreaks</organization>
      <organizationUrl>http://www.coffeebreaks.org</organizationUrl>
      <roles>
        <role>Java Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.1</version>
    </dependency>      
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.4</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>1.0.1</version>
    </dependency>      
  </dependencies>

  <build>
    <!-- for manual tests. Can't be automated in the unit tests as the plugin's not installed. What about integration tests? -->
    <!-- MOJO-348 fixed in 1.1. -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.1-SNAPSHOT</version>
        <executions>
           <execution>
              <phase>test</phase>
              <goals>
                 <goal>exec</goal>
              </goals>
           </execution>
        </executions>
        <configuration>
          <workingDirectory>target</workingDirectory>
          <executable>java</executable>
          <arguments>
            <argument>-Dproject.env1=value1</argument>
            <argument>-classpath</argument>
            <classpath>
              <dependency>commons-io:commons-io</dependency>
              <dependency>commons-logging:commons-logging</dependency>
            </classpath>
            <argument>org.codehaus.mojo.exec.test3.Test</argument>
            <argument>exec/output.txt</argument>
          </arguments>
        </configuration>
      </plugin>
    </plugins>
    <!--extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh-external</artifactId>
        <version>1.0-alpha-5-SNAPSHOT</version>
      </extension>
    </extensions-->
  </build>

</project>
