mysema/maven-apt-plugin — Issue #2: "symbol not found" if Q-class user is not in same package
Author: mleduque
Created: 2011-12-26 12:34:26+00:00
State: open

I have an entity class MyEntity and an class EntityUser that makes use of the QMyEntity generated class.

With maven-apt-plugin version 1.0.2 (in fact, any version >= 1.0),

* if MyEntity, QMyEntity and EntityUser are in the same package, mvn clean install works
* if EntityUser is in a different package from MyEntity and QMyEntity, install fails with

```[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test-project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-apt-plugin:1.0.2:process (default) @ test-project ---
D:\eclipse\workspace\test-project\src\main\java\apt\plugin\test\EntityUser.java:7: cannot find symbol
symbol : class QMyEntity
location: package apt.plugin.test.entities
import apt.plugin.test.entities.QMyEntity;
^```

Now, if I use the 0.3.2 version of the plugin, install works whether the classes are in the same package or not.