To use the plugin in maven you need to follow these steps:
- Add the following plugin repository to your pom.xml
<pluginRepository>
<id>typescript-maven-plugin</id>
<url>https://raw.github.com/ppedregal/typescript-maven-plugin/master/repo</url>
</pluginRepository>
- Add the following build plugin to your pom.xml
<plugin>
<groupId>com.ppedregal.typescript</groupId>
<artifactId>typescript-maven-plugin</artifactId>
<configuration>
<sourceDirectory>src/main/ts</sourceDirectory>
<targetDirectory>target/ts</targetDirectory>
</configuration>
</plugin>
More documentation in the generated maven site here