mirror of https://github.com/apache/maven.git
Fix for it0141
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@712680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6468b08bda
commit
1249c89962
|
@ -376,16 +376,17 @@ public final class PomClassicTransformer
|
|||
ModelProperty siteUrlProperty = getPropertyFor( ProjectUri.DistributionManagement.Site.url, tmp );
|
||||
if ( siteUrl.length() == 0 && siteUrlProperty != null )
|
||||
{
|
||||
if(!siteUrlProperty.getResolvedValue().endsWith("}")) {
|
||||
siteUrl.append( siteUrlProperty.getResolvedValue().substring(0, siteUrlProperty.getResolvedValue().lastIndexOf("/")) );
|
||||
}
|
||||
for ( String projectName : projectNames )
|
||||
{
|
||||
siteUrl.append( "/" ).append( projectName );
|
||||
siteUrl.append( siteUrlProperty.getResolvedValue());//.substring(0, siteUrlProperty.getResolvedValue().lastIndexOf("/")) );
|
||||
for ( String projectName : projectNames )
|
||||
{
|
||||
if(!siteUrl.toString().endsWith( "/")) {
|
||||
siteUrl.append( "/" );
|
||||
}
|
||||
int index = tmp.indexOf( siteUrlProperty );
|
||||
tmp.remove( index );
|
||||
tmp.add( index, new ModelProperty( ProjectUri.DistributionManagement.Site.url, siteUrl.toString() ) );
|
||||
siteUrl.append( projectName );
|
||||
}
|
||||
int index = tmp.indexOf( siteUrlProperty );
|
||||
tmp.remove( index );
|
||||
tmp.add( index, new ModelProperty( ProjectUri.DistributionManagement.Site.url, siteUrl.toString() ) );
|
||||
}
|
||||
//If DistributionManagement site URL is property,
|
||||
//SCM Rule
|
||||
|
@ -602,7 +603,9 @@ public final class PomClassicTransformer
|
|||
aliases.put( "\\$\\{project.build.", "\\$\\{build.");
|
||||
|
||||
List<String> aliasList = Arrays.asList("artifactId", "groupId", "version", "packaging", "name", "description",
|
||||
"url", "inceptionYear", "scm.url", "ciManagement.url", "distributionManagement.repository.name",
|
||||
"url", "inceptionYear", "scm.url", "ciManagement.url",
|
||||
"distributionManagement.repository.name",
|
||||
"distributionManagement.site.url",
|
||||
"reporting.outputDirectory", "parent.groupId", "parent.artifactId",
|
||||
"parent.version", "prerequisites.maven", "issueManagement.url", "organization.name");
|
||||
for(String alias : aliasList) {
|
||||
|
|
Loading…
Reference in New Issue