You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2009/03/25 22:22:12 UTC

[jira] Commented: (MSITE-395) Maven site multi module url problem

    [ http://jira.codehaus.org/browse/MSITE-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170990#action_170990 ] 

Dennis Lundberg commented on MSITE-395:
---------------------------------------

file:// is not a valid URL, so I'd start by fixing that. Staging uses the value of the distributionManagement URL, so it'd better be correct.

You talk about both stage and deploy of the site. Which is it, stage or deploy? Those are different goals of the Site Plugin.

What kind of Linux are you running?

Can you please package up this into a test project and attach that as a zip  file to this issue. That way we can use it to try to reproduce your problem.

> Maven site multi module url problem
> -----------------------------------
>
>                 Key: MSITE-395
>                 URL: http://jira.codehaus.org/browse/MSITE-395
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 2.0
>            Reporter: valsho
>            Priority: Blocker
>
> The generated maven (2.0.10) site for a multi module project is different on windows and linux.
> The difference is the relative url for the modules. 
> --------------------------------------------------
> Here's the project structure :
> myProject/
>    trunk/
>       pom.xml
>       module1/
>          pom.xml
>          src/
>       module2/
>          pom.xml
>          src/
> --------------------------------------------------
> Here's myProject/trunk/pom.xml definition :
>   <groupId>com.myProject</groupId>
>   <artifactId>modulepom</artifactId>
>   <packaging>pom</packaging>
>   <name>POM myProject</name>
>   <version>1.0-SNAPSHOT</version>
>   
>  <modules>
>   <module>module1</module>
>   <module>module2</module>
>  </modules>
> <distributionManagement>
> 	<site>
> 		<id>site</id>
> 		<name>Maven site</name>
> 		<url>file://</url>
> 	</site>
> </distributionManagement>
> <build>
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-site-plugin</artifactId>
> 	<version>2.0</version>
> </plugin>
> </build>
> --------------------------------------------------
> On module1 and module2 pom, I didn't declare any <distributionManagement> information.
> I've "only" declared the parent
> 	  <parent>
> 	 	<groupId>com.myProject</groupId>
> 	 	<artifactId>modulepom</artifactId>
> 	 	<version>1.0-SNAPSHOT</version>
> 	 </parent>
> 	  
> 	  <groupId>com.myProject</groupId>
> 	  <artifactId>module1</artifactId>
> 	  <packaging>jar</packaging>
> 	  <version>1.0-SNAPSHOT</version>
> 	  <name>module1 name</name>
> --------------------------------------------------
> Here are the index.html files generated on windows and linux in myProject/trunk/target/staging/localhost/ after launching mvn site:stage in directory myProject/trunk/ 
> --> Site deployed on Windows which is correct
>      ....
>     <h5>Modules</h5><ul>
>     <li class="none">
>         <a href="module1/index.html">module1 name</a>
>     </li>
>               
>     <li class="none">
>         <a href="module2/index.html">module2 name</a>
>     </li>
>      ...
> --> Site deployed on Linux which isn't correct
>       ...
>       <h5>Modules</h5><ul>          
>       <li class="none">
>           <a href="../../tmp/testProject/myProject/trunk/../localhost">module1 name</a>
>       </li>
>            
>       <li class="none">
>           <a href="../../tmp/testProject/myProject/trunk/../localhost">module2 name</a>
>       </li>
>        ...
> where /tmp/testProject/ is the absolute path where is stored myProject/ on linux
> --------------------------------------------------
> Any idea ?
> Maybe i should use something different in <distributionManagement> than <url>file://</url>
> Thanks for your help

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