Skip to content

Commit 821bb60

Browse files
committed
Ensured target/classes is created before compiling, since kotlin JS compiler is requires this
1 parent d254047 commit 821bb60

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

kotlin-js-example/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,27 @@
2929

3030
<build>
3131
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
32-
<!--testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory-->
32+
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
3333

3434
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-antrun-plugin</artifactId>
38+
<executions>
39+
<execution>
40+
<id>ensure-target-classes-dir-before-kotlin-compile</id>
41+
<phase>generate-resources</phase>
42+
<goals>
43+
<goal>run</goal>
44+
</goals>
45+
<configuration>
46+
<tasks>
47+
<mkdir dir="${basedir}/target/classes" />
48+
</tasks>
49+
</configuration>
50+
</execution>
51+
</executions>
52+
</plugin>
3553
<plugin>
3654
<artifactId>kotlin-maven-plugin</artifactId>
3755
<groupId>org.jetbrains.kotlin</groupId>

0 commit comments

Comments
 (0)