<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>aero.albers.mbse</groupId>
  <artifactId>lib-ethernet-if</artifactId>
  <version>0.0.2</version>
  <packaging>mdzip</packaging>

  <name>Ethernet Cameo mdzip model</name>
  <description>Ethernet spec implemented in SysML Cameo</description>
  <url>https://github.com/albersgroup/os-mbse-maven-plugin</url>

  <licenses>
    <license>
      <name>GNU GPLv3</name>
      <url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <connection>scm:git:git://software.albers.aero/cwoodward/lib-ethernet-if.git</connection>
    <developerConnection>scm:git:ssh://software.albers.aero/cwoodward/lib-ethernet-if.git</developerConnection>
    <url>http://github.com/software.albers.aero/cwoodward/lib-ethernet-if/tree/main</url>
  </scm>

  <organization>
    <name>Albers Aerospace</name>
    <url>https://www.albers.aero</url>
  </organization>

  <developers>
    <developer>
      <name>Nathan Woolley</name>
      <email>nwoolley@albers.aero</email>
      <organization>Albers Aerospace</organization>
      <organizationUrl>https://www.albers.aero</organizationUrl>
    </developer>
  </developers>

  <build>
    <plugins>
      <plugin>
        <groupId>aero.albers.osmbse</groupId>
        <artifactId>mdzip-base-maven-plugin</artifactId>
        <version>0.0.1</version>
        <!-- declare that his plugin contributes the mdzip component packaging -->
        <extensions>true</extensions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.13.0</version>
        <configuration>
          <source>${maven.compiler.source}</source>
          <target>${maven.compiler.target}</target>
        </configuration>
      </plugin>

      <!-- plugins required for deploying -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- signing plugin -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- publishing plugin -->
      <!-- see https://central.sonatype.org/publish/publish-portal-maven/#automatic-publishing -->
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <version>0.7.0</version>
        <extensions>true</extensions>
        <configuration>
          <deploymentName>${project.groupId}:${project.artifactId}:${project.version}</deploymentName>
          <publishingServerId>central</publishingServerId>
          <!-- <autoPublish>true</autoPublish> -->
          <!-- <waitUntil>published</waitUntil> -->
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>