You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Elliot Metsger <em...@jhu.edu> on 2007/02/23 03:58:11 UTC
injecting attributes into the Site mojo failing?
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 = org.apache.maven.project.MavenProject@a4310364
[DEBUG] (f) reactorProjects =
[org.apache.maven.project.MavenProject@a4310364]
[DEBUG] (f) reports =
[org.apache.maven.plugin.javadoc.JavadocReport@c94b8f,
org.apache.maven.report.projectinfo.CimReport@55bf9c,
org.apache.maven.report.projectinfo.DependenciesReport@99f62e,
org.apache.maven.report.projectinfo.DependencyConvergenceReport@b8daa7,
org.apache.maven.report.projectinfo.IssueTrackingReport@afba5d,
org.apache.maven.report.projectinfo.LicenseReport@367dca,
org.apache.maven.report.projectinfo.MailingListsReport@b7eb54,
org.apache.maven.report.projectinfo.ProjectIndexPageReport@1b97d8,
org.apache.maven.report.projectinfo.ProjectSummaryReport@c1c697,
org.apache.maven.report.projectinfo.ScmReport@b41650,
org.apache.maven.report.projectinfo.TeamListReport@de9738]
[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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [vote-result] injecting attributes into the Site mojo failing?
Posted by Elliot Metsger <em...@jhu.edu>.
Ok - I'll check Jira. I'm on the latest release of the site plugin, so maybe
the fix is in an as-of-yet unreleased version of the site plugin.
Thanks for the heads up Vincent,
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 <em...@jhu.edu>:
>>
>> 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 = org.apache.maven.project.MavenProject@a4310364
>> [DEBUG] (f) reactorProjects =
>> [org.apache.maven.project.MavenProject@a4310364]
>> [DEBUG] (f) reports =
>> [org.apache.maven.plugin.javadoc.JavadocReport@c94b8f,
>> org.apache.maven.report.projectinfo.CimReport@55bf9c,
>> org.apache.maven.report.projectinfo.DependenciesReport@99f62e,
>> org.apache.maven.report.projectinfo.DependencyConvergenceReport@b8daa7,
>> org.apache.maven.report.projectinfo.IssueTrackingReport@afba5d,
>> org.apache.maven.report.projectinfo.LicenseReport@367dca,
>> org.apache.maven.report.projectinfo.MailingListsReport@b7eb54,
>> org.apache.maven.report.projectinfo.ProjectIndexPageReport@1b97d8,
>> org.apache.maven.report.projectinfo.ProjectSummaryReport@c1c697,
>> org.apache.maven.report.projectinfo.ScmReport@b41650,
>> org.apache.maven.report.projectinfo.TeamListReport@de9738]
>> [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: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/injecting-attributes-into-the-Site-mojo-failing--tf3276726s177.html#a9118972
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [vote-result] injecting attributes into the Site mojo failing?
Posted by Elliot Metsger <em...@jhu.edu>.
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 <em...@jhu.edu>:
>>
>> 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 = org.apache.maven.project.MavenProject@a4310364
>> [DEBUG] (f) reactorProjects =
>> [org.apache.maven.project.MavenProject@a4310364]
>> [DEBUG] (f) reports =
>> [org.apache.maven.plugin.javadoc.JavadocReport@c94b8f,
>> org.apache.maven.report.projectinfo.CimReport@55bf9c,
>> org.apache.maven.report.projectinfo.DependenciesReport@99f62e,
>> org.apache.maven.report.projectinfo.DependencyConvergenceReport@b8daa7,
>> org.apache.maven.report.projectinfo.IssueTrackingReport@afba5d,
>> org.apache.maven.report.projectinfo.LicenseReport@367dca,
>> org.apache.maven.report.projectinfo.MailingListsReport@b7eb54,
>> org.apache.maven.report.projectinfo.ProjectIndexPageReport@1b97d8,
>> org.apache.maven.report.projectinfo.ProjectSummaryReport@c1c697,
>> org.apache.maven.report.projectinfo.ScmReport@b41650,
>> org.apache.maven.report.projectinfo.TeamListReport@de9738]
>> [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: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
--
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: injecting attributes into the Site mojo failing?
Posted by Vincent Siveton <vi...@gmail.com>.
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 <em...@jhu.edu>:
>
> 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 = org.apache.maven.project.MavenProject@a4310364
> [DEBUG] (f) reactorProjects =
> [org.apache.maven.project.MavenProject@a4310364]
> [DEBUG] (f) reports =
> [org.apache.maven.plugin.javadoc.JavadocReport@c94b8f,
> org.apache.maven.report.projectinfo.CimReport@55bf9c,
> org.apache.maven.report.projectinfo.DependenciesReport@99f62e,
> org.apache.maven.report.projectinfo.DependencyConvergenceReport@b8daa7,
> org.apache.maven.report.projectinfo.IssueTrackingReport@afba5d,
> org.apache.maven.report.projectinfo.LicenseReport@367dca,
> org.apache.maven.report.projectinfo.MailingListsReport@b7eb54,
> org.apache.maven.report.projectinfo.ProjectIndexPageReport@1b97d8,
> org.apache.maven.report.projectinfo.ProjectSummaryReport@c1c697,
> org.apache.maven.report.projectinfo.ScmReport@b41650,
> org.apache.maven.report.projectinfo.TeamListReport@de9738]
> [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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [vote-result] injecting attributes into the Site mojo failing?
Posted by Elliot Metsger <em...@jhu.edu>.
Aha. This problem may be related to :
http://www.nabble.com/forum/ViewPost.jtp?post=2337561&framed=y&skin=177
Elliot Metsger wrote:
>
> 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 = org.apache.maven.project.MavenProject@a4310364
> [DEBUG] (f) reactorProjects =
> [org.apache.maven.project.MavenProject@a4310364]
> [DEBUG] (f) reports =
> [org.apache.maven.plugin.javadoc.JavadocReport@c94b8f,
> org.apache.maven.report.projectinfo.CimReport@55bf9c,
> org.apache.maven.report.projectinfo.DependenciesReport@99f62e,
> org.apache.maven.report.projectinfo.DependencyConvergenceReport@b8daa7,
> org.apache.maven.report.projectinfo.IssueTrackingReport@afba5d,
> org.apache.maven.report.projectinfo.LicenseReport@367dca,
> org.apache.maven.report.projectinfo.MailingListsReport@b7eb54,
> org.apache.maven.report.projectinfo.ProjectIndexPageReport@1b97d8,
> org.apache.maven.report.projectinfo.ProjectSummaryReport@c1c697,
> org.apache.maven.report.projectinfo.ScmReport@b41650,
> org.apache.maven.report.projectinfo.TeamListReport@de9738]
> [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#a9127535
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org