I try to use aspectj maven plugin for compile project with aspectj compiler and then I try to package classes into \"war\" file. Unfortunately, it doesn\'t work with following c
Having looked at your Maven project https://github.com/dmitrievanthony/test-aspectj I found out that
Here is a screenshot (full size here) from IntelliJ IDEA's "find class":
As you can see, class LockModeType
is found in 3 (three!) dependencies, one of which contains a version of the class which does not contain the expected enum values. Your code compiles if you remove this dependency.
org.hibernate
ejb3-persistence
1.0.2.GA
Maybe you should clean up your dependencies. You can use the Maven Dependency Plugin with goals like dependency:analyze
and dependency:tree
for that purpose.