- Enclosing class:
public static interface Maven.ProjectWithMavenOptional interface that can be implemented by
AbstractProjectthat has "contextual"
Maven.MavenInstallationassociated with it.
Code like RedeployPublisher uses this interface in an attempt to use the consistent Maven installation attached to the project.
Maven.MavenInstallation inferMavenInstallation()Gets the
Maven.MavenInstallationassociated with the project. Can be null.
If the Maven installation can not be uniquely determined, it's often better to return just one of them, rather than returning null, since this method is currently ultimately only used to decide where to parse