mirror of https://github.com/apache/maven.git
[MNG-4355] [regression] Extensions without version in the POM are not resolved to the RELEASE artifact
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814571 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57b95421a6
commit
8edb01d911
|
@ -145,6 +145,14 @@ public class DefaultProjectBuildingHelper
|
|||
|
||||
for ( Extension extension : build.getExtensions() )
|
||||
{
|
||||
if ( extension.getVersion() == null )
|
||||
{
|
||||
PluginVersionRequest versionRequest = new DefaultPluginVersionRequest( repositoryRequest );
|
||||
versionRequest.setGroupId( extension.getGroupId() );
|
||||
versionRequest.setArtifactId( extension.getArtifactId() );
|
||||
extension.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() );
|
||||
}
|
||||
|
||||
Artifact artifact =
|
||||
repositorySystem.createArtifact( extension.getGroupId(), extension.getArtifactId(),
|
||||
extension.getVersion(), "jar" );
|
||||
|
|
Loading…
Reference in New Issue