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/maven-2-site-plugin-and-attributes-parameter-tf3276722s177.html#a9112643 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]