Skip to content

Commit 1da418c

Browse files
authored
[MNG-8675] Correctly deprecate Resource in the model (#2234)
1 parent b1466d8 commit 1da418c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

api/maven-api-model/src/main/mdo/maven.mdo

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,9 +2171,15 @@
21712171
<class>
21722172
<name>Resource</name>
21732173
<description>This element describes all of the classpath resources associated with a project
2174-
or unit tests.</description>
2174+
or unit tests.
2175+
2176+
@deprecated Replaced by {@code &lt;Source&gt;} with {@code resources} language.
2177+
</description>
21752178
<version>3.0.0+</version>
21762179
<superClass>FileSet</superClass>
2180+
<annotations>
2181+
<annotation>@Deprecated(since = "4.0.0")</annotation>
2182+
</annotations>
21772183
<fields>
21782184
<field>
21792185
<name>targetPath</name>
@@ -2186,13 +2192,8 @@
21862192
element with this value: {@code org/apache/maven/messages}.
21872193
This is not required if you simply put the resources in that directory
21882194
structure at the source, however.
2189-
2190-
@deprecated Replaced by {@code &lt;Source&gt;} with {@code resources} language.
21912195
</description>
21922196
<type>String</type>
2193-
<annotations>
2194-
<annotation>@Deprecated(since = "4.0.0")</annotation>
2195-
</annotations>
21962197
</field>
21972198
<field>
21982199
<name>filtering</name>

src/mdo/model.vm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ import $imp;
114114
* ${line.trim()}
115115
#end
116116
*/
117+
#foreach( $ann in ${class.annotations} )
118+
${ann}
119+
#end
117120
@Experimental
118121
@Generated @ThreadSafe @Immutable
119122
public class ${class.name}

0 commit comments

Comments
 (0)