jaxrpc-maven-plugin Maven Mojo

Invokes JAX-RPC wscompile.

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.sf.jaxrpc-maven
ArtifactId

ArtifactId

jaxrpc-maven-plugin
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

jaxrpc-maven-plugin Maven Mojo
Invokes JAX-RPC wscompile.
Project URL

Project URL

https://github.com/anomen-s/maven-jaxrpc-plugin
Source Code Management

Source Code Management

https://github.com/anomen-s/maven-jaxrpc-plugin.git

Download jaxrpc-maven-plugin

How to add to project

<plugin>
    <groupId>net.sf.jaxrpc-maven</groupId>
    <artifactId>jaxrpc-maven-plugin</artifactId>
    <version>0.3.1</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
com.sun.xml.rpc : jaxrpc-impl jar 1.1.3_01
javax.mail : mail jar 1.4.1
org.apache.maven : maven-plugin-api jar 3.1.1
org.apache.maven : maven-core jar 3.1.1
commons-lang : commons-lang jar 2.4

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.1

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

JAX-RPC Maven Plugin

This plugin can generate Java classes for JAX-RPC web service clients/servers.

Note: JAX-RPC is obsolete framework and if you work with Web Services in Java using JAX-WS and looking for Maven plugin, you probably want to go here jaxws-maven-plugin.

Installation

  • Execute mvn install

Usage

This sample shows usage of the plugin.

Content of pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.company.portal</groupId>
	<artifactId>WSwsdls</artifactId>
	<packaging>jar</packaging>
	<version>1.0.0-SNAPSHOT</version>
	<dependencies>
		<dependency>
			<groupId>com.sun.xml.rpc</groupId>
			<artifactId>jaxrpc-impl</artifactId>
			<version>1.1.3_01</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>net.sf.jaxrpc-maven</groupId>
				<artifactId>jaxrpc-maven-plugin</artifactId>
				<version>0.3.1</version>
				<executions>
					<execution>
						<id>jax-rpc-scoring-client</id>
						<phase>process-resources</phase>
						<goals>
							<goal>wscompile</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<config>${project.basedir}/jaxrpc-config.xml</config>
					<operation>gen:client</operation>
					<mapping>${project.build.outputDirectory}/META-INF/jaxrpc-mapping.xml</mapping>
					<nd>${project.build.outputDirectory}/META-INF/wsdl</nd>
					<d>${project.build.directory}/generated-classes/jaxrpc</d>
					<keep>true</keep>
					<verbose>true</verbose>
				</configuration>
				<dependencies>
				    <!-- see here: https://github.com/anomen-s/maven-jaxrpc-plugin/issues/4 -->
				    <dependency>
				        <groupId>com.sun</groupId>
				        <artifactId>tools</artifactId>
				        <version>1.5.0</version>
				        <scope>system</scope>
				        <systemPath>${java.home}/../lib/tools.jar</systemPath>
				    </dependency>
				</dependencies>
			</plugin>
		</plugins>
	</build>
</project>

jaxrpc-config.xml:

<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
	<wsdl 
		location="src/main/wsdl/queuemanager.wsdl"
		packageName="com.company.queuemanager.generated"/>
</configuration>

Versions

Version
0.3.1