Indexing of target/generated-sources/

Answered

Hi,

We are building (maven) our angular apps to target/generated-sources/. Both directories are excluded from indexing but the files in generated-sources are indexed anyway. If I build the apps to target/angular-generated/ no indexing is done. Is there a solution to not indexing the files in first scenario (target/generated-sources).

Thanks,

Thomas

0
6 comments

Do you have target/generated-sources/ marked as source root? Please attach screenshot of File | Project Structure | Modules | <module name> | Sources tab.

0

Thanks for your reply. So the problem is that it's marked as a source root?

0

Yes. Source directories cannot be excluded from indexing, since they are used by IDE for compilation and for sources navigation, resolve and completion. IDE takes the information about source directories from the Maven pom.xml configuration.

0

Thanks. And in this case I really think that the code put there is not the definition of generated sources.

0

What files do you put there?  Are they used for compilation or navigation?

How do you configure and use this directory in Maven?

0

Its our compiled angular-apps, so per definition it's not "generated-sources", so these files should not be outputted there. I'll change to /target/angular or something similar. Thanks for your help!

0

Please sign in to leave a comment.