I found out what the problem was. I was somehow using a bad version of the velocity-1.4-dev.jar artifact.
I found it strange that some of my Maven projects worked just fine and others didn't. I've been managing different local artifact repositories so I decided to swap out one for another and try generating site doco for my projects. This is how I figured out that my velocity jar was bad. FWIW, the bad velocity-1.4-dev.jar in my local repository is 368,352 bytes. I replaced it with a good version of the velocity-1.4-dev.jar which is 359,924 bytes which is the same one up at ibiblio.org. I also had the MD5 hashes for both jars too (but I don't know if Maven validates artifact files against their hashes.) -- Steve > -----Original Message----- > From: Steve Garcia > Sent: Sunday, December 14, 2003 1:37 PM > To: ''Maven Users List' ' > Subject: RE: Tasklist / vdoclet report exception > > > Hi, I tracked down this problem to a problem initializing the > VelocityEngine, specifically it is this line that is raising > the exception: > > InputStream inputStream = getClass() > .getResourceAsStream('/' + > DEFAULT_RUNTIME_PROPERTIES); > > configuration.load( inputStream ); > > where DEFAULT_RUNTIME_PROPERTIES = > "org/apache/velocity/runtime/defaults/velocity.properties" > > I can create a simple project (one class and one test) and > Maven site:generate works fine. However with a big project, > I can't run that same goal because the code above doesn't work. > > I'm still stuck, any advice? > > -----Original Message----- > From: Steve Garcia > To: 'Maven Users List' > Sent: 12/13/2003 11:45 AM > Subject: Tasklist / vdoclet report exception > > I'm running the site:generate goal on my project and my > tasklist report fails with the following exception (and > relevant stack trace info): Has anyone seen this error > before? Does anyone know how I can fix it? > > I'm able to do other things like compile, test, javadoc, etc. > I have seen site:generation work in the past on other > projects I've used, but this is the largest one I've tried > mavenizing. I'm using Maven 1.0 rc1, and the plugin version > should be a part of the stack trace. > > Thanks for your help. > > [echo] Generating the Task List... > xdoc:init: > > maven-tasklist-plugin:report: > [echo] Generating tasklist ... > > BUILD FAILED > File...... file:/C:/Documents and > Settings/SGarcia/.maven/plugins/maven-vdoclet-pl > ugin-1.1-SNAPSHOT/ > Element... vdoclet:vdocletBean > Line...... 21 > Column.... 11 > vdoclet.GeneratorException > com.werken.werkz.UnattainableGoalException: Unable to obtain > goal [site] > -- > file:/ > C:/Documents and > Settings/SGarcia/.maven/plugins/maven-vdoclet-plugin-1.1-SNAPSHOT > /:21:11: <vdoclet:vdocletBean> null > at com.werken.werkz.Goal.fire(Goal.java:646) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > [snip] > org.apache.commons.jelly.JellyTagException: > file:/C:/Documents and Settings/SGarci > a/.maven/plugins/maven-vdoclet-plugin-1.1-SNAPSHOT/:21:11: > <vdoclet:vdocletBean> n > ull > at > org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBean > Tag.java: > 243) > at > org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScr > ipt.java: > 145) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > at > org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) > at > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > [snip] > Caused by: vdoclet.GeneratorException > at vdoclet.Generator.initVelocityEngine(Generator.java:89) > at vdoclet.Generator.<init>(Generator.java:71) > at > org.apache.maven.vdoclet.VDocletBean.generate(VDocletBean.java:145) > at > org.apache.maven.vdoclet.VDocletBean.execute(VDocletBean.java:103) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [snip] Caused by: java.lang.NullPointerException > at java.io.Reader.<init>(Reader.java:61) > at java.io.InputStreamReader.<init>(InputStreamReader.java:55) > at > org.apache.commons.collections.ExtendedProperties.load(Unknown > Source) > at > org.apache.commons.collections.ExtendedProperties.load(Unknown > Source) > at > org.apache.velocity.runtime.RuntimeInstance.setDefaultProperti > es(Runtim > eInstance.java:356) > at > org.apache.velocity.runtime.RuntimeInstance.initializeProperti > es(Runtim > eInstance.java:481) > at > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstan > ce.java:2 > 63) > at > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstan > ce.java:4 > 99) > at > org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:144) > at vdoclet.Generator.initVelocityEngine(Generator.java:87) > ... 59 more > Root cause > vdoclet.GeneratorException > at vdoclet.Generator.initVelocityEngine(Generator.java:89) > at vdoclet.Generator.<init>(Generator.java:71) > at > org.apache.maven.vdoclet.VDocletBean.generate(VDocletBean.java:145) > at > org.apache.maven.vdoclet.VDocletBean.execute(VDocletBean.java:103) > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]