Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Cannot create the wsdl by using plugin wsgen

I run this in command console with mvn clean install and got followings:

...
Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ TestWebService ---
[INFO] Packaging webapp
[INFO] Assembling webapp [TestWebService] in [D:\Temp\MyProjects\TestWebService\target\TestWebService]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\Temp\MyProjects\TestWebService\src\main\webapp]
[INFO] Webapp assembled in [93 msecs]
[INFO] Building war: D:\Temp\MyProjects\TestWebService\target\TestWebService.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ TestWebService ---
[INFO] Installing D:\Temp\MyProjects\TestWebService\target\TestWebService.war to d:\daten\maven2-local\com\mycompany\app\TestWebService\1.0-
SNAPSHOT\TestWebService-1.0-SNAPSHOT.war
[INFO] Installing D:\Temp\MyProjects\TestWebService\pom.xml to d:\daten\maven2-local\com\mycompany\app\TestWebService\1.0-SNAPSHOT\TestWebSe
rvice-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.453s
[INFO] Finished at: Wed Sep 07 10:00:51 CEST 2011
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------

...

The result is successful but I couldn't find the wsdl file and couldn't see the plugin really executed.


Thomas



--- Anders Hammar <anders@xxxxxxxxxx> schrieb am Mi, 7.9.2011:

Von: Anders Hammar <anders@xxxxxxxxxx>
Betreff: Re: [m2e-users] Cannot create the wsdl by using plugin wsgen
An: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Datum: Mittwoch, 7. September, 2011 09:43 Uhr

You still need to declare a binding in the pom (unless you have a custom packaging type which already includes this).
All this i very easy to find out by executing from command line. Does it work there? Check the console output and verify that the plugin really executes.

/Anders

On Wed, Sep 7, 2011 at 09:29, Stephen Coy <steve@xxxxxxxxxxxxx> wrote:
This plugin is bound by default to the "process-classes" phase for the ws-gen goal. I think the problem is that there is not yet an m2e connector for this plugin. The OP can still run a regular "maven install" from inside eclipse as he did before and this will work (I do it every day for the ws-import goal).

Cheers

Steve C

On 07/09/2011, at 5:09 PM, Anders Hammar wrote:

Well, your issue is a basic Maven issue. You have not bound the execution of the plugin to the maven build lifecycle. You have merely created a m2e configuration, which I guess m2e ignores as the plugin is not bound to the lifecycle.

Read this:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

/Anders

On Wed, Sep 7, 2011 at 08:58, Thomas Chang <thomas2004ch@xxxxxxxx> wrote:
You can find the code in the pom.xml as follow:

...

<artifactId>jaxws-maven-plugin</artifactId>
...

Doesn't it mean the jaxws-plugin not bound?


Thomas




--- Anders Hammar <anders@xxxxxxxxxx> schrieb am Mi, 7.9.2011:

Von: Anders Hammar <anders@xxxxxxxxxx>
Betreff: Re: [m2e-users] Cannot create the wsdl by using plugin wsgen
An: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Datum: Mittwoch, 7. September, 2011 08:34 Uhr


But the jaxws plugin hasn't been bound to the lifecycle?

/Anders

On Wed, Sep 7, 2011 at 08:09, Thomas Chang <thomas2004ch@xxxxxxxx> wrote:
Hi all,

Formerly I use the maveb 2.0.8 and can use the wsgen plugin to create the wsdl file in eclipse by running mvn package or mvn install.

Now I change to use the maven 3.0.3 and I can't create the wsdl anymore. Here is my pom.xml.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany.app</groupId>
    <artifactId>TestWebService</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>TestWebService Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <pluginRepositories>
        <pluginRepository>
            <id>maven2-repository.dev.java.net</id>
            <url>http://download.java.net/maven/2/</url>
        </pluginRepository>
    </pluginRepositories>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>
        <!-- jax-ws -->
        <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-rt</artifactId>
            <version>2.1.5</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.xml.bind</groupId>
                    <artifactId>jaxb-impl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.xml.bind</groupId>
                    <artifactId>jaxb-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.xml.stream</groupId>
                    <artifactId>stax-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.xml.soap</groupId>
                    <artifactId>saaj-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.xml.messaging.saaj</groupId>
                    <artifactId>saaj-impl</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.1.9</version>
        </dependency>
        <dependency>
            <groupId>javax.xml.stream</groupId>
            <artifactId>stax-api</artifactId>
            <version>1.0-2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.6.2</version>
        </dependency>
    </dependencies>
    <build>
        <finalName>TestWebService</finalName>
        <plugins>
            <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>wsgen</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


Cheers

Thomas

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



-----Integrierter Anhang folgt-----


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

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


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


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



-----Integrierter Anhang folgt-----

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

Back to the top