Hi Arnaud,

<extensions/> defined like forward, modifies the Maven install so I am
not sure it is the best way for your case. Maybe put stuff in
<dependency/> with runtime scope.

If you create a new muse plugin, you could execute it in the site phase.

Cheers,

Vincent


2006/8/4, Arnaud Bailly <[EMAIL PROTECTED]>:
Hi Vincent,
Thanks for the answer, I was giving up hope :-)
My problem is that I want to use my muse format for site generation in
maven. Here is what I did (unsuccessfully until now):
 - I created a MuseSiteModule and MuseParser, both tagged as plexus
 components:
 @plexus.component role="org.apache.maven.doxia.parser.Parser" role-hint="muse"
and
 @plexus.component  role="org.apache.maven.doxia.site.module.SiteModule" 
role-hint="muse"
 - I packaged this as a standard maven jar with following pom:
 <modelVersion>4.0.0</modelVersion>
 <groupId>oqube.muse</groupId>
 <artifactId>doxia-muse-module</artifactId>
 <packaging>jar</packaging>
 <version>1.0-SNAPSHOT</version>
 <name>Muse Doxia Module</name>
 <dependencies>
   <dependency>
     <groupId>org.apache.maven.doxia</groupId>
     <artifactId>doxia-core</artifactId>
     <version>1.0-alpha-8</version>
   </dependency>
   <dependency>
     <groupId>org.apache.maven.doxia</groupId>
     <artifactId>doxia-sink-api</artifactId>
     <version>1.0-alpha-8</version>
   </dependency>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>oqube.muse</groupId>
     <artifactId>muse-parser</artifactId>
     <version>1.0-SNAPSHOT</version>
   </dependency>
 </dependencies>
 <build>
   <plugins>
     <plugin>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-maven-plugin</artifactId>
       <executions>
         <execution>
           <goals>
             <goal>descriptor</goal>
           </goals>
         </execution>
       </executions>
     </plugin>
   </plugins>
 </build>
</project>
 - I then tried this on a project with:
 <build>
 <extensions>
  <extension>
   <groupId>oqube.muse</groupId>
   <artifactId>doxia-muse-module</artifactId>
   <version>1.0-SNAPSHOT</version>
  </extension>
 </extensions>
 </build>

It fails with an error in plexus composition phase which I suspect is
due to bad type/wrong name/whatever.

Thx

--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



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

Reply via email to