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

Colm O hEigeartaigh commented on CXFXJC-28:
-------------------------------------------

The @Generated annotation doesn't work with "-suppress-generated-date" (that's 
part of CXF-7719). For now with wsdl2 java it just removes the date from the 
header comment, which is generated by CXF. With "xsdtojava" the header comment 
including the date is supplied by jaxb itself.

> Unrecognized parameter -suppress-generated-date
> -----------------------------------------------
>
>                 Key: CXFXJC-28
>                 URL: https://issues.apache.org/jira/browse/CXFXJC-28
>             Project: CXF XJC Utils
>          Issue Type: Bug
>          Components: Maven Plugin
>         Environment: Java 1.8
> cxf 3.2.2
> spring-boot 2.0.3
>            Reporter: member sound
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>
> Trying to use the new parameter "-suppress-generated-date" results in:
> {quote}[ERROR] Failed to execute goal 
> org.apache.cxf:cxf-xjc-plugin:3.2.2:xsdtojava (generate-sources) on project: 
> unrecognized parameter -suppress-generated-date -> [Help 1]
> {quote}
> {code:java}
>              <plugin>
>                  <groupId>org.apache.cxf</groupId>
>                  <artifactId>cxf-xjc-plugin</artifactId>
>                  <version>3.2.2</version>
>                  <configuration>
>                      <extensions>
>                          
> <extension>org.apache.cxf.xjcplugins:cxf-xjc-ts:3.2.2</extension>
>                          
> <extension>org.jvnet.jaxb2_commons:jaxb2-basics:1.11.1</extension>
>                      </extensions>
>                  </configuration>
>                  <executions>
>                      <execution>
>                          <id>generate-sources</id>
>                          <phase>generate-sources</phase>
>                         <configuration>
>                              
> <sourceRoot>${project.build.directory}/generated-sources</sourceRoot>
>                              <xsdOptions>
>                                  <xsdOption>
>                                      
> <xsdDir>${project.basedir}/src/main/resources/xsd</xsdDir>
>                                      
> <packagename>my.auto.generated</packagename>
>                                     <extensionArgs>
>                                          
> <extensionArg>-mark-generated</extensionArg>
>                                          
> <extensionArg>-suppress-generated-date</extensionArg>
>                                          <extensionArg>-Xts</extensionArg>
>                                      </extensionArgs>
>                                  </xsdOption>
>                              </xsdOptions>
>                          </configuration>
>                          <goals>
>                              <goal>xsdtojava</goal>
>                          </goals>
>                      </execution>
>                  </executions>
>      </plugin>
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to