<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>io.apiman</groupId>
    <artifactId>apiman-manager-api</artifactId>
    <version>2.2.0.Final</version>
  </parent>
  <artifactId>apiman-manager-api-rest</artifactId>
  <name>apiman-manager-api-rest</name>

  <dependencies>
    <!-- Project Dependencies -->
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>apiman-manager-api-beans</artifactId>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>apiman-manager-api-rest-exceptions</artifactId>
    </dependency>

    <!-- Third Party Dependencies -->
    <dependency>
      <groupId>org.jboss.spec.javax.ws.rs</groupId>
      <artifactId>jboss-jaxrs-api_2.1_spec</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.swagger</groupId>
      <artifactId>swagger-annotations</artifactId>
    </dependency>
    <dependency>
      <groupId>jakarta.servlet</groupId>
      <artifactId>jakarta.servlet-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.hibernate.javax.persistence</groupId>
      <artifactId>hibernate-jpa-2.1-api</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>apidocs</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.qmino</groupId>
            <artifactId>miredot-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>restdoc</goal>
                </goals>
                <configuration>
                  <output>
                    <title>API Manager REST Services (${project.version})</title>
                    <html>
                      <initialCollapseLevel>1</initialCollapseLevel>
                      <baseUrl>http://localhost:8080/apiman</baseUrl>
                      <hideIssuesTab>true</hideIssuesTab>
                    </html>
                  </output>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <licence>cHJvamVjdHxpby5hcGltYW4uYXBpbWFuLW1hbmFnZXItYXBpLXJlc3R8MjAyMy0wMS0zMXxmYWxzZXwtMSNNQ3dDRkJlbVhWb2dLTk5CYXlkNm9GVUZ6amNNQjc3REFoUUloTUxvVkovY0pyNERVM1c1V0h1WVhSaTl0QT09</licence>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
