<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>org.apache.geronimo.gshell</groupId> | |
<artifactId>gshell</artifactId> | |
<version>0.1.0</version> | |
<relativePath>../pom.xml</relativePath> | |
</parent> | |
<artifactId>gshell-core</artifactId> | |
<name>GShell :: Core</name> | |
<packaging>jar</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>${pom.groupId}</groupId> | |
<artifactId>gshell-api</artifactId> | |
<version>${pom.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>jline</groupId> | |
<artifactId>jline</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.xbean</groupId> | |
<artifactId>xbean-finder</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>picocontainer</groupId> | |
<artifactId>picocontainer</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>commons-jexl</groupId> | |
<artifactId>commons-jexl</artifactId> | |
<version>1.0</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>javacc-maven-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<id>jjtree</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>jjtree</goal> | |
</goals> | |
<configuration> | |
<sourceDirectory>${pom.basedir}/src/main/grammar</sourceDirectory> | |
<outputDirectory>${pom.basedir}/target/generated-sources/jjtree</outputDirectory> | |
</configuration> | |
</execution> | |
<execution> | |
<id>javacc</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>javacc</goal> | |
</goals> | |
<configuration> | |
<sourceDirectory>${pom.basedir}/target/generated-sources/jjtree</sourceDirectory> | |
<outputDirectory>${pom.basedir}/target/generated-sources/javacc</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- Delete generated/overwritten classes to prevent poluting the src tree --> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>remove-overrides</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<tasks> | |
<delete> | |
<fileset dir="${pom.basedir}/target/generated-sources/jjtree"> | |
<include name="ASTPlainString.java" /> | |
<include name="ASTQuotedString.java" /> | |
<include name="ASTOpaqueString.java" /> | |
</fileset> | |
</delete> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
<!-- Need to put these into a package so that Eclipse does not freak out --> | |
<execution> | |
<id>move-to-package</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<tasks> | |
<mkdir dir="${pom.basedir}/target/generated-sources/jjtree/org/apache/geronimo/gshell/commandline/parser" /> | |
<move todir="${pom.basedir}/target/generated-sources/jjtree/org/apache/geronimo/gshell/commandline/parser"> | |
<fileset dir="${pom.basedir}/target/generated-sources/jjtree"> | |
<include name="*.java" /> | |
</fileset> | |
</move> | |
<mkdir dir="${pom.basedir}/target/generated-sources/javacc/org/apache/geronimo/gshell/commandline/parser" /> | |
<move todir="${pom.basedir}/target/generated-sources/javacc/org/apache/geronimo/gshell/commandline/parser"> | |
<fileset dir="${pom.basedir}/target/generated-sources/javacc"> | |
<include name="*.java" /> | |
</fileset> | |
</move> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>retrotranslator-maven-plugin</artifactId> | |
<version>1.0-GSH</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>translate</goal> | |
</goals> | |
<configuration> | |
<verify>false</verify> | |
<failonwarning>true</failonwarning> | |
<lazy>true</lazy> | |
<verbose>false</verbose> | |
<destjar>${pom.basedir}/target/${pom.artifactId}-${pom.version}-retro.jar</destjar> | |
<includes> | |
<include> | |
<directory>${pom.basedir}/target</directory> | |
<pattern>${pom.artifactId}-${pom.version}.jar</pattern> | |
</include> | |
</includes> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>1.0</version> | |
<executions> | |
<execution> | |
<id>attach-artifacts</id> | |
<phase>package</phase> | |
<goals> | |
<goal>attach-artifact</goal> | |
</goals> | |
<configuration> | |
<artifacts> | |
<artifact> | |
<file>${pom.basedir}/target/${pom.artifactId}-${pom.version}-retro.jar</file> | |
<type>jar</type> | |
<classifier>retro</classifier> | |
</artifact> | |
</artifacts> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |