I am using Maven 2.0.4. I was trying to create a multi project web site from
my parent project. I wanted a web site to be created by my parent project
when i run a mvn site. This web site should contain links to all the modules
under parent project pom xml. I was going thru a link in this forum
http://www.nabble.com/Support-for-Multi-project-Web-Sites-t1484154.html#a4172319,
which was guiding me untill i got stuck at  the below error while trying to
run mvn site for my parent project.

[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org.apache.maven.doxia.siterenderer.SiteRenderingContext.setInputEncoding
(Ljava/lang/String;)V
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
org.apache.maven.doxia.siterenderer.SiteRenderingCo
ntext.setInputEncoding(Ljava/lang/String;)V
        at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110
)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Tue May 02 15:46:22 BST 2006
[INFO] Final Memory: 6M/12M
[INFO]
------------------------------------------------------------------------

My parent pom xml looks like this

<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>DB_Build</groupId>
  <artifactId>DB_Build</artifactId>
  <packaging>pom</packaging>
  <version>1.0</version>
  <name>Maven</name>
  <url>http://maven.apache.org/maven2</url>
  <inceptionYear>2001</inceptionYear>
  <modules>
        <module>Framework_Datasets</module>
        <module>DefinedBenefit_Datasets</module>        
        <module>Framework</module>
        <module>Framework_EJB</module>
        <module>Component_ADP</module>
        <module>Component_LF</module>
        <module>Component_Member</module>
        <module>Component_NBIS</module>
        <module>Component_Payroll</module>
        <module>Component_Scheme</module>
        <module>Component_Security</module>     
        <module>DefinedBenefit_BackgroundJobs</module>
        <module>DefinedBenefit_Validation</module>      
        <module>DefinedBenefit_WEB</module>
  </modules>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>2.0-SNAPSHOT</version>
        <configuration>
          <locales>en,fr</locales>
        </configuration>
      </plugin>
    </plugins>
  </build>  
</project>

and my parent site xml looks like

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven">
  <bannerLeft>
    <name>Maven</name>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
    <href>http://maven.apache.org/</href>
  </bannerLeft>
  <bannerRight>
    <src>http://maven.apache.org/images/maven-small.gif</src>
  </bannerRight>
<skin> 
                <groupId>org.apache.maven.skins</groupId> 
                <artifactId>maven-site-skin</artifactId> 
                <version>1.0-SNAPSHOT</version> 
    </skin>
   
  <body>
    <links>
      <item name="Apache" href="http://www.apache.org/"; />
      <item name="Maven 1.0" href="http://maven.apache.org/"/>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>

    <menu name="Maven 2.0">
      <item name="APT Format" href="format.html"/>
      <item name="FAQ" href="faq.html"/>
      <item name="Xdoc Example" href="xdoc.html"/>      
    </menu>
    <menu ref="modules" /> 
    </body>
</project>

If there is any one who has successfully done a site like this. Please
advice. Any help on this will be really appreciated




--
View this message in context: 
http://www.nabble.com/Problem-creating-multiple-project-website-t1539083.html#a4181226
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to