[ 
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

        

Reply via email to