51 lines
1.8 KiB
XML
51 lines
1.8 KiB
XML
<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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>io.kubernetes</groupId>
|
|
<artifactId>client-csharp</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<name>client-net</name>
|
|
<url>http://kubernetes.io</url>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<!--
|
|
Assumes 'autorest' is in your PATH
|
|
To install: 'sudo npm -g install autorest'
|
|
|
|
TODO: Containerize this.
|
|
-->
|
|
<configuration>
|
|
<executable>autorest</executable>
|
|
<arguments>
|
|
<argument>--input-file=${generator.spec.path}</argument>
|
|
<argument>--csharp</argument>
|
|
<argument>--namespace=${generator.package.name}</argument>
|
|
<argument>--package-version=${generator.client.version}</argument>
|
|
<argument>--output-folder=${generator.output.path}</argument>
|
|
<argument>--version=preview</argument>
|
|
<argument>--add-credentials</argument>
|
|
<argument>--debug</argument>
|
|
<argument>--verbose</argument>
|
|
<argument>--directive={from: "swagger-document", where: "$..*[?(@.consumes[0] === \"*/*\")]", transform: "$.consumes[0] = \"application/json\""}</argument>
|
|
<argument>--use=@microsoft.azure/autorest.csharp@preview</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|