
maven-annotation-plugin - issue #41
Not threadsafe when running parallel in multiple modules
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.
Comment #1
Posted on Apr 16, 2012 by Quick Rabbithi
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 ?
Comment #2
Posted on Apr 23, 2012 by Happy ElephantHi,
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.
Comment #3
Posted on Apr 23, 2012 by Quick RabbitOk
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
Comment #4
Posted on Apr 24, 2012 by Quick Rabbiti've deployed a 2.0.6-SNAPSHOT with suggested fix
Please, could you test it and give me feedbacks?
thx in advance
Comment #5
Posted on Aug 7, 2012 by Quick Rabbit(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium
Milestone-Release2.0.6