velo / maven-annotation-plugin

Automatically exported from code.google.com/p/maven-annotation-plugin
0 stars 0 forks source link

Not threadsafe when running parallel in multiple modules #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running a multimodule build

What is the expected output? What do you see instead?
It should work, but there occur strange errors when the plugin is executed in 
different modules the same time.

What version of the product are you using? On what operating system?
2.0.5-SNAPSHOT

Please provide any additional information below.
Don't using fields in the pojo class or using a pojo wrapper should solve the 
problem.

Original issue reported on code.google.com by timefre...@googlemail.com on 16 Apr 2012 at 1:18

GoogleCodeExporter commented 9 years ago
hi 

thx for feedbacks

Your report:
It should work, but there occur strange errors when the plugin is executed in 
different modules the same time.

* Could you provide me more details?
* Do you have problems similar to Issue 32 ?

Original comment by bartolom...@gmail.com on 16 Apr 2012 at 1:28

GoogleCodeExporter commented 9 years ago
Hi,

I ran the plugin in a multimodule project. Then an error occurs reproducable.

I downloaded the code an tried the dirty solutionn described in
https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html; Then
it works. I think the problem ist the locking of the compiler run, but
not of the mojo itself. I don't know how maven calls the plugin, but i
assume the fields in the mojo are overridden during execution in
different modules.

Original comment by timefre...@googlemail.com on 23 Apr 2012 at 11:59

GoogleCodeExporter commented 9 years ago
Ok 

I'll apply the "dirty solution"  using lock 

Unfortunately this solution didn't work to fix Issue 32  but at least we solve 
your problem

Original comment by bartolom...@gmail.com on 23 Apr 2012 at 1:20

GoogleCodeExporter commented 9 years ago
i've deployed a 2.0.6-SNAPSHOT with suggested fix

Please, could you test it and give me feedbacks?

thx in advance

Original comment by bartolom...@gmail.com on 24 Apr 2012 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 7 Aug 2012 at 5:47