Skip to content

Commit c828b26

Browse files
committed
Document deprecation of ModelETL#getModel()
Clarified that getModel() is a temporary legacy accessor and will be removed once transform() is fully implemented. Added guidance to rely on the extract -> transform -> load pipeline instead.
1 parent d1894c2 commit c828b26

File tree

1 file changed

+10
-3
lines changed
  • maven-release-manager/src/main/java/org/apache/maven/shared/release/transform

1 file changed

+10
-3
lines changed

maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/ModelETL.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ public interface ModelETL {
5151
*/
5252
void load(File pomFile) throws ReleaseExecutionException;
5353

54-
// will be removed once transform() is implemented
5554
/**
56-
* <p>getModel.</p>
55+
* Returns the intermediate {@link Model} representation.
5756
*
58-
* @return a {@link org.apache.maven.model.Model} object
57+
* @deprecated This method is a temporary accessor that exists only for
58+
* legacy workflow support. It will be removed once the
59+
* {@link #transform()} processing phase is fully implemented
60+
* and callers no longer need to access the intermediate model
61+
* directly.
62+
*
63+
* There is no direct replacement. New code should rely on the
64+
* {@link #extract(File)} -> {@link #transform()} -> {@link #load(File)}
65+
* processing pipeline instead of accessing the model explicitly.
5966
*/
6067
@Deprecated
6168
Model getModel();

0 commit comments

Comments
 (0)