You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2010/01/28 15:42:47 UTC

[jira] Created: (CXF-2637) Respect scope when genrating java code from maven wsdl dependencies

Respect scope when genrating java code from maven wsdl dependencies
-------------------------------------------------------------------

                 Key: CXF-2637
                 URL: https://issues.apache.org/jira/browse/CXF-2637
             Project: CXF
          Issue Type: Improvement
          Components: Tooling
    Affects Versions: 2.2.6
            Reporter: Christian Schneider
            Assignee: Christian Schneider


CXF 2.2.6 introduces generation of java code from wsdl by using maven dependencies of type wsdl. Currently all this generated code is added to the jar. The codegen plugin should also read the scope of the dependencies. If the scope is test then the generated source should be added as a test source instead of a normal source.


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


[jira] Commented: (CXF-2637) Respect scope when genrating java code from maven wsdl dependencies

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

Daniel Kulp commented on CXF-2637:
----------------------------------


Actually, when you configure the plugin, if you configure the testSourceRoot instead of the sourceRoot variable, the testSourceRoot is added to maven as a test source directory, not a source.   Thus, it wouldn't be added to the jar.

THAT said, we really did this "wrong".    WSDL2JavaMojo should have been an abstract class with two subclasses, one for generating sources (in generate-sources phase) and one for generating test sources.    That would match how maven normally does things (like the resources plugin and the compiler plugin and such).

 




> Respect scope when genrating java code from maven wsdl dependencies
> -------------------------------------------------------------------
>
>                 Key: CXF-2637
>                 URL: https://issues.apache.org/jira/browse/CXF-2637
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.6
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>
> CXF 2.2.6 introduces generation of java code from wsdl by using maven dependencies of type wsdl. Currently all this generated code is added to the jar. The codegen plugin should also read the scope of the dependencies. If the scope is test then the generated source should be added as a test source instead of a normal source.

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


[jira] Commented: (CXF-2637) Respect scope when genrating java code from maven wsdl dependencies

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806102#action_12806102 ] 

Christian Schneider commented on CXF-2637:
------------------------------------------

I know it is possible to generate code in the test sources. The problem is that the extension I did that generates sources from maven dependencies of type wsdl does not support this right now. I can look into the mojo to check if I can also create the two subclasses you mentioned.



> Respect scope when genrating java code from maven wsdl dependencies
> -------------------------------------------------------------------
>
>                 Key: CXF-2637
>                 URL: https://issues.apache.org/jira/browse/CXF-2637
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.6
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>
> CXF 2.2.6 introduces generation of java code from wsdl by using maven dependencies of type wsdl. Currently all this generated code is added to the jar. The codegen plugin should also read the scope of the dependencies. If the scope is test then the generated source should be added as a test source instead of a normal source.

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