<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016.  All rights reserved.

Contact:
     SYSTAP, LLC DBA Blazegraph
     2501 Calvert ST NW #106
     Washington, DC 20008
     licenses@blazegraph.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Copyright 2010 by TalkingTrends (Amsterdam, The Netherlands)

-->
<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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.blazegraph</groupId>
    <artifactId>blazegraph-parent</artifactId>
    <version>2.1.2</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  <groupId>com.blazegraph</groupId>
  <artifactId>sparql-grammar</artifactId>
  <version>2.1.2</version>
  <packaging>jar</packaging>
  <name>Blazegraph Sparql Grammar</name>
  <description>Blazegraph(TM) SPARQL Grammar</description>
  <!-- properties are now in the parent POM. -->
  <properties>
    <javacc.home>/opt/javacc-5.0</javacc.home>
  </properties>
  <profiles>
    <profile>
      <id>syntax</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.7</version>
            <executions>
              <execution>
                <id>javacc</id>
                <phase>generate-sources</phase>
                <configuration>
                  <target name="run javcc">
                    <exec executable="${javacc.home}/bin/jjtree" dir="src/main/java/com/bigdata/rdf/sail/sparql/ast/" osfamily="unix" failonerror="true">
                      <arg line="sparql.jjt"/>
                    </exec>
                    <exec executable="${javacc.home}/bin/javacc" dir="src/main/java/com/bigdata/rdf/sail/sparql/ast/" osfamily="unix" failonerror="true">
                      <arg line="sparql.jj"/>
                    </exec>
                  </target>
                </configuration>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <build>
    </build>
  <dependencies>
    <dependency>
      <groupId>org.openrdf.sesame</groupId>
      <artifactId>sesame-runtime</artifactId>
      <version>${sesame.version}</version>
    </dependency>
  </dependencies>
</project>
