[ 
https://issues.apache.org/jira/browse/CXF-8436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298919#comment-17298919
 ] 

Freeman Yue Fang commented on CXF-8436:
---------------------------------------

Hi [~jurrieovergoor],

Thanks for your feedback!

But actually the -mark-generated behaviour is from jaxb xjc(JDK), CXF just 
passes '-mark-generated' attribute to jaxb xjc.
You can list xjc options by "xjc -help" and you can see 
{code}
-mark-generated    :  mark the generated code as @javax.annotation.Generated
{code}

So now this is from xjc. 

But in CXF we can have xjc plugins, please see 
https://github.com/apache/cxf-xjc-utils, where we normally put all CXF needed 
xjc plugins. If you really need this feature, you can also develop your xjc 
plugins and for the CXF wsdl2java CLI tool, there is an option
{code}
-xjc<xjc-arguments>*

   Specifies a comma separated list of arguments that are passed directly to 
XJC when the JAXB data binding is used. This option causes XJC to load 
additional plugins that augment code generation. For example to load the 
toString(ts) plugin that will add a toString() method to all generated types 
the following <xjc arguments> would be used: -xjc-Xts A list of available XJC 
plugins can be obtained by using -xjc-X.
{code} 
which can load additional plugins if it's available from the classpath.

Plus, we are welcome contributions if you may want to contribute the xjc plugin 
you develope to cxf-xjc-utils.

Best Regards
Freeman

> Support reproducable builds together with @Generated
> ----------------------------------------------------
>
>                 Key: CXF-8436
>                 URL: https://issues.apache.org/jira/browse/CXF-8436
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 3.3.8
>            Reporter: Jurrie Overgoor
>            Priority: Major
>
> We are trying to get our build reproducable. We use wsdl2java for generating 
> Java classes from WSDL files, and currently have -mark-generated in effect.
> This causes problems, as there are timestamps written to the @Generated tag. 
> I hoped that -suppress-generated-date would suppress this, but it only 
> affects the generated Javadoc comment.
> Can we get -suppress-generated-date to also suppress outputting timestamps in 
> the @Generated annotations?
>  
> When we settle on how to approach this, I would be happy to submit a pull 
> request.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to