In Plexus, you can make the plexus component "prototype" (as opposite of current singleton) by adding
instantiationStrategy="per-lookup" in that case, Plexus container will create new instance of the component for every injection/lookup. On Fri, Jun 20, 2014 at 1:20 PM, Karl Heinz Marbaise <[email protected]> wrote: > Hi, > > currently i'm working on a problem (http://jira.codehaus.org/ > browse/MASSEMBLY-684) in the maven-assembly-plugin which will fail if you > use: > > mvn -T2C clean package > > after diving into that problem i found out that the components which are > being injected are always the same so far so good, but those components are > exactly causing the trouble in relationship with multithreaded build... > > So the following component is the root cause: > > @Component > private AssemblyArchiver assemblyArchiver; > > So the question is: Is there a way to create new instances every time the > execute() of the mojo is called? May be manually ? Or does exist already a > solution for this kind of problems... > > > > Mit freundlichem Gruß > Karl-Heinz Marbaise > -- > SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893 > Dipl.Ing.(FH) Karl-Heinz Marbaise ICQ#: 135949029 > Hauptstrasse 177 USt.IdNr: DE191347579 > 52146 Würselen http://www.soebes.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
