<?xml version="1.0" encoding="UTF-8"?>
<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>org.wisdom-framework</groupId>
    <artifactId>wisdom-raml</artifactId>
    <version>0.9.1</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>wisdom-raml-maven-plugin</artifactId>

  <packaging>maven-plugin</packaging>

  <name>wisdom-raml-maven-plugin</name>

  <description>A maven plugin based on the wisdom framework which parse the wisdom Controller and Model
    to create a raml doc file.
  </description>

  <dependencies>
    <dependency>
      <groupId>org.raml</groupId>
      <artifactId>raml-parser</artifactId>
    </dependency>
    <dependency>
      <groupId>org.wisdom-framework</groupId>
      <artifactId>wisdom-source-model</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.wisdom-framework</groupId>
      <artifactId>wisdom-api</artifactId>
        <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.wisdom-framework</groupId>
      <artifactId>wisdom-maven-plugin</artifactId>
      <version>${wisdom.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.plugin-tools</groupId>
      <artifactId>maven-plugin-annotations</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- Test dep -->
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <proc>none</proc> <!-- Avoid the javax.inject name problem -->
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>${mavenPluginPluginVersion}</version>
          <configuration>
            <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
          </configuration>
          <executions>
            <execution>
              <id>mojo-descriptor</id>
              <phase>process-classes</phase>
              <goals>
                <goal>descriptor</goal>
              </goals>
            </execution>
            <execution>
              <id>help-goal</id>
              <goals>
                <goal>helpmojo</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>

