-
Notifications
You must be signed in to change notification settings - Fork 19
.factorypath lacks jars, when corresponding projects are opened in Eclipse #64
Comments
Sorry, workspace dependencies are not supported by the underlying JDT APT engine, so we can't add them to the .factorypath. You can try to delegate AP to the maven plugin instead of JDT APT, but it's not guaranteed to work anyway. Add the following property to your pom.xml's properties block: `<m2e.apt.activation>maven_plugin</m2e.apt.activation> |
I know that and this is why I'm asking you to use the repo jars regardless. |
This doesn't seem to have any effect at all, neither does the global setting in Window Preferences |
I have the same problem, or possibly something similar. In my case the APT project is not even a dependency of the target project (the one that won't build), but it is in the If you look at what happens to the Java Compiler settings when you right click and So to be clear, I understand there might be a limitation in Eclipse that prevents changes in the APT processor from being immediately reflected in other projects in the workspace, but I do not see why it needs to be switched off completely. I'm quite happy in this case to manually build and install the processor when it changes. UPDATE: even more odd (and there's an ugly a workaround somewhere, although not very practical for "production" use), I find that if I add another APT processor in the |
m2e-apt's code is now included in https://github.com/eclipse-m2e/m2e-core , please consider reporting issue to https://github.com/eclipse-m2e/m2e-core/issues if it's still relevant. |
I have a project that generates sources correctly when it's opened alone, but if I import its dependencies in Eclipse, it can no longer geneate sources. That's because the generated .factorypath doesn't have entries that correspond to the projects opened in Eclipse.
As a workaround please deduce the "M2_REPO/**/*.jar" path from the dependency projects' GAV and add to .factorypath.
The text was updated successfully, but these errors were encountered: