[
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.