{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1446","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1446/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1446/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1446/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1446","id":73766757,"number":1446,"title":"Eclipse config: Have JHipster exclude validation on node and bower out of the box","user":{"login":"michaelisvy","id":1440137,"avatar_url":"https://avatars.githubusercontent.com/u/1440137?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelisvy","html_url":"https://github.com/michaelisvy","followers_url":"https://api.github.com/users/michaelisvy/followers","following_url":"https://api.github.com/users/michaelisvy/following{/other_user}","gists_url":"https://api.github.com/users/michaelisvy/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelisvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelisvy/subscriptions","organizations_url":"https://api.github.com/users/michaelisvy/orgs","repos_url":"https://api.github.com/users/michaelisvy/repos","events_url":"https://api.github.com/users/michaelisvy/events{/privacy}","received_events_url":"https://api.github.com/users/michaelisvy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T23:19:21Z","updated_at":"2015-05-07T14:01:42Z","closed_at":null,"body":"Importing a project in JHipster currently requires lots of manual steps. \r\n\r\nI've just generated a project. Here is what I can see after importing it:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505621/4fd28ef6-f487-11e4-9636-7233b1f91638.png)\r\n\r\nAt this stage, I need to do lots of manual operations. All the below should be automated.\r\nThe fixes provided below are just here as a guideline for manual configuration (until JHipster provides a proper automated fix for that).\r\n\r\n# Exclude the ‘node_modules’ folder in Ecliipse (based on Eclipse 3.6.2)\r\n\r\nright click on Project -> Resource -> Resource Filters\r\nYou should then select: Exclude all, Applies to folders, Name matches node_modules\r\nPress ok.\r\n\r\nProject properties:\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505655/c2f329fe-f487-11e4-93e1-5e2b55dd82d2.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505656/ccf19de6-f487-11e4-9657-d7bbd52c022e.png)\r\n\r\n# Exclude 'scripts' and 'bower_components\" from src/main/java\r\n\r\nTo do so:\r\n\r\nright click on Project -> Javascript -> Include path\r\nYou can then click on the “source” tab and select your_project/src/main/webapp\r\nYou can then select “Excluded: (None) -> Edit -> Add multiple\r\nYou can select “bower_components” and “scripts” and click “ok”.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505666/e3d8f2e8-f487-11e4-905b-4bd30609c146.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505673/f30269fc-f487-11e4-8db5-56fde11e7ef1.png)\r\n\r\n\r\nEdit -> Add multiple\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1440137/7505677/fea4cdcc-f487-11e4-9377-03d34b8ac730.png)\r\n\r\n\r\n# Proposed fix:\r\n\r\nfor node_modules folder, JHipster should generate a .project file that contains the below:\r\n\r\n```xml\r\n<filteredResources>\r\n<filter>\r\n<id>1430533357431</id>\r\n<name></name>\r\n<type>10</type>\r\n<matcher>\r\n<id>org.eclipse.ui.ide.multiFilter</id>\r\n<arguments>1.0-name-matches-false-false-node_modules</arguments>\r\n</matcher>\r\n</filter>\r\n</filteredResources>\r\n```\r\n\r\nFor folders 'scripts' and 'bower_components' I'm not sure yet, I'll look into it."},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/99878072","html_url":"https://github.com/jhipster/generator-jhipster/issues/1446#issuecomment-99878072","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1446","id":99878072,"user":{"login":"gmarziou","id":361007,"avatar_url":"https://avatars.githubusercontent.com/u/361007?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarziou","html_url":"https://github.com/gmarziou","followers_url":"https://api.github.com/users/gmarziou/followers","following_url":"https://api.github.com/users/gmarziou/following{/other_user}","gists_url":"https://api.github.com/users/gmarziou/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarziou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarziou/subscriptions","organizations_url":"https://api.github.com/users/gmarziou/orgs","repos_url":"https://api.github.com/users/gmarziou/repos","events_url":"https://api.github.com/users/gmarziou/events{/privacy}","received_events_url":"https://api.github.com/users/gmarziou/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T14:01:42Z","updated_at":"2015-05-07T14:01:42Z","body":"An alternative would be that the IDE excludes directories and files that are listed in the .gitignore file, I know that some editors like Sublime Text do it with some plugins. Maybe there's something similar for Eclipse."}}