<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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>ProvToolbox</artifactId>
    <groupId>org.openprovenance.prov</groupId>
    <version>0.7.2</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <artifactId>prov-dot</artifactId>
  <name>PROV-DOT</name>
  <packaging>jar</packaging>
  <description>A conversion of PROV Java Beans into DOT format for visualization.</description>




  <dependencies>
    <dependency>
      <groupId>org.openprovenance.prov</groupId>
      <artifactId>prov-model</artifactId>
      <version>0.7.2</version>
    </dependency>

    <dependency>
      <groupId>org.openprovenance.prov</groupId>
      <artifactId>prov-xml</artifactId>
      <version>0.7.2</version>
    </dependency>

    <dependency>
      <groupId>org.openprovenance.prov</groupId>
      <artifactId>prov-xml</artifactId>
      <version>0.7.2</version>
      <scope>test</scope>
      <classifier>tests</classifier>
    </dependency>

    <dependency>
      <groupId>org.openprovenance.prov</groupId>
      <artifactId>prov-n</artifactId>
      <version>0.7.2</version>
      <scope>test</scope>
    </dependency>



    <dependency>
      <groupId>org.openprovenance.prov</groupId>
      <artifactId>prov-n</artifactId>
      <version>0.7.2</version>
      <scope>test</scope>
      <classifier>tests</classifier>
    </dependency>

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>${jaxb.api.version}</version>
    </dependency>

    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>${jaxb.impl.version}</version>
    </dependency>

    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.0.1</version>
    </dependency>
  </dependencies>

  <build>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>



    <plugins>
<!-- disabled
      <plugin>
        <groupId>org.jvnet.jaxb2.maven2</groupId>
	<artifactId>maven-jaxb2-plugin</artifactId>
        <executions>
          <execution>
            <id>go1</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <schemaDirectory>src/main/resources</schemaDirectory>
              <plugins>
		<plugin>
		  <groupId>org.jvnet.hyperjaxb3</groupId>
		  <artifactId>hyperjaxb3-ejb-plugin</artifactId>
		  <version>0.2.RC1</version>
		</plugin>
	      </plugins>
              <schemaIncludes>
                <schemaInclude>**/prov_printer_config.xsd</schemaInclude>

              </schemaIncludes>
              <bindingDirectory>src/main/resources</bindingDirectory>
              <bindingIncludes>
                <bindingInclude>bindings.xjb</bindingInclude>
              </bindingIncludes> 
              <strict>true</strict> 
              <verbose>true</verbose>     
              <extension>true</extension>     
              <args>
                <arg>-npa</arg>
		<arg>-Xequals</arg>
  		<arg>-XhashCode</arg>
		<arg>-XtoString</arg>
              </args>
            </configuration>
          </execution>
        </executions>
      </plugin>

-->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>

    <pluginManagement>
      <plugins>
	<plugin>
          <groupId>org.jvnet.jaxb2.maven2</groupId>
          <artifactId>maven-jaxb2-plugin</artifactId>
          <!-- <version>0.4.M1</version> -->
          <version>0.8.1</version> 
	</plugin>
	
	<plugin> 
          <!--  This plugin's configuration is used to store Eclipse m2e settings 
               only. It has no influence on the Maven build itself. --> 
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
	  <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
		<pluginExecution>
		  <pluginExecutionFilter>
                    <groupId>org.jvnet.jaxb2.maven2</groupId>
                    <artifactId>maven-jaxb2-plugin</artifactId>
                    <versionRange>[0.7.0,)</versionRange>
                    <goals>
                      <goal>generate</goal>
                    </goals>
		  </pluginExecutionFilter>
		  <action>
                    <execute>
                      <runOnIncremental>false</runOnIncremental>
                    </execute>
		  </action>
		</pluginExecution>
		
		<pluginExecution>
		  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
		    
                    <artifactId>maven-antrun-plugin</artifactId>
                    <versionRange>[1.3,)</versionRange>
                    
                    <goals>
                      <goal>run</goal>
                    </goals>
		  </pluginExecutionFilter>
		  <action>
                    <execute>
                      <runOnIncremental>false</runOnIncremental>
                    </execute>
		  </action>
		</pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
	  </configuration>
	</plugin>
      </plugins>
    </pluginManagement>
    
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
  </build>
</project>
