Fix std lib generator: allow executing from command line.

This commit is contained in:
Nikita Skvortsov
2013-09-22 11:41:07 +04:00
parent dae791d7b1
commit aaf31945de
3 changed files with 39 additions and 21 deletions
+35
View File
@@ -26,6 +26,7 @@
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
@@ -33,6 +34,40 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>generators.GeneratorsPackage</mainClass>
<classpathScope>compile</classpathScope>
<arguments>
<argument>${project.parent.basedir}/..</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>