How to add a new component in Plexus Repository

2006-11-07 Thread jc7442

I try to implement a dashboard (like the one in maven1) plugin. This plugin
is in charge to create a report that summarize results of others reports
(such as surefire, pmd, cpd, ...). I'd like to be able to discover the impl
compliant with my dashboard. So that list will be extendable.

Plexus looks to be a solution to implement that feature.

I implement a DashboardableManager (like the ScmManager in scm plugin) with
its components.xml file. My problem is that my manager is not discovered and
added in plexus-repository.

I suppose that the PlexusContainer is initialized before my plugin is added
in the classpath. What should I do to add a component in Plexus repository ?

In attachment the plugin.  http://www.nabble.com/file/4008/dashboard.zip
dashboard.zip 
-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-new-component-in-Plexus-Repository-tf2587866s177.html#a7215890
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add a new component in Plexus Repository

2006-11-07 Thread jc7442

I find the bug, Manager has to be retireved

/**
 * @parameter
expression=${component.com.dashboard.DashboardableManager}
 * @required
 * @readonly
 */
private DashboardableManager manager;





jc7442 wrote:
 
 I try to implement a dashboard (like the one in maven1) plugin. This
 plugin is in charge to create a report that summarize results of others
 reports (such as surefire, pmd, cpd, ...). I'd like to be able to discover
 the impl compliant with my dashboard. So that list will be extendable.
 
 Plexus looks to be a solution to implement that feature.
 
 I implement a DashboardableManager (like the ScmManager in scm plugin)
 with its components.xml file. My problem is that my manager is not
 discovered and added in plexus-repository.
 
 I suppose that the PlexusContainer is initialized before my plugin is
 added in the classpath. What should I do to add a component in Plexus
 repository ?
 
 In attachment the plugin.  http://www.nabble.com/file/4008/dashboard.zip
 dashboard.zip 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-new-component-in-Plexus-Repository-tf2587866s177.html#a7216417
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do people include version info into the build?

2006-11-07 Thread jc7442

Common solution is to add a manifest. Have a look to the  maven-jar-plugin
documentation


Christian Goetze-2 wrote:
 
 With this, I mean how do people ensure that the version number used in 
 the build is available at runtime? Do people generate a property file 
 with the version number and include it in the jar? Anyone have a nice 
 little example for this?
 
 Thanks in advance...
 --
 cg - an obvious maven2 newbie...
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-do-people-include-version-info-into-the-build--tf2591070s177.html#a7227963
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to set th backgroung color with Doxia

2006-11-06 Thread jc7442

I'm currently writing a reporting plugin. I'd like to have a table cell with
a fixed with and a background color in order to have a kind of progress bar
(like in corbertura in HTML it may looks like td width=60
bgcolor=green60%/td

Threre is a Sink.tableCell(with) method. Is it possible to set the color of
a table cell ?
-- 
View this message in context: 
http://www.nabble.com/How-to-set-th-backgroung-color-with-Doxia-tf2583135s177.html#a7201034
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Classpath for reporting plugin

2006-11-06 Thread jc7442

I try to write a reporting plugin that will use plexus (in the same way as
Scm plugin with the ScmManager). I wrote a components.xml file that all the
stuff for plugin.

When I start my plugin from eclipse, my manager is return by plexus. When
the same code is executed when I try to generate the site, the reporting
plugin fails. It seems that it dos not find my components.xml. I have check
tht it is in the jar.

What's the classpath use for the reporting plugin ? How to add artifact
specific for a reporting plugin ?
-- 
View this message in context: 
http://www.nabble.com/Classpath-for-reporting-plugin-tf2586066s177.html#a7210363
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]