Code für mehrere ältere Versionen eingeschlossen, Annox verwendet, Beispiele teilweise aus dem src-Directory entfernt

This commit is contained in:
2025-02-04 15:43:58 +01:00
parent e1129cad88
commit ffa010c6ae
1565 changed files with 161933 additions and 14923 deletions

View File

@@ -13,10 +13,10 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.compiler.release>17</maven.compiler.release><!-- hier sollte 11 eigentlich genügen? -->
<cxf.version>4.0.3</cxf.version>
<!-- <cxf.version>4.0.3</cxf.version>-->
</properties>
<build>
@@ -133,110 +133,118 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
</executions>
</plugin>
</plugins>
<plugin>
<!-- Lizenz: Berkeley Software Distribution, frei -->
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<version>4.0.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generateDirectory>${project.basedir}/src/main/java</generateDirectory>
<locale>en</locale>
<schemaDirectory>${project.basedir}/src/main/resources/def/${currentReleaseDir}</schemaDirectory>
<schemaLanguage>WSDL</schemaLanguage>
<schemaIncludes>
<include>*.wsdl</include>
</schemaIncludes>
<bindingIncludes>
<include>*.xjb</include>
</bindingIncludes>
<args>
<arg>-Xannotate</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-plugins</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-plugin-annotate</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</configuration>
</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>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.slf4j/slf4j-api &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License http://www.opensource.org/licenses/mit-license.php &ndash;&gt;-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-log4j12</artifactId>-->
<!-- <version>1.6.6</version>-->
<!-- <artifactId>slf4j-api</artifactId>-->
<!-- <version>2.0.16</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/com.sun.xml.messaging.saaj/saaj-impl &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License http://www.eclipse.org/org/documents/edl-v10.php &ndash;&gt;-->
<!-- <groupId>com.sun.xml.messaging.saaj</groupId>-->
<!-- <artifactId>saaj-impl</artifactId>-->
<!-- <version>3.0.4</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License http://www.eclipse.org/org/documents/edl-v10.php &ndash;&gt;-->
<!-- <groupId>org.glassfish.jaxb</groupId>-->
<!-- <artifactId>jaxb-runtime</artifactId>-->
<!-- <version>4.0.5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/jakarta.xml.soap/jakarta.xml.soap-api &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License http://www.eclipse.org/org/documents/edl-v10.php &ndash;&gt;-->
<!-- <groupId>jakarta.xml.soap</groupId>-->
<!-- <artifactId>jakarta.xml.soap-api</artifactId>-->
<!-- <version>3.0.0</version>-->
<!-- </dependency>-->
<dependency>
<!-- https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api -->
<!-- MIT License http://www.eclipse.org/org/documents/edl-v10.php -->
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/jakarta.jms/jakarta.jms-api &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License https://projects.eclipse.org/license/epl-2.0 &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License https://projects.eclipse.org/license/secondary-gpl-2.0-cp &ndash;&gt;-->
<!-- <groupId>jakarta.jms</groupId>-->
<!-- <artifactId>jakarta.jms-api</artifactId>-->
<!-- <version>3.1.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License https://www.eclipse.org/legal/epl-v20.html &ndash;&gt;-->
<!-- <groupId>org.junit.jupiter</groupId>-->
<!-- <artifactId>junit-jupiter</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.slf4j/slf4j-reload4j &ndash;&gt;-->
<!-- &lt;!&ndash; MIT License http://www.opensource.org/licenses/mit-license.php &ndash;&gt;-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-reload4j</artifactId>-->
<!-- <version>2.0.16</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
</dependencies>
<!-- Zielordner fuer Deploy unter OMDS-Entwicklung -->
@@ -253,75 +261,4 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
</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>