You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tarin Gamberini (JIRA)" <ji...@codehaus.org> on 2011/05/11 17:13:22 UTC

[jira] Created: (MSITE-583) deployed with a wrong url

deployed with a wrong url
-------------------------

                 Key: MSITE-583
                 URL: http://jira.codehaus.org/browse/MSITE-583
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: Bug
          Components: Maven 3, multi module, site:deploy
    Affects Versions: 3.0-beta-3
         Environment: Windows XP SP3
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
            Reporter: Tarin Gamberini


In my corporative pom:
<project
    xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>mycompany</groupId>
    <artifactId>corporative-pom</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>

I've configured the site url:
<distributionManagement>
    <site>
        <id>myserver</id>
        <url>file://myserver/c$/Tomcat6.0/webapps</url>
        <name>myserver</name>
    </site>
</distributionManagement>

Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html

To do this I've configured the SUB pom in this way:
<project
	xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>mycompany</groupId>
		<artifactId>corporative-pom</artifactId>
		<version>1.0.0</version>
		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
	</parent>
	<artifactId>SUB</artifactId>
	<version>1.0.0</version>
	<packaging>jar</packaging>
	
 	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
 	...
</project>

The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.

Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.

In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.

Thanks,
Tarin



-- 
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-583) deployed with a wrong url

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

Lukas Theussl closed MSITE-583.
-------------------------------

    Resolution: Not A Bug
      Assignee: Lukas Theussl

> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>            Assignee: Lukas Theussl
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Tarin Gamberini (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266580#action_266580 ] 

Tarin Gamberini edited comment on MSITE-583 at 5/13/11 2:39 AM:
----------------------------------------------------------------

Sorry for hiding, but when I've attached the log file there was the option "hide", so I've thought that it refers to the attachment an not to the comment.

I'm talking about project.url but if it's not used for site deploy that's a really strange thing, infact till some weeks ago I was using maven2 and I used distributionManagement.url as a base url and in every sub project I configured project.url as /${project.artifactId}. So when I ran the depoy goal the final url was the distributionManagement.url + project.url.

Anyway, as you suggested, I've just configured a distributionManagement in every subproject as <url>file://myserver/c$/Tomcat6.0/webapps/${project.artifactId}</url> and the maven3 site:deploy correctly generates the desired url:
[site:deploy]
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Opened  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnecting  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnected

Many many thanks Lukas: I could close this issue if it's ok for you.
Tarin



P.S.
This issue has pointed me to the http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/pom.xml so I saw that doesn't exist an Italian localization: should I contribuite to it?

      was (Author: taringamberini):
    Sorry for hiding, but when I've attached the log file there was the option "hide", so I've thought that it refers to the attachment an not to the comment.

I'm talking about project.url but if it's not used for site deploy that's a really strange thing, infact till some weeks ago I was using maven2 and I used distributionManagement.url as a base url and in every sub project I configured project.url as /${project.artifactId}. So when I ran the depoy goal the final url was the distributionManagement.url + project.url.

Anyway, as you suggested, I've just configured a distributionManagement in every subproject as <url>file://myserver/c$/Tomcat6.0/webapps/${project.artifactId}</url> and the maven3 site:deploy correctly generates the desired url:
[site:deploy]
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Opened  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnecting  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnected

Many many thanks Lukas: I could close this issue if you it's ok for you.
Tarin



P.S.
This issue has pointed me to the http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/pom.xml so I saw that doesn't exist an Italian localization: should I contribuite to it?
  
> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266436#action_266436 ] 

Lukas Theussl commented on MSITE-583:
-------------------------------------

Please test the current snapshots (2.3-SNAPSHOT and 3.0-beta-4-SNAPSHOT), the deploy code has been re-written.

> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266572#action_266572 ] 

Lukas Theussl commented on MSITE-583:
-------------------------------------

Why did you hide your comment? I didn't notice it until I looked at the page while being logged in today.

Are you talking about project.url or distributionManagement.url? project.url is not used for site deploy.

It would help if you could attach a small self-contained test project.

> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Tarin Gamberini (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266580#action_266580 ] 

Tarin Gamberini edited comment on MSITE-583 at 5/13/11 2:35 AM:
----------------------------------------------------------------

Sorry for hiding, but when I've attached the log file there was the option "hide", so I've thought that it refers to the attachment an not to the comment.

I'm talking about project.url but if it's not used for site deploy that's a really strange thing, infact till some weeks ago I was using maven2 and I used distributionManagement.url as a base url and in every sub project I configured project.url as /${project.artifactId}. So when I ran the depoy goal the final url was the distributionManagement.url + project.url.

Anyway, as you suggested, I've just configured a distributionManagement in every subproject as <url>file://myserver/c$/Tomcat6.0/webapps/${project.artifactId}</url> and the maven3 site:deploy correctly generates the desired url:
[site:deploy]
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Opened  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnecting  
file://myserver/c$/Tomcat6.0/webapps/SUB - Session: Disconnected

Many many thanks Lukas: I could close this issue if you it's ok for you.
Tarin



P.S.
This issue has pointed me to the http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/pom.xml so I saw that doesn't exist an Italian localization: should I contribuite to it?

      was (Author: taringamberini):
    Sorry for hiding, but when I've attached the log file there was the option "hide", so I've thought that it refers to the attachment an not to the comment.

I'm talking about project.url but if it's not used for site deploy that's a really strange thing, infact till some weeks ago I was using maven2 and I used distributionManagement.url as a base url and in every sub project I configured project.url as /${project.artifactId}. So when I ran the depoy goal the final url was the distributionManagement.url + project.url.

Anyway, as you suggested, I've just configured a distributionManagement in every subproject as <url>file://myserver/c$/Tomcat6.0/webapps/${project.artifactId}</url> and the maven3 site:deploy correctly generates the desired url:
[site:deploy]
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Opened  
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Disconnecting  
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Disconnected

Many many thanks Lukas: I could close this issue if you it's ok for you.
Tarin



P.S.
This issue has pointed me to the http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/pom.xml so I saw that doesn't exist an Italian localization: should I contribuite to it?
  
> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266590#action_266590 ] 

Lukas Theussl commented on MSITE-583:
-------------------------------------

>From the [docs|http://maven.apache.org/plugins/maven-site-plugin/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 it's the artifactId that is appended, the project.url is ignored by deploy. Did you now test with the published plugins or the snapshots? I don't think there was a bug, but just to check.

For the localization: there is actually [an italian one|http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/src/main/resources/site-plugin_it.properties], but you could check if it's up to date and correct. Thanks!

> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

-- 
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-583) deployed with a wrong url

Posted by "Tarin Gamberini (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266580#action_266580 ] 

Tarin Gamberini commented on MSITE-583:
---------------------------------------

Sorry for hiding, but when I've attached the log file there was the option "hide", so I've thought that it refers to the attachment an not to the comment.

I'm talking about project.url but if it's not used for site deploy that's a really strange thing, infact till some weeks ago I was using maven2 and I used distributionManagement.url as a base url and in every sub project I configured project.url as /${project.artifactId}. So when I ran the depoy goal the final url was the distributionManagement.url + project.url.

Anyway, as you suggested, I've just configured a distributionManagement in every subproject as <url>file://myserver/c$/Tomcat6.0/webapps/${project.artifactId}</url> and the maven3 site:deploy correctly generates the desired url:
[site:deploy]
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Opened  
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Disconnecting  
file://myserver/c$/Tomcat6.0/webapps/client-ws-auth - Session: Disconnected

Many many thanks Lukas: I could close this issue if you it's ok for you.
Tarin



P.S.
This issue has pointed me to the http://svn.apache.org/repos/asf/maven/plugins/branches/maven-site-plugin-3.x/pom.xml so I saw that doesn't exist an Italian localization: should I contribuite to it?

> deployed with a wrong url
> -------------------------
>
>                 Key: MSITE-583
>                 URL: http://jira.codehaus.org/browse/MSITE-583
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, multi module, site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Windows XP SP3
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
>            Reporter: Tarin Gamberini
>         Attachments: site_deploy_log.txt
>
>
> In my corporative pom:
> <project
>     xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>mycompany</groupId>
>     <artifactId>corporative-pom</artifactId>
>     <version>1.0.0</version>
>     <packaging>pom</packaging>
> I've configured the site url:
> <distributionManagement>
>     <site>
>         <id>myserver</id>
>         <url>file://myserver/c$/Tomcat6.0/webapps</url>
>         <name>myserver</name>
>     </site>
> </distributionManagement>
> Than, in a multimodule project MULT, the subproject SUB needs to be deployed into c$/Tomcat6.0/webapps, so the url would be http://myserver/SUB/index.html
> To do this I've configured the SUB pom in this way:
> <project
> 	xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<parent>
> 		<groupId>mycompany</groupId>
> 		<artifactId>corporative-pom</artifactId>
> 		<version>1.0.0</version>
> 		<relativePath /> <!-- doesn't use the MULT pom, but uses the corporative-pom pom -->
> 	</parent>
> 	<artifactId>SUB</artifactId>
> 	<version>1.0.0</version>
> 	<packaging>jar</packaging>
> 	
>  	<url>/${project.artifactId}</url> <!-- it should returns SUB -->
>  	...
> </project>
> The goal site:deploy (Maven2 site plugin) on the SUB project correctly deploys into e new created http://myserver/SUB, but using Maven 3 the goal site:deploy (Maven3 site plugin) incorrectly deploys into e new created http://myserver/corporative-pom/SUB directory.
> Such behaviour happens even if in SUB pom I've configured a <url>/aaaaaaaaaa</url>, or I've configured no <url> at all.
> In my opinion it seems, in this case, that Maven3 site:deploy goal wrongly builds the url string.
> Thanks,
> Tarin

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