You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James Nord (JIRA)" <ji...@codehaus.org> on 2008/06/06 18:51:17 UTC

[jira] Created: (MSITE-334) site url inheritance broken

site url inheritance broken
---------------------------

                 Key: MSITE-334
                 URL: http://jira.codehaus.org/browse/MSITE-334
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
          Components: site:deploy
    Affects Versions: 2.0-beta-6
         Environment: Windows XP
            Reporter: James Nord
         Attachments: build.txt

I have a parent POM that is inherited by multiple projects that specifies site wide default settings.

(e.g)
Parent\pom.xml   <--- this is the pom containing the site configuration
Parent\CheckStyleConfig\pom.xml

Part of this is the site deploy 

  <distributionManagement>
    <site>
      <id>nds-uk.site</id>
      <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
    </site>
  </distributionManagement>


running site:deploy on the sub procject results in it using a corrupted version of the url.

build output attached.

Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
Also notice the project name is appended to the end of the URL which doesn't match the URL specified

parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "James Nord (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Nord closed MSITE-334.
----------------------------

    Resolution: Duplicate

> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "James Nord (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138207#action_138207 ] 

James Nord commented on MSITE-334:
----------------------------------

opened new issue. closing this as duplicate of MSITE-336 and MNG-3244

> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "James Nord (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138139#action_138139 ] 

teilo edited comment on MSITE-334 at 6/11/08 4:03 AM:
-----------------------------------------------------------

1) the title needs changing back. (so as not to confuse with MNG-3244)

2) the site URL inheritance is broken.

A *valid* UNC path URL gets converted to a *local* path URL when inherited by sub projects.

--> "Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)"

Also this is a bug not an improvement.

      was (Author: teilo):
    1) the title needs changing back. (so as not to confuse with MNG-3244)

2) the site URL inheritance is broken.

A *valid* UNC path URL gets converted to a *local* path URL when inherited by sub projects.

--> "Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)"

  
> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "James Nord (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138139#action_138139 ] 

James Nord commented on MSITE-334:
----------------------------------

1) the title needs changing back. (so as not to confuse with MNG-3244)

2) the site URL inheritance is broken.

A *valid* UNC path URL gets converted to a *local* path URL when inherited by sub projects.

--> "Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)"


> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-334:
----------------------------------

    Issue Type: Improvement  (was: Bug)
       Summary: Make it possible to not append the artifactId of the child when inheriting site url  (was: site url inheritance broken)

> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-334) Make it possible to not append the artifactId of the child when inheriting site url

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138196#action_138196 ] 

Dennis Lundberg commented on MSITE-334:
---------------------------------------

James, please open another issue (a bug) for the UNC path issue.

As I see it, this issue is about the value of <distributionManagement>/<site>/<url> looks in a child project when it is not specified in the child POM. It is then inherited from the parent with the childs artifactId appended. IMO the current behavior for this is as it was intended to be, therefor I see this issue as a request for improvement. The improvement would be to be able to "disable" the inheritance of said element.

With that said maybe this issue is a duplicate of MNG-3244?

> Make it possible to not append the artifactId of the child when inheriting site url
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-334) site url inheritance broken

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138092#action_138092 ] 

Dennis Lundberg commented on MSITE-334:
---------------------------------------

When <distributionManagement>/<site>/<url> is inherited from a parent, the value will be the parents value appended with /artifactId of the child. If you do not want this behavior then you will need to configure <distributionManagement>/<site>/<url> in the child as well.

There is currently no way to say no to this inheritance.

> site url inheritance broken
> ---------------------------
>
>                 Key: MSITE-334
>                 URL: http://jira.codehaus.org/browse/MSITE-334
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>         Environment: Windows XP
>            Reporter: James Nord
>         Attachments: build.txt
>
>
> I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
> (e.g)
> Parent\pom.xml   <--- this is the pom containing the site configuration
> Parent\CheckStyleConfig\pom.xml
> Part of this is the site deploy 
>   <distributionManagement>
>     <site>
>       <id>nds-uk.site</id>
>       <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
>     </site>
>   </distributionManagement>
> running site:deploy on the sub procject results in it using a corrupted version of the url.
> build output attached.
> Notice the corruption of the original file:///// (2 slashes are removed so it tries to deploy to local HDD)
> Also notice the project name is appended to the end of the URL which doesn't match the URL specified
> parent (OK) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened  
> child (bad) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira