使用jaxb2 maven插件在Java文件中跳过Generated on ... [英] Skip the Generated on... in Java files using jaxb2 maven plugin

查看:116
本文介绍了使用jaxb2 maven插件在Java文件中跳过Generated on ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让 maven-jaxb2-plugin 不要写'免责声明':

I'd like to get the maven-jaxb2-plugin to do not write the 'disclaimer':

This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.2-hudson-jaxb-ri-2.2-63- 
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
Any modifications to this file will be lost upon recompilation of the source schema. 
Generated on: 2011.08.01 at 09:20:43 AM CEST 

至少时间戳。

谢谢。

Udo。

推荐答案

如果使用命令行源生成器或 header ='false',请使用 -no-header / code>如果你使用ant。

Use -no-header if you use command line source generator or header='false' if you use ant.

在pom中,在配置< args>< arg> -no-header< ; / arg>< / args>

这篇关于使用jaxb2 maven插件在Java文件中跳过Generated on ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆