Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Cannot create class by using plugin wsimport

Hi Thomas,

I think you've put the configuration in the wrong place.
Try this:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>1.10</version>
                <configuration>
                    <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
                    <wsdlFiles>
                        <wsdlFile>MyWebService.wsdl</wsdlFile>
                    </wsdlFiles>
                    <wsdlLocation>http://172.23.17.40:8080/TestWebService/mywebservice?wsdl</wsdlLocation>
                    <packageName>com.me.jaxws.stub</packageName>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>jaxws-maven-plugin</artifactId>
                                    <versionRange>1.10</versionRange>
                                    <goals>
                                        <goal>wsimport</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>

Cheers,
Rafał


On 09/05/2011 11:37 AM, Thomas Chang wrote:
Hi all,

Formerly I use maven 2.8 and can create the stub class by using the plugin wsimport. Now I change to maven 3.0.3 but no stub class is create after I run mvn package. The plugin in my pom.xml looks as follow:

...
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>jaxws-maven-plugin</artifactId>
                                    <versionRange>1.10</versionRange>
                                    <goals>
                                        <goal>wsimport</goal>
                                    </goals>
                                    <configuration>
                                        <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
                                        <wsdlFiles>
                                            <wsdlFile>MyWebService.wsdl</wsdlFile>
                                        </wsdlFiles>
                                        <wsdlLocation>http://172.23.17.40:8080/TestWebService/mywebservice?wsdl</wsdlLocation>
                                        <packageName>com.me.jaxws.stub</packageName>
                                    </configuration>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
...


Someone can help?

Regards

Thomas

_______________________________________________ m2e-users mailing list m2e-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top