Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ public interface Language extends ExtensibleEnum {
/**
* The "script" language. Provided for compatibility with Maven 3.
*
* @deprecated Use {@link #RESOURCES} instead.
* @deprecated since 4.0.0.
* Use {@link #RESOURCES} instead.
*/
@Deprecated
@Deprecated(since = "4.0.0")
Language SCRIPT = language("script");

// TODO: this should be moved out from here to Java Support (builtin into core)
Expand Down
7 changes: 7 additions & 0 deletions api/maven-api-model/src/main/mdo/maven.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,19 @@
*
* @return The POM file from which this model originated or {@code null} if this model does not belong to a local
* project (e.g. describes the metadata of some artifact from the repository).
*
* @deprecated since 4.0.0.
* Use {@link #getPomPath()} instead.
*/
@Deprecated
public java.io.File getPomFile() {
return (getDelegate().getPomFile() != null) ? getDelegate().getPomFile().toFile() : null;
}

/**
* @deprecated since 4.0.0.
* Use {@link #setPomPath(java.nio.file.Path)} instead.
*/
@Deprecated
public void setPomFile(java.io.File pomFile) {
update( getDelegate().withPomFile(pomFile != null ? pomFile.toPath() : null));
Expand Down