You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "J?rg Hohwiller (JIRA)" <ji...@codehaus.org> on 2006/05/18 09:09:41 UTC

[jira] Created: (MSITE-132) Use instead of for directories

Use <artefactID> instead of <name> for directories
--------------------------------------------------

         Key: MSITE-132
         URL: http://jira.codehaus.org/browse/MSITE-132
     Project: Maven 2.x Site Plugin
        Type: Improvement

 Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
    Reporter: Jörg Hohwiller


The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
E.g. my open-source project: 
http://svn.projxpert.com/mmm/trunk/

Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
Could you please use the artefactId instead. 

I think personally think that this is a lot better anyways.

BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for staged directories

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

Dennis Lundberg updated MSITE-132:
----------------------------------

    Description: 
The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
E.g. my open-source project: 
http://svn.projxpert.com/mmm/trunk/

Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
Could you please use the artifactId instead. 

I think personally think that this is a lot better anyways.

BTW - Thanks for your greate work. M2 is awesome!!!

  was:
The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
E.g. my open-source project: 
http://svn.projxpert.com/mmm/trunk/

Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
Could you please use the artefactId instead. 

I think personally think that this is a lot better anyways.

BTW - Thanks for your greate work. M2 is awesome!!!

        Summary: Use <artifactId> instead of <name> for staged directories  (was: Use <artefactID> instead of <name> for directories)

> Use <artifactId> instead of <name> for staged directories
> ---------------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artifactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

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

Denis Cabasson updated MSITE-132:
---------------------------------

    Attachment: MSITE-132.patch

Proposed patch : use artifactId instead of name (why the h*** would name be used here?)

Anyway, behaviour should be now consistent with distributionManagement interpolation.

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "Denis Cabasson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103377 ] 

Denis Cabasson commented on MSITE-132:
--------------------------------------

I guess we basically all agree on this report. Its point is just changing name to artifactId, when no distributionManagement section is available.

Jörg later discussion should indeed be discussed somewhere else. Maybe in a wish task or an improvement.

For the time being, let's apply this patch on the trunk and get rid with it :)

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103374 ] 

John Allen commented on MSITE-132:
----------------------------------

Guess I'm not explaining myself very well :) 

Re the name being used to create the path in the stage mojo when the POM has no distributionManagement section defined - that sounds like a mistake to me and thus my [comment to Denis|http://jira.codehaus.org/browse/MSITE-132#action_103351]. 

Additionally re Jorg's statements about what and how stage should work. It works based off maven's distributionManagement section to achieve the use case of 'mirroring' or staging a deployment to a local file-system location for local review before real deployment to the project's published location is performed. It does that just fine and is used by lots of users. Additionally, being a core plugin, it is designed to support the main Maven usage scenarios, if you don't do it that way, or want to do it another way, you are of course free to create your own plugin.

For a wider discussion about Maven's usage including it's plugins i recommend the [Maven Users Mailing List|http://www.nabble.com/Maven---Users-f178.html]

Lastly, I didn't write these plugins so have absolutely no say on their design but as an OSS project we can all contribute to Maven's improvement. Start on the mailing lists and see how others use it, you never know maybe everyone will agree and the core developers will consider a redesign.

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for staged directories

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

Dennis Lundberg updated MSITE-132:
----------------------------------

    Fix Version/s:     (was: 2.1)
                   2.0

> Use <artifactId> instead of <name> for staged directories
> ---------------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>            Assignee: Dennis Lundberg
>             Fix For: 2.0
>
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artifactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103350 ] 

John Allen commented on MSITE-132:
----------------------------------

Jorg,

The logic of stage is fairly obvious. one is simulating the real world deployment, where projects and modules from the internet namespace are mapped to residing within a root node of a filesystem. Your expectation regarding what the site:stage plugin should do and how it should do it is wrong. Adjust your expectation and you will be happier.


> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "Denis Cabasson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103366 ] 

Denis Cabasson commented on MSITE-132:
--------------------------------------

John,

I'm afraid I have to side with Jörg here.
Using the name, which is described in the POM descriptor as "The full name of the project.", doesn't looks sensible to me..... Using the artifactId seems ways more coherent (with the distributionManagement behaviour at least).

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103351 ] 

John Allen commented on MSITE-132:
----------------------------------

Denis,

Ahh, it's only if you have no distroManagement section that it invents the path and this is why I've never seen it (we use a flat project structure and thus have to declare distroManagement and project.URL in every POM as maven's default assumptions are wrong for us). Seems a reasonable fix, will apply to my local patched plugin and play.

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "Jörg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=comments#action_71258 ] 
            
Jörg Hohwiller commented on MSITE-132:
--------------------------------------

However one needs to define a 'distributionManagement' Tag in the POM and define a repository. Then for some reason the folders are named like the artifactId. This can be used as workaround. 
Anyhow I am not sure why the name is used instead if 'distributionManagement' is not defined in the POM.

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for directories

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103013 ] 

John Allen commented on MSITE-132:
----------------------------------

There are indeed some gotchas re the naming of artifactIds and directories in Maven. for instance the release plugin assumes artifactId == directory name (or at least it used to) and thus most people have those being the same. Note that <modules> lets you jump into any directory for a module project but i didnt think that a project's name was ever used in any form of path construction.

> Use <artefactID> instead of <name> for directories
> --------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artefactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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-132) Use instead of for staged directories

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

Dennis Lundberg closed MSITE-132.
---------------------------------

         Assignee: Dennis Lundberg
       Resolution: Fixed
    Fix Version/s: 2.0-beta-8

Patch applied in r664306. Thanks!

> Use <artifactId> instead of <name> for staged directories
> ---------------------------------------------------------
>
>                 Key: MSITE-132
>                 URL: http://jira.codehaus.org/browse/MSITE-132
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>         Environment: maven-2.0.4 on any operating system with the latests released plugins (after the doxia-1.0-alpha-8.pom bug)
>            Reporter: Jörg Hohwiller
>            Assignee: Dennis Lundberg
>             Fix For: 2.0-beta-8
>
>         Attachments: MSITE-132.patch
>
>
> The <name> of a project in the POM may contain characters that cause trouble when used in directory names.
> E.g. my open-source project: 
> http://svn.projxpert.com/mmm/trunk/
> Uses names such as "MMM::Configuration". Now when I stage the site of the entire project, the relative link "MMM::Configuration" causes mozilla to say something like "Unknown protocol 'mmm:'".
> Could you please use the artifactId instead. 
> I think personally think that this is a lot better anyways.
> BTW - Thanks for your greate work. M2 is awesome!!!

-- 
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