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 Carman (JIRA)" <ji...@codehaus.org> on 2011/04/08 16:33:22 UTC
[jira] Created: (MSITE-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
-------------------------------------------------------------------------
Key: MSITE-579
URL: http://jira.codehaus.org/browse/MSITE-579
Project: Maven 2.x and 3.x Site Plugin
Issue Type: Bug
Components: multi module, relative links
Affects Versions: 3.0-beta-3
Reporter: James Carman
I have a multi-module project:
https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
In the main pom.xml file, I have:
<modules>
...
<module>example</module>
</modules>
In my generated site, here:
http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263030#action_263030 ]
James Carman commented on MSITE-579:
------------------------------------
I don't think this should just be acceptable and written off as "we documented that it works this way, so you have to live with it." It's a directory name. So, in SCM it's going to have the same name. There's no reason to assume that it's the artifact id. It shouldn't be too hard to figure this out.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl closed MSITE-579.
-------------------------------
Resolution: Not A Bug
Closing again, as i said it's not something to be fixed in the site plugin.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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] Reopened: (MSITE-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Carman reopened MSITE-579:
--------------------------------
Re-opening because having it stated in documentation doesn't justify this as being reasonable.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263033#action_263033 ]
Joerg Schaible commented on MSITE-579:
--------------------------------------
@James, it has a long history (MNG-3244 and linked ones).
@Lukas, this behavior is annoying. Without it, it would be so easy to use properties without the need to overwrite the SCM section everywhere.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263034#action_263034 ]
James Carman commented on MSITE-579:
------------------------------------
I've linked the issue you mentioned, Joerg. It's nice to see someone else believes this is annoying. :) With so many folks looking at something like this, I'm sure we can come up with a solution.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263021#action_263021 ]
Lukas Theussl commented on MSITE-579:
-------------------------------------
>From the [site docs|http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/usage.html]:
{noformat}
If subprojects inherit the site URL from a parent POM, they will automatically append their <artifactId> to form their effective deployment location.
{noformat}
So if the ArtifactId does not match the scm structure, you have to override the <scm> settings in the sub-project(s).
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263032#action_263032 ]
Lukas Theussl commented on MSITE-579:
-------------------------------------
The scm url and directory structure is not stored when your poms are deployed, so this information is lost when reading poms from the repository, and your build will not be reproducible. The artifactId OTOH is stored, so this is what is used for constructing the urls. Btw, the calculation of scm urls is done in maven core, so it's not a site-plugin issue anyway.
You opened this as a bug, I pointed out that the behavior corresponds to the documentation, therefore it is not a bug. If you think the behavior should be changed, open a feature request for improvement.
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for Multi-Module
Build Where Module Name != artifactId
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl closed MSITE-579.
-------------------------------
Resolution: Not A Bug
Assignee: Lukas Theussl
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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-579) SCM URLs Incorrect for
Multi-Module Build Where Module Name != artifactId
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263021#action_263021 ]
Lukas Theussl edited comment on MSITE-579 at 4/9/11 4:26 AM:
-------------------------------------------------------------
>From the [site docs|http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/usage.html]:
{noformat}
If subprojects inherit the site URL from a parent POM, they will automatically append their <artifactId> to form their effective deployment location.
{noformat}
So if the ArtifactId does not match the scm structure, you have to override the <scm> settings in the sub-project(s). See also the discussion at MNG-5000.
was (Author: lukas):
From the [site docs|http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/usage.html]:
{noformat}
If subprojects inherit the site URL from a parent POM, they will automatically append their <artifactId> to form their effective deployment location.
{noformat}
So if the ArtifactId does not match the scm structure, you have to override the <scm> settings in the sub-project(s).
> SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
> -------------------------------------------------------------------------
>
> Key: MSITE-579
> URL: http://jira.codehaus.org/browse/MSITE-579
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 3.0-beta-3
> Reporter: James Carman
> Assignee: Lukas Theussl
>
> I have a multi-module project:
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/
> In the main pom.xml file, I have:
> <modules>
> ...
> <module>example</module>
> </modules>
> In my generated site, here:
> http://wicketopia.sourceforge.net/wicketopia-example/source-repository.html
> The SCM urls are all messed up. They have "wicketopia-example" rather than just "example" in them. I do not set up SCM URLs in the submodules. I just let it inherit stuff from the parent POM. Since we specify <module>example</module> in the parent pom rather than <module>wicketopia-example</module>, shouldn't it know that the SCM URLs shouldn't have "wicketopia-example" in them?
--
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