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]
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";>
4.0.0
fr.projet
projet
pom
0.1
Projet !
moduleA
moduleB
junit
junit
3.8.1
test
org.apache.maven.plugins
maven-javadoc-plugin
128m
512m
org.apache.maven.plugins
maven-jxr-plugin
maven-clover-plugin
[/CODE]
The pom's of the modules are almost the same and are like that :
[CODE]
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";>
4.0.0
moduleA
jar
Module A
fr.projet
projet
0.1
../pom.xml
[/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]