[hibernate-dev] ORM - location of generated sources

Steve Ebersole steve at hibernate.org
Tue Jul 21 13:35:31 EDT 2015


As far as I know there is no way to control this at the moment:
https://discuss.gradle.org/t/antlr-plugin-should-preserve-package-structure/10153

For me it ends up in the right place even in terms of the compiled classes,
not just the jar.

On Mon, Jul 20, 2015 at 1:50 AM Gunnar Morling <gunnar at hibernate.org> wrote:

> Hi,
>
> The build for hibernate-core generates sources using Antlr which end up in
> target/generated-src/antlr/main, e.g. GeneratedOrderByFragmentParser.java.
>
> The weird thing is that the generated files are located right within this
> directory, i.e.  there is *no* directory hierarchy resembling the package
> structure. The files have package declarations such as
> "org.hibernate.sql.ordering.antlr", though.
>
> Apparently, this works in the Gradle build (no errors due to that), but in
> my IDE I am getting tons of compile errors due to the mismatch of package
> declaration and file location. Interestingly, the files also end up in the
> right place in the hibernate-core.jar, so I assume that there is some Magic
> in place at the Gradle level which deals with that stuff.
>
> Does anyone know how to make it work in the IDE as well?
>
> Thanks,
>
> --Gunnar
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list