You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "member sound (JIRA)" <ji...@apache.org> on 2018/08/14 13:26:00 UTC
[jira] [Comment Edited] (CXFXJC-28) Unrecognized parameter
-suppress-generated-date
[ https://issues.apache.org/jira/browse/CXFXJC-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16579788#comment-16579788 ]
member sound edited comment on CXFXJC-28 at 8/14/18 1:25 PM:
-------------------------------------------------------------
I tried cxf-3.2.5 and cxf-3.2.6, both failed and still don't recognize the parameter.
Maybe this is more based on the "cxf-xjc-plugin" directly, which is still on 3.2.2?
{quote}[DEBUG] Exception in thread "main" com.sun.tools.xjc.BadCommandLineException: unrecognized parameter -suppress-generated-date
[DEBUG] at com.sun.tools.xjc.Options.parseArguments(Options.java:814)
[DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.run(XSDToJavaRunner.java:173)
[DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.main(XSDToJavaRunner.java:375)
{quote}
was (Author: membersound):
{quote}[DEBUG] Exception in thread "main" com.sun.tools.xjc.BadCommandLineException: unrecognized parameter -suppress-generated-date
[DEBUG] at com.sun.tools.xjc.Options.parseArguments(Options.java:814)
[DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.run(XSDToJavaRunner.java:173)
[DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.main(XSDToJavaRunner.java:375)
{quote}
> 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
> 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)