Skip to content

Commit 2bf5dba

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 2bf5dba

File tree

2 files changed

+9
-4
lines changed
  • maven-release-manager/src/main/java/org/apache/maven/shared/release/transform
  • maven-release-plugin/src/main/java/org/apache/maven/plugins/release

2 files changed

+9
-4
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,17 @@ 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+
* There is no direct replacement. New code should rely on the
63+
* {@link #extract(File)} -> {@link #transform()} -> {@link #load(File)}
64+
* processing pipeline instead of accessing the model explicitly.
5965
*/
6066
@Deprecated
6167
Model getModel();

maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public class PerformReleaseMojo extends AbstractScmReadReleaseMojo {
9090
* artifact, if appropriate. If set to true, the release plugin sets the property "<code>performRelease</code>" to
9191
* true, which activates the profile "<code>release-profile</code>" as inherited from
9292
* <a href="/ref/3.8.5/maven-model-builder/super-pom.html">the super pom</a>.
93-
*
9493
* @deprecated The <code>release-profile</code> profile will be removed from future versions of the super POM
9594
*/
9695
@Parameter(defaultValue = "false", property = "useReleaseProfile")

0 commit comments

Comments
 (0)