-
Notifications
You must be signed in to change notification settings - Fork 158
Description
tl;dr
Change default value of narSystemDirectory from target/nar/nar-generated to target/generated-sources/nar
Rationale
By convention Maven plugins put generated sources to target/generated-sources/<something> directory. This value is so common that many IDEs recognize it by default and attach this directory as a source dir to the project. I'm not sure about Eclipse, but Intellij and Netbeans do this. Intellij IDEA even warns you if you try to modify a file in the 'generated-sources' dir.
On the other hand, Intellij IDEA marks target directory as "excluded". So the content of the directory is completely ignored (except 'generated-sources' subdirectory). Because of that, NarSystem.java is not visible for IDE and the project cannot compile.
Moreover, it's not possible to configure narSystemDirectory to point to `target/generated-sources'