public MavenProject getMavenProject ( Artifact artifact ) { try { final MavenSession session = getMavenSession ( ) ; final MavenProject current = session . getCurrentProject ( ) ; final MavenProject prj = getMavenProjectBuilder ( ) . buildFromRepository ( artifact , current . getRemoteArtifactRepositories ( ) , session . getLocalRepository ( ) ) ; return prj ; } catch ( ProjectBuildingException e ) { getLog ( ) . warn ( e ) ; } return null ; }
Load the Maven project for the given artifact .