wscompile
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>wscompile</artifactId>
<version>4.0.3</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
SPDX-License-Identifier: BSD-3-Clause
-->
<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">
<parent>
<groupId>com.sun.xml.ws</groupId>
<artifactId>project</artifactId>
<version>4.0.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.xml.ws</groupId>
<artifactId>wscompile</artifactId>
<version>4.0.3</version>
<name>JAX-WS RI Tools (wscompile)</name>
<description>JAX-WS RI Tools</description>
<properties>
<spotbugs.exclude>${project.basedir}/exclude.xml</spotbugs.exclude>
<!-- too many to fix -->
<jdoc.doclint>-missing</jdoc.doclint>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rt</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rt-fi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>httpspi-servlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>servlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-jxc</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-xjc</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-launcher</artifactId>
<version>${ant.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/version</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
<configuration>
<rules>
<requireProperty>
<property>xml.bind-api.version</property>
<message>Property xml.bind-api.version not imported or set!</message>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-api</id>
<phase>process-test-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib/api</outputDirectory>
<excludeTransitive>true</excludeTransitive>
<artifactItems>
<artifactItem>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>jakarta.xml.soap</groupId>
<artifactId>jakarta.xml.soap-api</artifactId>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>copy-lib</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeArtifactIds>ant-launcher,ant-nodeps</excludeArtifactIds>
<excludeScope>system</excludeScope>
</configuration>
</execution>
<execution>
<id>copy-ant</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib/ant</outputDirectory>
<includeArtifactIds>ant,ant-launcher,ant-nodeps</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<compilerArgs>
<arg>--add-reads</arg>
<arg>com.sun.tools.ws.wscompile=ALL-UNNAMED</arg>
<arg>--add-reads</arg>
<arg>com.sun.istack.tools=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<configuration>
<compilerArgs>
<arg>--add-reads</arg>
<arg>com.sun.tools.ws.wscompile=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}/test-antprojects</java.io.tmpdir>
<bin.folder>${project.build.directory}</bin.folder>
<xml.bind-api.version>${xml.bind-api.version}</xml.bind-api.version>
<jakarta.annotation-api.version>${jakarta.annotation-api.version}</jakarta.annotation-api.version>
<xml.ws-api.version>${xml.ws-api.version}</xml.ws-api.version>
<coverage>${coverage}</coverage>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludes>
<exclude>com.sun.tools.ws.test.wsdl.parser.WSImportSec2Test</exclude>
</excludes>
<argLine>
--add-reads com.sun.tools.ws.wscompile=ant
--add-opens com.sun.tools.ws.wscompile/com.sun.tools.ws.ant=com.sun.tools.ws.wscompile.test
--add-opens com.sun.tools.ws.wscompile/com.sun.tools.ws.wscompile=com.sun.tools.ws.wscompile.test
</argLine>
</configuration>
</execution>
<execution>
<id>test-fork2</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<com.sun.xml.ws.disableXmlSecurity>true</com.sun.xml.ws.disableXmlSecurity>
</systemPropertyVariables>
<includes>
<include>com.sun.tools.ws.test.wsdl.parser.WSImportSec2Test</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultEntries>false</addDefaultEntries>
</manifest>
</archive>
</configuration>
</plugin>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>${ant.version}</version>
</dependency>
</dependencies>
TODO endorse for JDK9
<executions>
<execution>
<id>EBCDIC-test</id>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="Starting EBCDIC test." />
<path id="compile.classpath">
<pathelement location="${basedir}/target/classes"/>
<fileset dir="${basedir}/target/lib/" includes="*.jar"/>
<fileset dir="${basedir}/target/lib/ant" includes="*.jar" />
</path>
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath refid="compile.classpath"/>
</taskdef>
<mkdir dir="${basedir}/target/EBCDIC" />
<wsimport
fork="true"
debug="true"
destdir="${basedir}/target/EBCDIC"
quiet="true"
wsdl="${basedir}/src/test/resources/com/sun/tools/ws/EBCDIC.wsdl">
<jvmarg line="-Dfile.encoding=Cp037"/>
<jvmarg line="-Dnet.sourceforge.cobertura.datafile=${net.sourceforge.cobertura.datafile}"/>
</wsimport>
</target>
<!– TODO JDK9 endorse for –>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalOptions>
--add-reads com.sun.tools.ws.wscompile=ALL-UNNAMED
--add-reads com.sun.istack.tools=ALL-UNNAMED
</additionalOptions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>coverage</id>
<activation>
<property>
<name>jacoco-build</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>default-prepare-agent-for-ant</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>coverage</propertyName>
</configuration>
</execution>
<execution>
<id>default-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>