content: ##
  ## Copyright (c) 2025 Guillaume Nodet
  ##
  ## This program and the accompanying materials are made available under
  ## the terms of the Eclipse Public License 2.0 which accompanies this
  ## distribution and is available at:
  ## https://www.eclipse.org/legal/epl-2.0/
  ##
  ## SPDX-License-Identifier: EPL-2.0
  ##
  modelVersion = "4.0.0"
  parent = "org.apache.maven.extensions:maven-extensions:43"
  id = "org.apache.maven.extensions:maven-yaml-extension:1.0.0-SNAPSHOT"
  packaging = "jar"
  
  dependencyManagement.dependencies = [
    "org.junit:junit-bom:5.12.0@import"
  ]
  
  dependencies = [
    # Runtime
    "org.apache.maven:maven-api-spi:${maven.version}@provided",
    "org.apache.maven:maven-api-core:${maven.version}@provided",
    "org.apache.maven:maven-xml:${maven.version}",
    "org.yaml:snakeyaml:2.4",
    "javax.inject:javax.inject:1",
    "javax.annotation:javax.annotation-api:1.3.2",
    # Test
    "org.junit.jupiter:junit-jupiter@test",
    "org.apache.maven:maven-support:${maven.version}@test"
  ]
  
  [properties]
    javaVersion = 17
    "maven.version" = "4.0.0-rc-3"
  
  [build]
    [[build.plugins]]
      id = "org.apache.maven.plugins:maven-dependency-plugin:3.8.1"
      [[build.plugins.executions]]
        id = "copy-model"
        goals = ["copy"]
        phase = "generate-sources"
        [build.plugins.executions.configuration]
          [[build.plugins.executions.configuration.artifactItems]]
            groupId = "org.apache.maven"
            artifactId = "maven-api-model"
            version = "${maven.version}"
            type = "mdo"
          [[build.plugins.executions.configuration.artifactItems]]
            groupId = "org.apache.maven"
            artifactId = "maven-api-settings"
            version = "${maven.version}"
            type = "mdo"
    [[build.plugins]]
      id = "org.codehaus.modello:modello-maven-plugin:2.1.1"
      [[build.plugins.executions]]
        id = "generate-yaml-reader"
        goals = ["velocity"]
        phase = "generate-sources"
        [build.plugins.executions.configuration]
          version = "4.2.0"
          models = ["target/dependency/maven-api-model-${maven.version}.mdo"]
          templates = ["src/mdo/map-model-reader.vm"]
          params = ["packageModelV4=org.apache.maven.api.model"]
    [[build.plugins]]
      id = "org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3"
      [[build.plugins.executions]]
        id = "index-project"
        goals = ["main-index"]
  