public static interface Maven.ProjectWithMaven
AbstractProject
that has "contextual" Maven.MavenInstallation
associated with it.
Code like RedeployPublisher uses this interface in an attempt to use the consistent Maven installation attached to the project.
Modifier and Type | Method and Description |
---|---|
Maven.MavenInstallation |
inferMavenInstallation()
Gets the
Maven.MavenInstallation associated with the project. |
Maven.MavenInstallation inferMavenInstallation()
Maven.MavenInstallation
associated 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 conf/settings.xml from.
Copyright © 2004–2018. All rights reserved.