Files
shared/sharepoint/api/pom.xml
2015-02-05 13:11:21 +00:00

272 lines
13 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.muehlencord.shared</groupId>
<artifactId>shared-sharepoint</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>api</name>
<build>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
-->
<!-- project overall settings -->
<plugin>
<!-- Ensure that usage of the maven-jaxb2-plugin is JDK 8 compatible in absence of a fix
for https://java.net/jira/browse/MAVEN_JAXB2_PLUGIN-80.
TODO: bug is fixed, but how to apply to xsd generation plugin-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<id>set-additional-system-properties</id>
<goals>
<goal>set-system-properties</goal>
</goals>
</execution>
</executions>
<configuration>
<properties>
<property>
<name>javax.xml.accessExternalSchema</name>
<value>file,http</value>
</property>
</properties>
</configuration>
</plugin>
<!-- convert wsdl to object -->
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.2</version> <!-- TODO does not work with 2.3 -->
<configuration>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
</configuration>
<executions>
<execution>
<id>authentication2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.authentication</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>authentication.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>alerts2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.alerts</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>alerts.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>sites2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.sites</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>sites.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>webs2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.webs</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>webs.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>lists2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.lists</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>lists.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>search2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.search</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>search.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
<execution>
<id>usergroup2010</id>
<phase>generate-sources</phase>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>com.microsoft.schemas.sharepoint.soap.usergroup</packageName>
<wsdlDirectory>${basedir}/src/main/resources/2010/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>usergroup.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
</execution>
</executions>
</plugin>
<!-- Maven jaxb2 plugin - invoke the xjc compiler to compile XML schema into Java classes. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<quiet>false</quiet>
<verbose>false</verbose>
<clearOutputDir>false</clearOutputDir> <!-- do not set to true, multiple executions into same dir -->
</configuration>
<executions>
<!-- sharepoint batch definition for updating lists etc. -->
<execution>
<id>batch</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<!-- The schema directory or xsd files. -->
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<!-- the file to read -->
<schemaFiles>batch.xsd</schemaFiles>
<!-- The package in which the source files will be generated. -->
<packageName>de.muehlencord.shared.sharepoint.api.batch</packageName>
<!-- The working directory to create the generated java source files. -->
<outputDirectory>${project.build.directory}/generated-sources/jaxb/</outputDirectory>
<removeOldOutput>true</removeOldOutput>
<!-- bindings to use -->
<bindingDirectory>${basedir}/src/main/resources/jaxb</bindingDirectory>
<bindingFiles>batch.xml</bindingFiles>
<extension>true</extension>
</configuration>
</execution>
<!-- lists definition, returned by sharepoint when execute a query on a lists -->
<execution>
<id>lists</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<!-- The schema directory or xsd files. -->
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<!-- the file to read -->
<schemaFiles>lists.xsd</schemaFiles>
<!-- The package in which the source files will be generated. -->
<packageName>de.muehlencord.shared.sharepoint.api.lists</packageName>
<!-- The working directory to create the generated java source files. -->
<outputDirectory>${project.build.directory}/generated-sources/jaxb/</outputDirectory>
<removeOldOutput>true</removeOldOutput>
<!-- bindings to use -->
<bindingDirectory>${basedir}/src/main/resources/jaxb</bindingDirectory>
<bindingFiles>lists.xml</bindingFiles>
<extension>true</extension>
</configuration>
</execution>
<!-- user/group definition, returned by sharepoint when calling usergroup service -->
<execution>
<id>usergroup2010</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<!-- The schema directory or xsd files. -->
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<!-- the file to read -->
<schemaFiles>usergroup.xsd</schemaFiles>
<!-- The package in which the source files will be generated. -->
<packageName>de.muehlencord.shared.sharepoint.api.usergroup</packageName>
<!-- The working directory to create the generated java source files. -->
<outputDirectory>${project.build.directory}/generated-sources/jaxb/</outputDirectory>
<removeOldOutput>true</removeOldOutput>
<!-- bindings to use -->
<bindingDirectory>${basedir}/src/main/resources/jaxb</bindingDirectory>
<bindingFiles>usergroup.xml</bindingFiles>
<extension>true</extension>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>shared-util</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>