mirror of https://github.com/apache/maven.git
Fix: MNG-3856 - Just needed to replace modelProperty.getValue with modelProperty.getResolvedValue.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@732286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70583e8717
commit
e52473272d
|
@ -95,16 +95,6 @@
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
<artifactId>plexus-component-metadata</artifactId>
|
<artifactId>plexus-component-metadata</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/MavenDependencyProcessorTest.java</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -145,15 +145,15 @@ public final class MavenDomainModel
|
||||||
{
|
{
|
||||||
if ( mp.getUri().equals( ProjectUri.Parent.version ) )
|
if ( mp.getUri().equals( ProjectUri.Parent.version ) )
|
||||||
{
|
{
|
||||||
version = mp.getValue();
|
version = mp.getResolvedValue();
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Parent.artifactId ) )
|
else if ( mp.getUri().equals( ProjectUri.Parent.artifactId ) )
|
||||||
{
|
{
|
||||||
artifactId = mp.getValue();
|
artifactId = mp.getResolvedValue();
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Parent.groupId ) )
|
else if ( mp.getUri().equals( ProjectUri.Parent.groupId ) )
|
||||||
{
|
{
|
||||||
groupId = mp.getValue();
|
groupId = mp.getResolvedValue();
|
||||||
}
|
}
|
||||||
if ( groupId != null && artifactId != null && version != null )
|
if ( groupId != null && artifactId != null && version != null )
|
||||||
{
|
{
|
||||||
|
@ -218,31 +218,31 @@ public final class MavenDomainModel
|
||||||
{
|
{
|
||||||
if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.groupId ) )
|
if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.groupId ) )
|
||||||
{
|
{
|
||||||
metadata.setGroupId( mp.getValue() );
|
metadata.setGroupId( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.artifactId ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.artifactId ) )
|
||||||
{
|
{
|
||||||
metadata.setArtifactId( mp.getValue() );
|
metadata.setArtifactId( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.version ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.version ) )
|
||||||
{
|
{
|
||||||
metadata.setVersion( mp.getValue() );
|
metadata.setVersion( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.classifier ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.classifier ) )
|
||||||
{
|
{
|
||||||
metadata.setClassifier( mp.getValue() );
|
metadata.setClassifier( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.scope ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.scope ) )
|
||||||
{
|
{
|
||||||
metadata.setScope( mp.getValue() );
|
metadata.setScope( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.type ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.type ) )
|
||||||
{
|
{
|
||||||
metadata.setType( mp.getValue() );
|
metadata.setType( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.optional ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.optional ) )
|
||||||
{
|
{
|
||||||
metadata.setOptional( mp.getValue() );
|
metadata.setOptional( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -265,11 +265,11 @@ public final class MavenDomainModel
|
||||||
{
|
{
|
||||||
if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.Exclusions.Exclusion.artifactId ) )
|
if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.Exclusions.Exclusion.artifactId ) )
|
||||||
{
|
{
|
||||||
meta.setArtifactId( mp.getValue() );
|
meta.setArtifactId( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.Exclusions.Exclusion.groupId ) )
|
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.Exclusions.Exclusion.groupId ) )
|
||||||
{
|
{
|
||||||
meta.setGroupId( mp.getValue() );
|
meta.setGroupId( mp.getResolvedValue() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue