mirror of https://github.com/apache/maven.git
Artifacts containers now will inherit versions. This will occur before management rules are applied.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@727614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f67099266e
commit
61a5d19c4e
|
@ -192,7 +192,7 @@ public final class ArtifactModelContainerFactory
|
|||
if ( c.groupId.equals( groupId ) && c.artifactId.equals( artifactId ) && c.type.equals( type )
|
||||
&& c.classifier.equals( classifier ))
|
||||
{
|
||||
if ( c.version.equals( version ) )
|
||||
if ( c.version.equals( version ) || version.equals("") || c.version.equals(""))
|
||||
{
|
||||
return ModelContainerAction.JOIN;
|
||||
}
|
||||
|
|
|
@ -56,9 +56,9 @@ public class PomConstructionTest
|
|||
|
||||
PomTestWrapper pom = new PomTestWrapper( model );
|
||||
|
||||
assertEquals( "maven-dependency-plugin", pom.getValue( "build/plugins[1]/artifactId" ) );
|
||||
assertEquals( "maven-dependency-plugin", pom.getValue( "build/plugins[4]/artifactId" ) );
|
||||
|
||||
List executions = (List) pom.getValue( "build/plugins[1]/executions" );
|
||||
List executions = (List) pom.getValue( "build/plugins[4]/executions" );
|
||||
|
||||
assertEquals( 7, executions.size() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue