Skip to content

Instantly share code, notes, and snippets.

@Bekbolatov
Created December 1, 2015 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bekbolatov/e7ce997a16bbd1f1d7fa to your computer and use it in GitHub Desktop.
Save Bekbolatov/e7ce997a16bbd1f1d7fa to your computer and use it in GitHub Desktop.
Maven build definition for proj4.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sparkydots.uw</groupId>
<artifactId>proj4</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<finalName>mt-submit</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>project.local</id>
<name>project</name>
<url>file:${project.basedir}/repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Codehaus</id>
<url>http://repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.sparkydots.uw</groupId>
<artifactId>mt-lib</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>MONO_NOLM</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-server</argument>
<argument>-mx2000m</argument>
<argument>-classpath</argument>
<classpath/>
<argument>edu.berkeley.nlp.assignments.decoding.MtDecoderTester</argument>
<argument>-path</argument>
<argument>data</argument>
<argument>-decoderType</argument>
<argument>MONO_NOLM</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>MONO_LM</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-server</argument>
<argument>-mx2000m</argument>
<argument>-classpath</argument>
<classpath/>
<argument>edu.berkeley.nlp.assignments.decoding.MtDecoderTester</argument>
<argument>-path</argument>
<argument>data</argument>
<argument>-decoderType</argument>
<argument>MONO_LM</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>DIST_LM</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-server</argument>
<argument>-mx2000m</argument>
<argument>-classpath</argument>
<classpath/>
<argument>edu.berkeley.nlp.assignments.decoding.MtDecoderTester</argument>
<argument>-path</argument>
<argument>data</argument>
<argument>-decoderType</argument>
<argument>DIST_LM</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment