Hello,

I am testing maven 2 and I saw that is was a possibility to generate a site
who lists the project's documentation.

My project has the following form :

- pom.xml (super POM)
- moduleA/  with a pom.xml
- moduleB/ with a pom.xml

The content of my the super POM is the following : 

[CODE]
<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>fr.projet</groupId>
  <artifactId>projet</artifactId>
  <packaging>pom</packaging>
  <version>0.1</version>
  <name>Projet !</name>

  <modules>
        <module>moduleA</module>
        <module>moduleB</module>
  </modules>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
<reporting>
  <plugins>
  
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
      
      <configuration>
        <minmemory>128m</minmemory>
        <maxmemory>512m</maxmemory>
      </configuration>
    </plugin>
    
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-jxr-plugin</artifactId>
              </plugin>
              
          <plugin>
        <artifactId>maven-clover-plugin</artifactId>
      </plugin>
    
  </plugins>
</reporting>
  
  
</project>
[/CODE]

The pom's of the modules are almost the same and are like that : 

[CODE]
<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>
  <artifactId>moduleA</artifactId>
  <packaging>jar</packaging>
  <name>Module A</name>
  
    <parent>
    <groupId>fr.projet</groupId>
    <artifactId>projet</artifactId>
    <version>0.1</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  

</project>

[/CODE]

When i use mvn site command, the site is well generated. The target
directory is created in the same directory that the super POM, but there is
also a directory target that is created in the modules' directories.

When i display the site, in the modules part on the left menu, the list with
my 2 modules is well displayed. However, there is a problem with the links
of theses modules. The links don't redirect correctly to the modules'
target. 

Their form is like that : ... maven/target/site/moduleB/index.html  whereas
the real path of this is the following :
maven/moduleB/target/site/index.html .

Do you know how I can do to generate the modules' target in the target of
the super POM ? or in the other case how I can change the links ?

Thanks for your help.

Sylvain.
-- 
View this message in context: 
http://www.nabble.com/-M2--Site-Generation-tp16648682s177p16648682.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to