<!--

    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 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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.kie</groupId>
    <artifactId>kie-dmn</artifactId>
    <version>10.1.0</version>
  </parent>

  <artifactId>kie-dmn-xsd-resources</artifactId>
  <name>KIE :: Decision Model Notation :: XSD-Bundle</name>
  <description>Module meant to bundle all DMN-related xsd files</description>

  <properties>
    <java.module.name>org.kie.dmn.xsd.resources</java.module.name>
    <output.spec.directory>${project.build.directory}/classes/org/omg/spec/DMN</output.spec.directory>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>com.societegenerale.commons</groupId>
        <artifactId>arch-unit-maven-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>io.github.download-maven-plugin</groupId>
        <artifactId>download-maven-plugin</artifactId>
        <executions>
          <!-- DMN 1.1 -->
          <execution>
            <id>20151101_dmn</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>http://www.omg.org/spec/DMN/20151101/dmn.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20151101/</outputDirectory>
              <md5>ff4a266fa7a91b51b5c7ffde0e19aa5f</md5>
            </configuration>
          </execution>
          <!-- DMN 1.2 -->
          <execution>
            <id>20180521_DC</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DC.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20180521/</outputDirectory>
              <md5>89afb8f008550f81cc3989c5d0b9e4ea</md5>
            </configuration>
          </execution>
          <execution>
            <id>20180521_DI</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DI.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20180521/</outputDirectory>
              <md5>635f0e1e62ba09c22ca302c6103738ba</md5>
            </configuration>
          </execution>
          <execution>
            <id>20180521_DMN12</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DMN12.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20180521/</outputDirectory>
              <md5>f2fdcef4f5a1a32473e0ddca2dd72592</md5>
            </configuration>
          </execution>
          <execution>
            <id>20180521_DMNDI12</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DMNDI12.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20180521/</outputDirectory>
              <md5>96e6865c368fa27ada05ed85eaa4b370</md5>
            </configuration>
          </execution>
          <!-- DMN 1.3 -->
          <execution>
            <id>20191111_DC</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DC.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20191111/</outputDirectory>
              <md5>89afb8f008550f81cc3989c5d0b9e4ea</md5>
            </configuration>
          </execution>
          <execution>
            <id>20191111_DI</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DI.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20191111/</outputDirectory>
              <md5>635f0e1e62ba09c22ca302c6103738ba</md5>
            </configuration>
          </execution>
          <execution>
            <id>20191111_DMN13</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20191111/DMN13.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20191111/</outputDirectory>
              <md5>ae7ca8c95404dc3af5acde0b40d7f975</md5>
            </configuration>
          </execution>
          <execution>
            <id>20191111_DMNDI13</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20191111/DMNDI13.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20191111/</outputDirectory>
              <md5>f8934f1d8538ec404d3cf459755bc0ed</md5>
            </configuration>
          </execution>
          <!-- DMN 1.4 -->
          <execution>
            <id>20211108_DC</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DC.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20211108/</outputDirectory>
              <md5>89afb8f008550f81cc3989c5d0b9e4ea</md5>
            </configuration>
          </execution>
          <execution>
            <id>20211108_DI</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DI.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20211108/</outputDirectory>
              <md5>635f0e1e62ba09c22ca302c6103738ba</md5>
            </configuration>
          </execution>
          <execution>
            <id>20211108_DMN14</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20211108/DMN14.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20211108/</outputDirectory>
              <md5>576746eb17873791d683908b1fa60ec1</md5>
            </configuration>
          </execution>
          <execution>
            <id>20211108_DMNDI13</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20191111/DMNDI13.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20211108/</outputDirectory>
              <md5>f8934f1d8538ec404d3cf459755bc0ed</md5>
            </configuration>
          </execution>
          <!-- DMN 1.5 -->
          <execution>
            <id>20230324_DC</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DC.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20230324/</outputDirectory>
              <md5>89afb8f008550f81cc3989c5d0b9e4ea</md5>
            </configuration>
          </execution>
          <execution>
            <id>20230324_DI</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20180521/DI.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20230324/</outputDirectory>
              <md5>635f0e1e62ba09c22ca302c6103738ba</md5>
            </configuration>
          </execution>
          <execution>
            <id>20230324_DMN15</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20230324/DMN15.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20230324/</outputDirectory>
              <md5>49a582b2cd228d4a5102d41b688ddc6b</md5>
            </configuration>
          </execution>
          <execution>
            <id>20230324_DMNDI15</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.omg.org/spec/DMN/20230324/DMNDI15.xsd</url>
              <unpack>false</unpack>
              <outputDirectory>${output.spec.directory}/20230324/</outputDirectory>
              <md5>b453d960af8c505c14b671373c370d7c</md5>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>