I don't really have sample code but the principle is just that an extension wil be loaded in core classloader, which is unique, instead in each plugin's classloader, which leads to multiple singleton (since this isn't JVM singleton but classloader singleton)
then I suppose that just declaring your singleton component in an extension will give you the expected singleton, without changing any line of code in your plugin using the component HTH Regards, Hervé Le jeudi 31 juillet 2014 12:42:10 vous avez écrit : > Hi > > my P4Maven - a Maven SCM providers - has plexus component singleton with > states, and I would like to have the states to persist across multiple > plugins executions ( maven-scm-plugin, maven-release-plugin, > buildnumber-maven-plugin, etc) > > I think using maven extension is way to go, but not sure how to get this to > work. Do you have a code sample somewhere? > > Huge thanks ahead > > -Dan --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email