[
https://issues.apache.org/jira/browse/CXF-9030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko resolved CXF-9030.
-------------------------------
Resolution: Fixed
> "-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.5.8, 3.6.3, 4.0.4
> Reporter: Benjamin Marwell
> Priority: Major
> Fix For: 3.5.9, 4.1.0, 4.0.5, 3.6.4
>
>
> 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 = "MyServiceClass", propOrder = {
> "p1",
> "p2",
> "p3"
> })
> @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)