<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>
  <parent>
    <groupId>org.clazzes.svc</groupId>
    <artifactId>svc-runner</artifactId>
    <version>1.3.7</version>
    <relativePath>..</relativePath>
  </parent>
  <artifactId>svc-runner-sshd</artifactId>
  <name>Service Runner SSH console</name>

  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.sshd</groupId>
      <artifactId>sshd-osgi</artifactId>
      <version>${sshd.version}</version>
    </dependency>
    <dependency>
      <groupId>net.i2p.crypto</groupId>
      <artifactId>eddsa</artifactId>
      <version>${eddsa.version}</version>
    </dependency>
    <dependency>
      <groupId>org.jline</groupId>
      <artifactId>jline</artifactId>
      <version>${jline.version}</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.util</groupId>
      <artifactId>parser-combinators</artifactId>
      <version>${parser-combinators.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>${commons-cli.version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <!--
          Exclude main dependencies from svc-runner-core, this way we can collect our
          dependencies using

          mvn -DincludeScope=compile -DoutputDirectory=... dependency:copy-dependencies
        -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <configuration>
          <excludeArtifactIds>
            svc-api,
            slf4j-api
          </excludeArtifactIds>
          <excludeTransitive>true</excludeTransitive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>indie-shell</id>
            <configuration>
              <inheritIo>true</inheritIo>
              <executable>java</executable>
              <arguments>
                <argument>-p</argument>
                <modulepath />
                <argument>-m</argument>
                <argument>org.clazzes.svc.runner.sshd/org.clazzes.svc.runner.sshd.IndieShell</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>
