You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Rollo (JIRA)" <ji...@codehaus.org> on 2011/12/01 04:30:40 UTC

[jira] Commented: (MSITE-600) site plugin 3.0 does not permit a child to fully override parent site deployment URL

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

Dan Rollo commented on MSITE-600:
---------------------------------

I tested this issue using maven-site-plugin:3.1-SNAPSHOT, and a parent pom (that happens to NOT be located above the child pom [like a shared corporate pom] - in case it matters). The behavior of the site plugin snapshot is "better", in that I can work around the issue and get something to deploy, but I'm seeing the problems below:

Invalid paths being created/attempted, like:
C:\...\someDir\${project.basedir}\target\
or
${project.basedir}\someDir\

(where the un-interpolated '${project.basedir}' actually shows in the path.

Also (not sure if it is related), I'm seeing a bogus empty directory getting created by the site-deploy goal.
This bogus dir is always empty, but it is outside (above) the 'target' dir, so I'm pretty sure that is not intended:
${project.basedir}\target\...
(the 2 or 3 deep empty directory tree is created in the current directory from which 'mvn' was executed).

Also, I noticed these bogus directories may be created in different levels (above 'target' dir) depending on whether you run:
mvn site-deploy
mvn site site:stage site-deploy
mvn site && mvn site:stage && mvn site-deploy

Should I open new bugs? Any other info I can share? 

> site plugin 3.0 does not permit a child to fully override parent site deployment URL
> ------------------------------------------------------------------------------------
>
>                 Key: MSITE-600
>                 URL: https://jira.codehaus.org/browse/MSITE-600
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.3, 3.0
>            Reporter: Benson Margulies
>            Assignee: Lukas Theussl
>             Fix For: 2.4, 3.1
>
>         Attachments: child-pom.xml, muddle.tar, parent-pom.xml
>
>
> The test cases here has a parent with a a distributionManagement/site/url, and then a child which overrides it with an absolute URL. Except that the override does not work ... or, at least, looks quite peculiar. 
> the parent is file:///tmp/bloop
> the child is scp://localhost:/tmp/blop
> and the result is 
> [INFO] Error uploading site
> Embedded error: Could not make directory '/tmp/bloop/../../Users/benson/asf/mvn/site-interp-muddle/child/scp:/localhost:/tmp/blop'.
> [INFO] ---------------------------------------

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira