<?xml version="1.0" encoding="UTF-8"?>
<!--
/*********************************************************************
* Copyright (c) 2022 Kentyou and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.eclipse.sensinact.gateway.core.models</groupId>
    <artifactId>models</artifactId>
    <version>0.0.2-SNAPSHOT</version>
  </parent>
  <groupId>org.eclipse.sensinact.gateway.core.models</groupId>
  <artifactId>metadata</artifactId>
  <version>0.0.2-SNAPSHOT</version>
  <name>SensiNact internal Metadata Model</name>
  <description>The model for sensinact gateway core metadata.</description>
  <licenses>
    <license>
      <name>EPL 2.0</name>
      <url>http://www.eclipse.org/legal/epl-2.0</url>
      <distribution>repo</distribution>
      <comments>Except for 3rd party content and examples.</comments>
    </license>
  </licenses>
  <properties>
    <bnd-tests.skip>true</bnd-tests.skip>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.eclipse.sensinact.gateway.core.models</groupId>
      <artifactId>provider</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.geckoprojects.emf</groupId>
      <artifactId>org.gecko.emf.osgi.api</artifactId>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-generate-maven-plugin</artifactId>
        <version>${bnd.version}</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <externalPlugins>
            <dependency>
              <groupId>org.geckoprojects.emf</groupId>
              <artifactId>org.gecko.emf.osgi.codegen</artifactId>
            </dependency>
          </externalPlugins>
          <steps>
            <step>
              <trigger>src/main/resources/model/metadata.genmodel</trigger>
              <generateCommand>geckoEMF</generateCommand>
              <output>src/main/java</output>
              <clear>false</clear>
              <properties>
                <genmodel>src/main/resources/model/metadata.genmodel</genmodel>
              </properties>
            </step>
          </steps>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>