Link to home
Start Free TrialLog in
Avatar of akashsuresh
akashsureshFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Maven cxf wsdl to java archetype

I am trying a wsdl first approach to get java code generated in Eclipse.Which maven arechetype should I choose.
Avatar of sweetfa2
sweetfa2
Flag of Australia image

Most archetypes can be used.

You can refer to Maven JAX WS Tutorial for more detail.

Just ensure you have the following plugin configuration in your pom.xml

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxws-maven-plugin</artifactId>
				<version>1.12</version>
				<executions>
					<execution>
						<id>xmlvalidation</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlUrls>
								<wsdlUrl>"yourwsdlurl"?wsdl</wsdlUrl>
							</wsdlUrls>
							<packageName>your.client.package</packageName>
							<staleFile>${project.build.directory}/jaxws/stale/wsdl.xmlvalidation.done</staleFile>
						</configuration>
					</execution>
</executions>
</plugin>
</plugins>
</build>

Open in new window

Avatar of akashsuresh

ASKER

I was looking for a cxf plugin actually.any way to do with that?
ASKER CERTIFIED SOLUTION
Avatar of sweetfa2
sweetfa2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial