JAXB XJC Possible to suppress comment creation in generated classes?

前端 未结 8 1237
渐次进展
渐次进展 2021-01-01 09:45

Our project uses XJC to generate Java classes from an XSD. I\'m using JAVA EE 6.

When all the XSDs we have are re-generated, the generated classes include this comm

8条回答
  •  情深已故
    2021-01-01 10:44

    I am using this Maven plugin which replaces the // Generated on: 2011.02.23 at 02:17:06 PM GMT line:

    
        com.google.code.maven-replacer-plugin
        maven-replacer-plugin
        1.3.8
        
             
                prepare-package                          
                
                    replace
                
            
        
                                 
                                          
                src/main/java/jaxb/*.java            
            
            ^// Generated on.*$
            // Generated on: [TEXT REMOVED by maven-replacer-plugin]                         
            
                MULTILINE
            
        
    
    

提交回复
热议问题