You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2015/12/20 04:18:46 UTC

[jira] [Comment Edited] (MSITE-672) Interpolation of site deploy URL not done in child

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

Hervé Boutemy edited comment on MSITE-672 at 12/20/15 3:17 AM:
---------------------------------------------------------------

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:xml}
<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)



was (Author: olamy):
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://issues.apache.org/jira/browse/MSITE-672
>             Project: Maven Site Plugin
>          Issue Type: Wish
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Debian Linux OpenJDK 7 mvn 3.0.4 
>            Reporter: Fred Cooke
>            Assignee: Hervé Boutemy
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)