Hey Vincent, Do you recall if the solution was in the Site Plugin itself, or some other component like Plexus? I'm having a bear of a time searching Codehaus' Jira and anything I can do to narrow the search result would help.
Best, Elliot Vincent Siveton wrote: > > Hi Elliot, > > I am remembering this issue and I was thinking that it was already > closed in the past. > > Cheers, > > Vincent > > 2007/2/22, Elliot Metsger <[EMAIL PROTECTED]>: >> >> I'm attempting to inject attributes into the site plugin like so in my >> pom: >> <configuration> >> <attributes> >> <foo>bar</foo> >> </attributes> >> <moduleExcludes> >> <foo>bar</foo> >> </moduleExcludes> >> <template>site.vm</template> >> </configuration> >> </plugin> >> >> Supposedly I'm allowed to do this according to the online documentation, >> and >> according to the annotation on the attributes field of the >> AbstractSiteRender class. >> >> However, when running 'mvn -X site', the attributes do not show up: >> [DEBUG] Configuring mojo >> 'org.apache.maven.plugins:maven-site-plugin:2.0-beta-5:site' --> >> [DEBUG] (f) generateReports = true >> [DEBUG] (f) generatedSiteDirectory = >> /Users/esm/workspace/pluto11trunk/pluto-site/target/generated-site >> [DEBUG] (f) inputEncoding = ISO-8859-1 >> [DEBUG] (f) localRepository = [local] -> >> file:///Users/esm/.m2/repository >> [DEBUG] (f) outputDirectory = >> /Users/esm/workspace/pluto11trunk/pluto-site/target/site >> [DEBUG] (f) outputEncoding = ISO-8859-1 >> [DEBUG] (f) project = [EMAIL PROTECTED] >> [DEBUG] (f) reactorProjects = >> [EMAIL PROTECTED] >> [DEBUG] (f) reports = >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED], >> [EMAIL PROTECTED] >> [DEBUG] (f) repositories = [[apache.snapshots] -> >> http://people.apache.org/repo/m2-snapshot-repository, [central] -> >> http://repo1.maven.org/maven2] >> [DEBUG] (f) siteDirectory = >> /Users/esm/workspace/pluto11trunk/pluto-site/src/site >> [DEBUG] (f) template = site.vm >> [DEBUG] (f) templateDirectory = >> /Users/esm/workspace/pluto11trunk/pluto-site/src/site >> [DEBUG] (f) xdocDirectory = >> /Users/esm/workspace/pluto11trunk/pluto-site/xdocs >> [DEBUG] -- end configuration -- >> >> I've added debugging to the AbstractSiteRenderingMojo, and indeed the >> attributes Map is null, despite it being configured in the POM. >> >> I've discovered that if I change >> /** >> * @parameter expression="${attributes}" >> */ >> protected Map attributes; >> >> to (take away expression="${attributes}"): >> >> /** >> * @parameter >> */ >> protected Map attributes; >> >> and re-install the site plugin, my <configuration>/<attributes> element >> is >> used. >> >> Any ideas? >> >> Thanks, >> Elliot >> -- >> View this message in context: >> http://www.nabble.com/injecting-attributes-into-the-Site-mojo-failing--tf3276726s177.html#a9112657 >> Sent from the Maven Developers mailing list archive at Nabble.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] > > > -- View this message in context: http://www.nabble.com/injecting-attributes-into-the-Site-mojo-failing--tf3276726s177.html#a9119857 Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]