You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Giovanni Azua <br...@swissonline.ch> on 2007/07/14 16:58:27 UTC
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.htm
l
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
DISABLING "Apache Snapshot Repository" like this:
<pluginRepositories>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
</pluginRepository>
<!--pluginRepository>
<id>Apache Snapshot Repository</id>
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
</pluginRepository-->
</pluginRepositories>
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te': Unable to find the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
org/apache/velocity/context/Context
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te': Unable to find the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:543)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.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)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPlugin
Manager.java:571)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:421)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.velocity.site:velocity-site-doxia-re
nderer:1.2.0-SNAPSHOT:pre-site', it could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:339)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:440)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPlugin
Manager.java:562)
... 18 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleExcepti
on: Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponen
tLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCompone
ntInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:331)
... 20 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionExcepti
on: Error composing component
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.exec
ute(CompositionPhase.java:33)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecyc
leHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponen
tLifecycle(AbstractComponentManager.java:105)
... 23 more
Caused by: org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field runner in object of type
org.apache.velocity.site.doxia.plugin.DoxiaVelocityRendererPlugin because
the requirement
ComponentRequirement{role='org.apache.velocity.site.doxia.runner.VelocityRun
ner', roleHint='null', fieldName='runner'} was missing
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequi
rementToField(FieldComponentComposer.java:154)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleCom
ponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.as
sembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusCon
tainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.exec
ute(CompositionPhase.java:29)
... 25 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.velocity.site.doxia.runner.VelocityRunner', it could not be
created
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:335)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequi
rementToField(FieldComponentComposer.java:129)
... 29 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instanciate component: role:
'org.apache.velocity.site.doxia.runner.VelocityRunner', implementation:
'org.apache.velocity.site.doxia.runner.DefaultVelocityRunner'
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeExceptio
n(JavaComponentFactory.java:77)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:62)
at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPl
exusContainer.java:1464)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCompone
ntInstance(AbstractComponentManager.java:93)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getCo
mponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:331)
... 30 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/velocity/context/Context
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:44)
... 34 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Sat Jul 14 16:51:53 CEST 2007
[INFO] Final Memory: 12M/24M
[INFO]
------------------------------------------------------------------------
ENABLING "Apache Snapshot Repository" like this:
<pluginRepositories>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
</pluginRepository>
<pluginRepository>
<id>Apache Snapshot Repository</id>
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
</pluginRepository>
</pluginRepositories>
[INFO] Surefire report directory:
C:\Projects\perfectjpattern\trunk\target\surefire-reports
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalArgumentException
at java.lang.ProcessImpl.<init>(ProcessImpl.java:69)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at
org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:653)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLine
Utils.java:102)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLine
Utils.java:89)
at
org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:591
)
at
org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.ja
va:422)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBo
oter.java:322)
at
org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:212)
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:
397)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.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: 36 seconds
[INFO] Finished at: Sat Jul 14 16:57:27 CEST 2007
[INFO] Final Memory: 10M/18M
[INFO]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Broken build when using doxia ...
Posted by Giovanni Azua <br...@swissonline.ch>.
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:bravegag@swissonline.ch]
>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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org