Skip to content

narSystemDirectory violates 'Convention over configuration' principle #156

@ponomandr

Description

@ponomandr

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions