<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>
  	<artifactId>wdc-rest-api-python</artifactId>
  	<name>wdc-rest-api-python</name>
	<packaging>pom</packaging>

	<parent>
    	<groupId>kos.wdc</groupId>
    	<artifactId>wdc</artifactId>
    	<version>${revision}</version>
	</parent>
	
	<build>
		<plugins>
			<!-- 
				Erstellt die Doku für den Python-Client. Löuft vor dem 
				Test. Ideal ist es noch nicht, da so immer noch einmal
				mvn test laufen muss, um bei einem "saubereren" deploy
				dann auch die Doku drin zu haben. 
				
				Ehrlicherweise müsste man die Doku vom wdc-rest-api 
				trennen und ein einen Sub-Modul daraus machen. Das macht 
				dann nur das Deployment davon schwerer. 
			-->
			<plugin>
        		<groupId>org.codehaus.mojo</groupId>
       			<artifactId>exec-maven-plugin</artifactId>
       			<version>${exec-maven-plugin.version}</version>
       			<configuration>
       				<skip>false</skip>
       				<executable>poetry</executable>
       				<workingDirectory>${basedir}/dsslab-wdc-client</workingDirectory>
       			</configuration>
       			<executions>
					<execution>
				    	<id>build python docs</id>
				    	<phase>package</phase>
				    	<goals>
				      		<goal>exec</goal>
				    	</goals>
					    <configuration>
					      <arguments>
					        <argument>run</argument>
					        <argument>make</argument>
					        <argument>html</argument>
					      </arguments>
					    </configuration>
				  	</execution>
       			</executions>
			</plugin>
		</plugins>
	</build>
</project>