# Can't build hibernate-orm

**URL:** <https://discuss.gradle.org/t/cant-build-hibernate-orm/13463>\
**Category:** Buildship\
**Created:** [December 28, 2015, 6:11pm UTC](https://discuss.gradle.org/t/cant-build-hibernate-orm/13463 "2015-12-28T18:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwellmann](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/hwellmann/32/4026_2.png) [@hwellmann](https://discuss.gradle.org/u/hwellmann)\
**Post date:** [December 28, 2015, 6:11pm UTC](https://discuss.gradle.org/t/cant-build-hibernate-orm/13463/1 "2015-12-28T18:11:09Z")

</div>

Has anybody ever tried and succeeded in building `hibernate-orm` with Buildship?

I’m getting tons of errors, mostly from missing source folders like `target/generated/apt/main`. The trouble is, I can’t even add these folders manually to the build path, since `target` is not visible in Eclipse for some subprojects, even though the folder does exist on disk.

The build succeeds when running `./gradlew build` from the command line.

---

<div class="post-metadata">

**Author:** ![donat](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/donat/32/7798_2.png) [@donat](https://discuss.gradle.org/u/donat)\
**Post date:** [January 15, 2016, 1:21pm UTC](https://discuss.gradle.org/t/cant-build-hibernate-orm/13463/2 "2016-01-15T13:21:22Z")

</div>

I had a quick look on your case, but I encountered a different problem: when the project was imported into the workspace, Eclipse detected a cycle in referenced projects. The root cause is that Eclipse JDT defines one classpath per project so Buildship has to add all dependencies to it even if they originate from a different scope.

Regarding your problem, Buildship adds resource filters to hide build artifacts like the `target` folder. We plan add a feature to disable-enable these filters but nothing has been scheduled yet.

---

<div class="post-metadata">

**Author:** ![donat](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/donat/32/7798_2.png) [@donat](https://discuss.gradle.org/u/donat)\
**Post date:** [March 9, 2016, 1:33pm UTC](https://discuss.gradle.org/t/cant-build-hibernate-orm/13463/3 "2016-03-09T13:33:07Z")

</div>

The feature for disabling the filter on the build folder has been added. See the related post:

> [@Is there a setting that makes build folder visible in Eclipse?](https://discuss.gradle.org/t/is-there-a-setting-that-makes-build-folder-visible-in-eclipse/14941/3):
>
> In the latest Buildship milestone, the build folder is no longer excluded. Any source folders inside it will compile as expected. You can show/hide the build folder in the Project Explorer, Package Explorer and Navigator like this: Please note, that in order to make it work you have to refresh your Gradle project. We plan to release Buildship 1.0.10 with the fix next week. If you want to evaluate you can install the latest milestone build from the following update site: [ht…](http://download.eclipse.org/buildship/updates/e45/milestones/1.0/1.0.10.v20160309-1150-m)
