Skip to content

Instantly share code, notes, and snippets.

@amake
Last active July 2, 2021 07:17
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 amake/42ffbe7cd3bdf1201e00f75e8b63c2be to your computer and use it in GitHub Desktop.
Save amake/42ffbe7cd3bdf1201e00f75e8b63c2be to your computer and use it in GitHub Desktop.
Run OmegaT install-less with Maven
<?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/xsd/maven-4.0.0.xsd">
<!-- Execute OmegaT with Maven: mvn -q -f omegat.pom.xml exec:java -Dexec.args=-h -->
<modelVersion>4.0.0</modelVersion>
<groupId>org.omegat</groupId>
<artifactId>omegat-run</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.omegat.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.omegat</groupId>
<artifactId>omegat</artifactId>
<version>5.5.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment