javaee / metro-jaxws-commons

Metro has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/metro-wsit/
Other
10 stars 9 forks source link

Default output folder of wsimport is not in target/generated-sources/... #107

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 11 years ago

This enables Netbeans, and probably other IDE's to display the generated source code. And it is the maven convention.

In this example

org.codehaus.mojo jaxws-maven-plugin 1.12 generate-reports-ws-code generate-sources wsimport com.example.myservice [http://localhost:8080/service/myservice?wsdl](http://localhost:8080/service/myservice?wsdl) true

you will need to add

$ {basedir} /target/generated-sources/wsimport

which is not very "convention over configuration", the Maven hallmark

Affected Versions

[current]

glassfishrobot commented 11 years ago

Reported by xylifyx

glassfishrobot commented 11 years ago

@lukasj said: you are using obsolete version of the plugin which has been replaced by org.jvnet.jax-ws-commons:jaxws-maven-plugin, current version is 2.3 and following works for me there:

<plugin>
    <groupId>org.jvnet.jax-ws-commons</groupId>
    <artifactId>jaxws-maven-plugin</artifactId>
    <version>2.3</version>
    <executions>
        <execution>
            <id>generate-reports-ws-code</id>
            <phase>generate-sources</phase>
            <goals>
<goal>wsimport</goal>
            </goals>
            <configuration>
<packageName>com.example.myservice</packageName>
<wsdlUrls>
    <wsdlUrl>http://localhost:8080/service/myservice?wsdl</wsdlUrl>
</wsdlUrls>
<verbose>true</verbose>
            </configuration>
        </execution>
    </executions>
</plugin>

more info is available at https://jax-ws-commons.java.net/jaxws-maven-plugin/

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS_COMMONS-107

glassfishrobot commented 11 years ago

Marked as cannot reproduce on Wednesday, June 19th 2013, 3:26:14 am