<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>com.legsem.legstar</groupId>
    <artifactId>legstar-core2</artifactId>
    <version>2.1.2</version>
  </parent>

  <artifactId>legstar-maven-plugin</artifactId>
  <packaging>maven-plugin</packaging>

  <name>LegStar Core Maven Plugin</name>
  <description>Produces XML Schemas and java classes for a set of COBOL copybooks</description>
  <prerequisites>
    <maven>3.8.1</maven>
  </prerequisites>
  <properties>
    <maven.version>3.8.1</maven.version>
    <maven.plugin.version>3.8.1</maven.plugin.version>
  </properties>

  <dependencies>

      <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-plugin-api</artifactId>
          <version>${maven.plugin.version}</version>
          <scope>provided</scope>
      </dependency>
  
      <dependency>
          <groupId>org.apache.maven.plugin-tools</groupId>
          <artifactId>maven-plugin-annotations</artifactId>
          <version>${maven.plugin.version}</version>
          <scope>provided</scope>
      </dependency>
  
      <dependency>
          <groupId>com.legsem.legstar</groupId>
          <artifactId>legstar-base-generator</artifactId>
      </dependency>
  
      <dependency>
          <groupId>com.legsem.legstar</groupId>
          <artifactId>legstar-jaxb-generator</artifactId>
      </dependency>
  
      <dependency>
          <groupId>commons-io</groupId>
          <artifactId>commons-io</artifactId>
      </dependency>

      <!-- Logging -->   
      <dependency>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
      </dependency>
      <dependency>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-simple</artifactId>
      </dependency>

      <!-- Test -->   
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <scope>test</scope>
      </dependency>

      <dependency>
          <groupId>org.apache.maven.plugin-testing</groupId>
          <artifactId>maven-plugin-testing-harness</artifactId>
          <version>4.0.0-alpha-2</version>
          <scope>test</scope>
      </dependency>

      <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-core</artifactId>
          <version>${maven.version}</version>
          <scope>provided</scope>
      </dependency> 

      <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-compat</artifactId>
          <version>${maven.version}</version>
          <scope>test</scope>
      </dependency>

     <dependency>
          <groupId>org.eclipse.aether</groupId>
          <artifactId>aether-api</artifactId>
          <version>1.1.0</version>
          <scope>test</scope>
      </dependency>
      

 </dependencies>

  <build>

      <plugins>

        <!-- Generate the plugin.xml and documentation -->   
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>${maven.plugin.version}</version>
          <executions>
            <execution>
              <id>default-descriptor</id>
              <phase>process-classes</phase>
            </execution>
          </executions>
        </plugin>

      </plugins>

  </build>

  <reporting>

    <plugins>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>${maven.plugin.version}</version>
        </plugin>

    </plugins>

  </reporting>   

</project>
