Hi all,

Finally managed to have my site generated using site plugin integrated with 
doxia 1.0-alpha-9-SNAPSHOT version. It works LIKE A DREAM :))) both
providing 
xdoc/xxx.xml.vm templates like in Maven 2 site index.xml.vm and xdoc snippet

macro using the following notation:

<macro name="snippet" id="observer-example1"
file="src/main/java/perfectjpattern/example/core/behavioral/observer/Main.ja
va"/>

For the records:

1-. Checked out everything under http://svn.apache.org/repos/asf/maven/
2-. Built $MAVEN_SVN_HOME/doxia/doxia/trunk using "mvn clean install -e"
3-. Manually installed doxia-core jar and each of the doxia modules listed
bellow e.g.

C:\Projects\maven\doxia\doxia\trunk>mvn install:install-file
-Dfile=C:\Projects\maven\doxia\doxia\trunk\doxia-modules\doxia-module-conflu
ence\target\doxia-module-confluence-1.0-alpha-9-SNAPSHOT.jar
-DgroupId=org.apache.maven.doxia -DartifactId=doxia-module-confluence
-Dversion=1.0-alpha-9-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Doxia
[INFO]   Doxia :: Sink API
[INFO]   Doxia :: Core
[INFO]   Doxia :: Modules
[INFO]   Doxia :: Confluence Module
[INFO]   Doxia :: Docbook Simple Module
[INFO]   Doxia :: TWiki Module
[INFO]   Doxia :: XDoc Module
[INFO]   Doxia :: APT Module
[INFO]   Doxia :: iText Module
[INFO]   Doxia :: FML Module
[INFO]   Doxia :: Latex Module
[INFO]   Doxia :: RTF Module
[INFO]   Doxia :: XHTML Module
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Doxia
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO]
-------------------------------------------------------------------------
---
[INFO] [install:install-file]
[INFO] Installing
C:\Projects\maven\doxia\doxia\trunk\doxia-modules\doxia-module-confluence\ta
rget\doxia-moduleconfluence-1.0alpha-9-SNAPSHOT.jar to C:\Documents and
Settings\Giovanni Azua
Garcia\.m2\repository\org\apache\mave\doxia\doxia-module-confluence\1.0-alph
a-9-SNAPSHOT\doxia-module-confluence-1.0-alpha-9-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Jul 15 15:46:30 CEST 2007
[INFO] Final Memory: 3M/9M
[INFO]
------------------------------------------------------------------------

4-. Configured my pom.xml like this:

<build>
  ...
  <plugins>
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>2.0-SNAPSHOT</version>
                <dependencies>
                        <dependency>
                                <groupId>org.apache.velocity.site</groupId>
        
<artifactId>velocity-site-doxia-renderer</artifactId>
                                <version>1.2.0-SNAPSHOT</version>
                        </dependency>
                </dependencies>
        </plugin>
        <plugin>
                <groupId>org.apache.velocity.site</groupId>
                <artifactId>velocity-site-doxia-renderer</artifactId>
                <configuration>
                        <libraries />
                        <tools />
                </configuration>
                <executions />
        </plugin>
        </plugins>      
</build>

Please note that default version of maven-site-plugin will not work, you do
need 2.0-SNAPSHOT installed. Also note that the example shown in
http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.htm
l execution goals "pre-site" does not exist in this setup so you have to get
rid of the invokation. 

After doing all this my site builds beautifully.

It was kind of disapointing though that the snippet macro generates the
snippets in black and white rather than colored format like in e.g. xref or
how java2html does it. When you include non-trivial code examples in your
site it is difficult to read and follow using such black and white
formatting. Instead of the snippet macro I will switch to use velocity and
xref e.g. xdoc/dp-observer.xml.vm including html generated from xref,
although it is not an elegant solution will do the job until snippet gets
some color formatting? :))

regards,
Giovanni

>-----Original Message-----
>From: Giovanni Azua [mailto:[EMAIL PROTECTED] 
>Sent: Saturday, July 14, 2007 4:58 PM
>To: 'Maven Users List'
>Subject: Broken build when using doxia ...
>
>Hi all,
>
>After successfully manually installing site doxia plugin 1.2.0-SNAPSHOT
downloaded from svn and following the instructions to >have the plugin
installed:
>
>http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.ht
ml
>
>I get the broken build stack traces bellow. The first one is with "Apache
Snapshot Repository"
>pluginRepository disabled. The second one is with "Apache Snapshot
Repository" pluginRepository enabled.
>
>TIA,
>Regards,
>Giovanni



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

Reply via email to