Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.32 KB

File metadata and controls

43 lines (39 loc) · 1.32 KB

Example: How to use the Wirespec Maven Plugin

Wirespec Maven Plugin Configuration

<plugin>
    <groupId>community.flock.wirespec.plugin.maven</groupId>
    <artifactId>wirespec-maven-plugin</artifactId>
    <version>0.0.0-SNAPSHOT</version>
    <executions>
        <execution>
            <id>typescript</id>
            <goals>
                <goal>compile</goal>
            </goals>
            <configuration>
                <input>${project.basedir}/src/main/wirespec</input>
                <output>${project.basedir}/src/main/typescript/generated</output>
                <languages>
                    <language>TypeScript</language>
                </languages>
            </configuration>
        </execution>
        <execution>
            <id>java</id>
            <goals>
                <goal>compile</goal>
            </goals>
            <configuration>
                <input>${project.basedir}/src/main/wirespec</input>
                <output>${project.build.directory}/generated-sources</output>
                <packageName>community.flock.wirespec.generated.java</packageName>
                <languages>
                    <language>Java</language>
                </languages>
            </configuration>
        </execution>
    </executions>
</plugin>

According to the actual pom.xml file.