blob: b2465f62294d2337fa0c0349c43632bca26e3fbd [file] [log] [blame]
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.googlecode.prolog-cafe</groupId>
<artifactId>PrologCafe</artifactId>
<packaging>jar</packaging>
<version>1.3-SNAPSHOT</version>
<name>Prolog Cafe</name>
<build>
<sourceDirectory>java_src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>clean_prolog</id>
<phase>clean</phase>
<configuration>
<target>
<exec executable="make">
<arg value="realclean" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>build_prolog</id>
<phase>generate-sources</phase>
<configuration>
<target>
<exec executable="make">
<arg value="plc" />
<arg value="gen-builtin" />
<arg value="gen-compiler" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/generated-sources/prologcafe-builtin</source>
<source>target/generated-sources/prologcafe-pl2am</source>
<source>target/generated-sources/prologcafe-am2j</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
<debug>false</debug>
<optimize>true</optimize>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<configuration>
<includes>
<include>**/*.java</include>
<include>**/*.pl</include>
</includes>
<excludes>
<exclude>com/googlecode/prolog_cafe/compiler/am2j/**/*.java</exclude>
<exclude>com/googlecode/prolog_cafe/compiler/pl2am/**/*.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>