Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Problem with plugin attached to process-classes phase

Hi all.

I have a project that uses EclipseLink as JPA provider. For EclipseLink to work properly, its required that developers run a static weaving over the managed entities classes bytecode.

I configured my project to do that with the maven-ant-plugin attached to process-classes phase.

From Maven CLI, running mvn package always happens to work, but in Eclipse there are few times when I publish the project to JBoss it doesn´t work (I notice that by openning any entity .class inside the package and look it doesnt have any EclipseLink interfaces which are added by the static weaving). A full clean/build is needed for that to work again, but I believe it was not supposed to be necessary.

So, in general terms, I have a plugin attached to maven's process-classes phase that sometimes doesn't get run.

Would it be a bug or am I missing something?

PS.: Im using Helios + m2e 0.12.1 + m2e-wtp 0.11.1 (but maybe its happening on newer versions as there is no fix fot this mentioned on newer versions release notes)

PS.: Usually, I attach sample project to help reproduce the error, but I didnt do it this time because I didnt find a deterministic way to reproduce it.

Back to the top