Code für mehrere ältere Versionen eingeschlossen, Annox verwendet, Beispiele teilweise aus dem src-Directory entfernt
This commit is contained in:
@@ -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>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/org.slf4j/slf4j-api –>-->
|
||||
<!-- <!– MIT License http://www.opensource.org/licenses/mit-license.php –>-->
|
||||
<!-- <groupId>org.slf4j</groupId>-->
|
||||
<!-- <artifactId>slf4j-log4j12</artifactId>-->
|
||||
<!-- <version>1.6.6</version>-->
|
||||
<!-- <artifactId>slf4j-api</artifactId>-->
|
||||
<!-- <version>2.0.16</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/com.sun.xml.messaging.saaj/saaj-impl –>-->
|
||||
<!-- <!– MIT License http://www.eclipse.org/org/documents/edl-v10.php –>-->
|
||||
<!-- <groupId>com.sun.xml.messaging.saaj</groupId>-->
|
||||
<!-- <artifactId>saaj-impl</artifactId>-->
|
||||
<!-- <version>3.0.4</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime –>-->
|
||||
<!-- <!– MIT License http://www.eclipse.org/org/documents/edl-v10.php –>-->
|
||||
<!-- <groupId>org.glassfish.jaxb</groupId>-->
|
||||
<!-- <artifactId>jaxb-runtime</artifactId>-->
|
||||
<!-- <version>4.0.5</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/jakarta.xml.soap/jakarta.xml.soap-api –>-->
|
||||
<!-- <!– MIT License http://www.eclipse.org/org/documents/edl-v10.php –>-->
|
||||
<!-- <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>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/jakarta.jms/jakarta.jms-api –>-->
|
||||
<!-- <!– MIT License https://projects.eclipse.org/license/epl-2.0 –>-->
|
||||
<!-- <!– MIT License https://projects.eclipse.org/license/secondary-gpl-2.0-cp –>-->
|
||||
<!-- <groupId>jakarta.jms</groupId>-->
|
||||
<!-- <artifactId>jakarta.jms-api</artifactId>-->
|
||||
<!-- <version>3.1.0</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter –>-->
|
||||
<!-- <!– MIT License https://www.eclipse.org/legal/epl-v20.html –>-->
|
||||
<!-- <groupId>org.junit.jupiter</groupId>-->
|
||||
<!-- <artifactId>junit-jupiter</artifactId>-->
|
||||
<!-- <version>RELEASE</version>-->
|
||||
<!-- <scope>test</scope>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <!– https://mvnrepository.com/artifact/org.slf4j/slf4j-reload4j –>-->
|
||||
<!-- <!– MIT License http://www.opensource.org/licenses/mit-license.php –>-->
|
||||
<!-- <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><!– zeige Versionsnummer dieses Tools –>-->
|
||||
<extraarg>-impl</extraarg><!-- Generates starting point code for an implementation object. -->
|
||||
<!-- <extraarg>-validate</extraarg><!– Enables validating the WSDL before generating the code. –>-->
|
||||
<!-- <extraarg>-client</extraarg><!– Generates starting point code for a client mainline. –>-->
|
||||
<extraarg>-verbose</extraarg><!-- Displays comments during the code generation process. -->
|
||||
<!-- <extraarg>-mark-generated</extraarg><!– Markiere Klassen als generiert –>-->
|
||||
<!-- <extraarg>-suppress-generated-date</extraarg><!– aber keine Datümer einbinden –>-->
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user