Files
productmodel/OMDSServiceDefinition/pom.xml

328 lines
10 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>at.vvo.omds</groupId>
<artifactId>OMDSServiceDefinition</artifactId>
<version>1.11.0</version>
<name>OMDS Service Definition</name>
<description>Version 1.11.0. Dieses Projekt enthält die Definitionen für die OMDS-Services.</description>
<properties>
<currentReleaseDir>r1_11_0</currentReleaseDir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.compiler.release>17</maven.compiler.release>
<cxf.version>4.0.3</cxf.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- dieses Plugin wird fuer die Codegenerierung verwendet -->
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>install</phase> <!-- bind to the install phase, damit source-jar und javadoc-jar mit eingepackt werden -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <verbose>true</verbose>-->
<!-- </configuration>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<!-- <Revision>${SVN_REVISION}</Revision>-->
<!-- <BuildTag>${BUILD_TAG}</BuildTag>-->
<BuildTimestamp>${maven.build.timestamp}</BuildTimestamp>
<JDKVersion>${maven.compiler.release}</JDKVersion>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<doclint>reference</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<!-- CFX Start -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<!-- Jetty is needed if you're not using the CXFServlet -->
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.cxf</groupId>-->
<!-- <artifactId>cxf-rt-ws-security</artifactId>-->
<!-- <version>${cxf.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-features-logging</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- CFX Ende -->
</dependencies>
</dependencyManagement>
<dependencies>
<!-- CFX Start -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<scope>provided</scope>
</dependency>
<!-- Jetty is needed if you're not using the CXFServlet -->
<!-- <dependency>-->
<!-- <groupId>org.apache.cxf</groupId>-->
<!-- <artifactId>cxf-rt-transports-http-jetty</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.cxf</groupId>-->
<!-- <artifactId>cxf-rt-ws-security</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-features-logging</artifactId>
<scope>provided</scope>
</dependency>
<!-- CFX Ende -->
<!-- <dependency>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-log4j12</artifactId>-->
<!-- <version>1.6.6</version>-->
<!-- </dependency>-->
</dependencies>
<!-- Zielordner fuer Deploy unter OMDS-Entwicklung -->
<distributionManagement>
<repository>
<id>omdsaccess</id><!-- Username-Passwort in servers im settings.xml unter dieser id -->
<name>OMDS Release Repository</name>
<url>https://entw.kapdion.com/nexus/repository/omdsReleases/</url>
</repository>
<snapshotRepository>
<id>omdsaccess</id><!-- Username-Passwort in servers im settings.xml unter dieser id -->
<name>OMDS Snapshot Repository</name>
<url>https://entw.kapdion.com/nexus/repository/omdsSnapshots/</url>
</snapshotRepository>
</distributionManagement>
<profiles>
<!-- Spezielles Profil um Java-Code fuer die VU-Schnittstelle aus dem WSDL zu generieren -->
<profile>
<id>genJavaFromWsdl</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- <bindings.location>${basedir}/src/main/resources/wsdl</bindings.location>-->
<wsdl.dir>${basedir}/src/main/resources/def/${currentReleaseDir}</wsdl.dir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<!-- Version wird oben festgelegt -->
<!-- Maven Plugin https://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html -->
<!-- Optionen des Tools wsdl2java: https://cxf.apache.org/docs/wsdl-to-java.html -->
<configuration>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
<!-- <encoding>UTF-8</encoding>-->
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase><!-- das ist ziemlich bald nach Clean und vor Compile -->
<configuration>
<sourceRoot>${basedir}/src/main/java</sourceRoot> <!-- baue Klassen in den normalen Pfad -->
<!-- defaultOptions gelten für alle WSDLs -->
<!-- <defaultOptions>-->
<!-- </defaultOptions>-->
<!-- wsdlOptions gelten für das angegebene WSDL -->
<wsdlOptions>
<wsdlOption>
<wsdl>${wsdl.dir}/omds3Services.wsdl</wsdl>
<!-- wsdl/jaxb Binding wie der Code generiert werden soll -->
<!-- you can set the options of wsdl2java command by using the <extraargs> -->
<extraargs>
<!-- <extraarg>-v</extraarg>&lt;!&ndash; zeige Versionsnummer dieses Tools &ndash;&gt;-->
<extraarg>-impl</extraarg><!-- Generates starting point code for an implementation object. -->
<!-- <extraarg>-validate</extraarg>&lt;!&ndash; Enables validating the WSDL before generating the code. &ndash;&gt;-->
<!-- <extraarg>-client</extraarg>&lt;!&ndash; Generates starting point code for a client mainline. &ndash;&gt;-->
<extraarg>-verbose</extraarg><!-- Displays comments during the code generation process. -->
<!-- <extraarg>-mark-generated</extraarg>&lt;!&ndash; Markiere Klassen als generiert &ndash;&gt;-->
<!-- <extraarg>-suppress-generated-date</extraarg>&lt;!&ndash; aber keine Datümer einbinden &ndash;&gt;-->
</extraargs>
<bindingFiles>
<!-- wsdl -->
<bindingFile>${wsdl.dir}/wsdl_binding.xml</bindingFile>
<!-- xsds -->
<bindingFile>${wsdl.dir}/omds_binding.xml</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>