[ 
https://jira.codehaus.org/browse/MSITE-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=318424#comment-318424
 ] 

Olivier Lamy commented on MSITE-672:
------------------------------------

regarding interpolation like 
<url>scp://private-site/home/private/site/releases/${project.groupId}/${project.artifactId}/${project.version}/</url>
values come from the pom where the element is located.
A possible solution/workaround (but not working currently) is to use something 
like:
{code}
<properties>
  
<deploySiteUrl>scp://private-site/home/private/site/releases/${project.groupId}/${project.artifactId}/${project.version}</deploySiteUrl>
</properties>
<distributionManagement>
  <site>
    <url>${deploySiteUrl}</url>
  </site>
</distributionManagement>
{code}
But this won't work currently as current project artifact is appended.
This issue cannot be fixed in the site plugin as all is done in maven core.
See classes called  MavenModelMerger and ModelMerger (see method mergeSite_Url).
A possible fix could be done with a flag preventing appending (but must off per 
default)

                
> Interpolation of site deploy URL not done in child
> --------------------------------------------------
>
>                 Key: MSITE-672
>                 URL: https://jira.codehaus.org/browse/MSITE-672
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Debian Linux OpenJDK 7 mvn 3.0.4 
>            Reporter: Fred Cooke
>
> I have my parent distribution site config filled out like so:
> {{<url>scp://private-site/home/private/site/releases/$\{project.groupId}/$\{project.artifactId}/$\{project.version}/</url>}}
> When the child tries to release:perform or {{site:deploy}} it tries to upload 
> with the parent arifactId, groupId and version instead of the current project 
> values. These should be interpolated like any other variables in the POM to 
> prevent needless duplication in all children.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to