You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "meillaud (JIRA)" <ji...@apache.org> on 2008/05/19 16:34:55 UTC

[jira] Created: (CXF-1593) cxf-codegen-plugin : wsdl2java does not take packagename argument into account

cxf-codegen-plugin : wsdl2java does not take packagename argument into account
------------------------------------------------------------------------------

                 Key: CXF-1593
                 URL: https://issues.apache.org/jira/browse/CXF-1593
             Project: CXF
          Issue Type: Bug
          Components: WS-* Components
    Affects Versions: 2.0.6, 2.1
            Reporter: meillaud


When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.

In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :

<plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
        <version>${cxf.version}</version>
        <executions>
        <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
          <sourceRoot>${basedir}/target/generated/</sourceRoot>
          <wsdlOptions>
            <wsdlOption>
              <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
              <extraargs>
                <extraarg>p</extraarg>
                <extraarg>com.something.else</extraarg>
              </extraargs>
            </wsdlOption>
          </wsdlOptions>
        </configuration>
            <goals>
                <goal>wsdl2java</goal>
            </goals>
        </execution>
    </executions>
      </plugin>


It seems to work only with cxf 2.0.2-incubator


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1593) cxf-codegen-plugin : wsdl2java does not take packagename argument into account

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598153#action_12598153 ] 

Daniel Kulp commented on CXF-1593:
----------------------------------


Glen, 

Nope.  That was my first thought as well.   The problem stemmed from the auto processing of the wsdls in src/main/resources/wsdl directory that was needed for the command line runs to work.   Any file in there is processed with the autodetected stuff instead of anything specified in the pom.xml.    The change I made today allowed the pom specified stuff to be merged into the autodetected stuff.

 

> cxf-codegen-plugin : wsdl2java does not take packagename argument into account
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1593
>                 URL: https://issues.apache.org/jira/browse/CXF-1593
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1, 2.0.6
>            Reporter: meillaud
>            Assignee: Daniel Kulp
>             Fix For: 2.1.1, 2.0.7
>
>
> When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.
> In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :
> <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <version>${cxf.version}</version>
>         <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>           <sourceRoot>${basedir}/target/generated/</sourceRoot>
>           <wsdlOptions>
>             <wsdlOption>
>               <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
>               <extraargs>
>                 <extraarg>p</extraarg>
>                 <extraarg>com.something.else</extraarg>
>               </extraargs>
>             </wsdlOption>
>           </wsdlOptions>
>         </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
>       </plugin>
> It seems to work only with cxf 2.0.2-incubator

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1593) cxf-codegen-plugin : wsdl2java does not take packagename argument into account

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1593.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.7
                   2.1.1
         Assignee: Daniel Kulp

> cxf-codegen-plugin : wsdl2java does not take packagename argument into account
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1593
>                 URL: https://issues.apache.org/jira/browse/CXF-1593
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1, 2.0.6
>            Reporter: meillaud
>            Assignee: Daniel Kulp
>             Fix For: 2.1.1, 2.0.7
>
>
> When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.
> In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :
> <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <version>${cxf.version}</version>
>         <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>           <sourceRoot>${basedir}/target/generated/</sourceRoot>
>           <wsdlOptions>
>             <wsdlOption>
>               <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
>               <extraargs>
>                 <extraarg>p</extraarg>
>                 <extraarg>com.something.else</extraarg>
>               </extraargs>
>             </wsdlOption>
>           </wsdlOptions>
>         </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
>       </plugin>
> It seems to work only with cxf 2.0.2-incubator

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1593) cxf-codegen-plugin : wsdl2java does not take packagename argument into account

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598012#action_12598012 ] 

Daniel Kulp commented on CXF-1593:
----------------------------------


OK.  I can duplicate the problem and am working on a fix.

There are two workarounds:

1) in the pom, add a configuration option like <wsdlRoot>${basedir}/src/dir/does/not/exist</wsdlRoot>

2) Instead of configuring any wsdl related args in the pom, create a file:
${basedir}/src/main/resources/wsdl/my_simple_wsdl-options
which is just a text file that would contains the options you want, like:
-p com.something





> cxf-codegen-plugin : wsdl2java does not take packagename argument into account
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1593
>                 URL: https://issues.apache.org/jira/browse/CXF-1593
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1, 2.0.6
>            Reporter: meillaud
>
> When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.
> In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :
> <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <version>${cxf.version}</version>
>         <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>           <sourceRoot>${basedir}/target/generated/</sourceRoot>
>           <wsdlOptions>
>             <wsdlOption>
>               <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
>               <extraargs>
>                 <extraarg>p</extraarg>
>                 <extraarg>com.something.else</extraarg>
>               </extraargs>
>             </wsdlOption>
>           </wsdlOptions>
>         </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
>       </plugin>
> It seems to work only with cxf 2.0.2-incubator

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1593) cxf-codegen-plugin : wsdl2java does not take packagename argument into account

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598138#action_12598138 ] 

Glen Mazza commented on CXF-1593:
---------------------------------

Doesn't he just need to use: <extraarg>-p</extraarg> instead of <extraarg>p</extraarg>?

> cxf-codegen-plugin : wsdl2java does not take packagename argument into account
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1593
>                 URL: https://issues.apache.org/jira/browse/CXF-1593
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1, 2.0.6
>            Reporter: meillaud
>            Assignee: Daniel Kulp
>             Fix For: 2.1.1, 2.0.7
>
>
> When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.
> In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :
> <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <version>${cxf.version}</version>
>         <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>           <sourceRoot>${basedir}/target/generated/</sourceRoot>
>           <wsdlOptions>
>             <wsdlOption>
>               <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
>               <extraargs>
>                 <extraarg>p</extraarg>
>                 <extraarg>com.something.else</extraarg>
>               </extraargs>
>             </wsdlOption>
>           </wsdlOptions>
>         </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
>       </plugin>
> It seems to work only with cxf 2.0.2-incubator

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.