You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "murray (JIRA)" <ji...@codehaus.org> on 2009/04/02 11:41:13 UTC

[jira] Issue Comment Edited: (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=171778#action_171778 ] 

murray edited comment on MSITE-395 at 4/2/09 4:40 AM:
------------------------------------------------------

2.0-beta-5 
has correct links but no content for modules

      was (Author: onekilo79):
    maven-site-plugin
2.0-beta-5 works fine.  No need for <distributionManagement>
  
> 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