We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7109153 commit c9031cbCopy full SHA for c9031cb
maven-resolver-api/src/main/java/org/eclipse/aether/artifact/AbstractArtifact.java
@@ -96,6 +96,15 @@ public Artifact setVersion(String version) {
96
return newInstance(version, getProperties(), getPath());
97
}
98
99
+ /**
100
+ * This method should (and in Resolver is) overridden, but is kept just to preserve backward compatibility if
101
+ * this class is extended somewhere.
102
+ */
103
+ public Path getPath() {
104
+ File file = getFile();
105
+ return file != null ? file.toPath() : null;
106
+ }
107
+
108
@Deprecated
109
@Override
110
public Artifact setFile(File file) {
0 commit comments