<?xml version="1.0" encoding="UTF-8"?>
<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>
  <groupId>com.vmware.pscoe</groupId>
  <artifactId>iac</artifactId>
  <version>2.36.0</version>
  <packaging>pom</packaging>
  <name>Build Tools for VMware Aria</name>
  <description>Build Tools for VMware Aria provides development and release management tools for implementing automation solutions
		based on the VMware Aria Suite and VMware Cloud Director. The solution enables Virtual Infrastructure Administrators and 
		Automation Developers to use standard DevOps practices for managing and deploying content.</description>
  <url>https://github.com/vmware/build-tools-for-vmware-aria</url>
  <licenses>
    <license>
      <name>BSD-2 License</name>
      <url>https://github.com/vmware/build-tools-for-vmware-aria/tree/main/licenses/bsd2_license</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>VMware World Wide Center of Engineering</name>
      <email>svc.wwcoe.ci-admin@vmware.com</email>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
  </developers>
  <modules>
    <module>common/o11n/project</module>
    <module>common/artifact-manager</module>
    <module>maven/archetypes</module>
    <module>maven/plugins</module>
    <module>maven/npmconv</module>
    <module>maven/npmlib</module>
    <module>maven/assembly</module>
    <module>maven/polyglot</module>
    <module>vro-types</module>
    <module>typescript</module>
    <module>package-installer</module>
  </modules>
  <scm>
    <connection>scm:git:https://github.com/vmware/build-tools-for-vmware-aria.git</connection>
    <developerConnection>scm:git:https://github.com/vmware/build-tools-for-vmware-aria.git</developerConnection>
    <url>https://github.com/vmware/build-tools-for-vmware-aria/tree/main</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>central</id>
      <name>ossgh</name>
      <url>${releaseRepositoryUrl}</url>
    </repository>
    <snapshotRepository>
      <id>snapshots</id>
      <name>artifactory-c-01a-snapshots</name>
      <url>${snapshotRepositoryUrl}</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <main.basedir>${project.basedir}</main.basedir>
    <revision>2.36.0</revision>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>flatten-maven-plugin</artifactId>
          <version>1.5.0</version>
          <executions>
            <execution>
              <id>flatten</id>
              <phase>process-resources</phase>
              <goals>
                <goal>flatten</goal>
              </goals>
            </execution>
            <execution>
              <id>flatten.clean</id>
              <phase>clean</phase>
              <goals>
                <goal>clean</goal>
              </goals>
            </execution>
          </executions>
          <inherited>true</inherited>
          <configuration>
            <updatePomFile>true</updatePomFile>
            <flattenMode>resolveCiFriendliesOnly</flattenMode>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <version>2.0.1</version>
          <executions>
            <execution>
              <id>manage-licenses</id>
              <phase>process-sources</phase>
              <goals>
                <goal>update-file-header</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <encoding>UTF-8</encoding>
            <licenseName>bsd2_license</licenseName>
            <licenseResolver>file:${main.basedir}/licenses</licenseResolver>
            <inceptionYear>2023</inceptionYear>
            <organizationName>VMware</organizationName>
            <excludedScopes>test</excludedScopes>
            <excludedArtifacts>maven-surefire-plugin</excludedArtifacts>
            <excludeTransitiveDependencies>true</excludeTransitiveDependencies>
            <extraExtensions>
              <ts>java</ts>
              <yaml>properties</yaml>
            </extraExtensions>
            <excludes>**/*.json,**/*.ftl,**/resources/**/*.*,**/archetype-resources/**/*.*</excludes>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>3.5.0</version>
          <executions>
            <execution>
              <id>attach-javadocs</id>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.10.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
          <prePhase>install</prePhase>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release-sign-source</id>
      <activation>
        <property>
          <name>gpg.passphrase</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
