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

jaxws-maven-plugin generates handler folder in the root of the parent project #87

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 12 years ago

Running mvn compile causes a folder structure containing the handler.xml files to be generated int the root of the parent project.

**Child pom.xml**<plugin>
    <groupId>org.jvnet.jax-ws-commons</groupId>
    <artifactId>jaxws-maven-plugin</artifactId>
    <version>2.2</version>
    <executions>
        <execution>
            <id>wsimport-somethingservice</id>
            <goals>
                <goal>wsimport</goal>
            </goals>
            <configuration>
                <verbose>true</verbose>
                <target>2.1</target>
                <wsdlDirectory>${basedir}/src/main/wsdl/</wsdlDirectory>
                <bindingDirectory>${basedir}/src/main/wsdl/binding</bindingDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

Note the first two files and their containing folders which are generated by the plugin: 

**folder structure**jaxws-maven-plugin-bug-parent
  com/something/SomethingService_handler.xml
  com/something/SomethingServicePortType_handler.xml{color}
  jaxws-maven-plugin-bug-child/...
  pom.xml

I've also attached a very minimal example. This bug is not reproducible with version 2.1 of jaxws-maven-plugin

Environment

Tested with both maven 2.2.1 and 3.0.3

Affected Versions

[2.2]

glassfishrobot commented 12 years ago

Reported by danmana

glassfishrobot commented 12 years ago

gpeche said: I am suffering the same problem with 2.2:

Using Maven 3.0.3 here.

glassfishrobot commented 11 years ago

kleinew said: Probably relevant part from AbstractJaxwsMojogetCommonArgs(), introduced in commit 968:

if (xnocompile && isDefaultOut(getDestDir())) {
            destDir = null;//new File(project.getBuild().getDirectory(), "dummy-ws");
       }
glassfishrobot commented 11 years ago

@lukasj said: http://java.net/projects/jax-ws-commons/sources/svn/revision/1006

glassfishrobot commented 11 years ago

@lukasj said: closing issues after 2.2.1 release

glassfishrobot commented 12 years ago

File: jaxws-maven-plugin-bug-parent.zip Attached By: danmana

glassfishrobot commented 7 years ago

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

glassfishrobot commented 11 years ago

Marked as fixed on Saturday, February 23rd 2013, 4:44:24 pm