Error de jaxws-maven-plugin en java 1.8

publicado por: Anonymous

estoy intentando realizar un cliente para un Web service muy sencillo, una suma de 2 valores, pero al intentar usar jaxws-maven-plugin con java 1.8 me salta un error en el POM y no soy capaz de resolverlo, espero que me podáis ayudar.

Invocation of com.sun.tools.ws.wscompile.WsimportTool failed - check output (org.codehaus.mojo:jaxws-maven-plugin:2.4.1:wsimport:default:generate-sources)

org.apache.maven.plugin.MojoExecutionException: Invocation of com.sun.tools.ws.wscompile.WsimportTool failed - check output
    at org.codehaus.mojo.jaxws.AbstractJaxwsMojo.exec(AbstractJaxwsMojo.java:488)
    at org.codehaus.mojo.jaxws.WsImportMojo.processWsdlViaUrls(WsImportMojo.java:369)
    at org.codehaus.mojo.jaxws.WsImportMojo.executeJaxws(WsImportMojo.java:288)
    at org.codehaus.mojo.jaxws.MainWsImportMojo.executeJaxws(MainWsImportMojo.java:51)
    at org.codehaus.mojo.jaxws.AbstractJaxwsMojo.execute(AbstractJaxwsMojo.java:389)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
    at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
    at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
    at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
    at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
    at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
    at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)

Soy muy nuevo en el uso de Maven y sus plugins así que es posible que sea una tontería, muchas gracias de antemano.

El POM.XML

_x000D_

_x000D_

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_x000D_
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">_x000D_
	<modelVersion>4.0.0</modelVersion>_x000D_
	<groupId>com.clona.pol</groupId>_x000D_
	<artifactId>clientesumaws</artifactId>_x000D_
	<version>1.0</version>_x000D_
	<dependencies>_x000D_
		<dependency>_x000D_
			<groupId>javax</groupId>_x000D_
			<artifactId>javaee-api</artifactId>_x000D_
			<version>6.0</version>_x000D_
			<scope>provided</scope>_x000D_
		</dependency>_x000D_
	</dependencies>_x000D_
	<pluginRepositories>_x000D_
		<pluginRepository>_x000D_
			<id>maven2-repository.dev.java.net</id>_x000D_
			<name>Java.net Repository for Maven</name>_x000D_
			<url>http://download.java.net/maven/glassfish/</url>_x000D_
		</pluginRepository>_x000D_
	</pluginRepositories>_x000D_
	<build>_x000D_
		<plugins>_x000D_
			<plugin>_x000D_
				<artifactId>maven-compiler-plugin</artifactId>_x000D_
				<configuration>_x000D_
					<source>1.8</source>_x000D_
					<target>1.8</target>_x000D_
				</configuration>_x000D_
			</plugin>_x000D_
			<plugin>_x000D_
				<groupId>org.codehaus.mojo</groupId>_x000D_
				<artifactId>jaxws-maven-plugin</artifactId>_x000D_
				<executions>_x000D_
					<execution>_x000D_
						<goals>_x000D_
							<goal>wsimport</goal>_x000D_
						</goals>_x000D_
						<configuration>_x000D_
							<wsdlUrls>_x000D_
								<wsdlUrl>http://localhost:8080/ServicioSumarImplService/ServicioSumarImpl?wsdl</wsdlUrl>_x000D_
							</wsdlUrls>_x000D_
							<packageName>clientews.servicio</packageName>_x000D_
							<sourceDestDir>${basedir}/src/main/java</sourceDestDir>_x000D_
						</configuration>_x000D_
					</execution>_x000D_
				</executions>_x000D_
			</plugin>_x000D_
		</plugins>_x000D_
	</build>_x000D_
</project>

_x000D_

_x000D_

_x000D_

solución

Solucionado!
He especificado la versión del plugin a la 1.12 en lugar de la 2.4.1, y ya me ha funcionado.
Gracias por ayudarme en lo posible.

Respondido por: Anonymous

Leave a Reply

Your email address will not be published. Required fields are marked *