It seems that the Artifact interface could be mostly applied to
MavenProject. I eyeball about 70% of the methods could apply. If this seems
unreasonable, I think an interface could be refactored out from both of
them supporting just these:
String getGroupId();
String getArtifactId();
String getVersion();
String getId();
BTW, unless I have missed it, I was surprised to see no "GAV" interface.
Thus, I propose this as the GAV interface. :-) That will certainly help
many mojo developers who want to collect such coordinates from their
<configuration> element.
Cheers,
Paul