Benjamin Marwell created CXF-9030:
-------------------------------------
Summary: "-suppress-generated-date" does not omit timestamps from
@Generated
Key: CXF-9030
URL: https://issues.apache.org/jira/browse/CXF-9030
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 3.6.3
Reporter: Benjamin Marwell
h2. Problem description
Given this config:
{code:xml}
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${dependency.cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<defaultOptions>
<markGenerated>true</markGenerated>
<suppressGeneratedDate>true</suppressGeneratedDate>
</defaultOptions>
</configuration>
</execution>
</executions>
</plugin>
{code}
The resulting code will have a timestamp in the {{@Generated}} annotation:
{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynSMeldung", propOrder = {
"meldungsNummer",
"klasse",
"meldungsText"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.5",
date = "2024-06-18T09:12:10+02:00")
public class MyServiceClass { }
{code}
h2. Expected behaviour
No timestamp was generated (for reproducible builds)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)