Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created October 19, 2014 11:31
Show Gist options
  • Select an option

  • Save lordofthejars/cc82b73c4945522a7dac to your computer and use it in GitHub Desktop.

Select an option

Save lordofthejars/cc82b73c4945522a7dac to your computer and use it in GitHub Desktop.
private static JavaArchive mergeHibernate(JavaArchive javaArchive) {
JavaArchive[] javaArchives = Maven.resolver().resolve("org.hibernate:hibernate-entitymanager:4.2.15.Final").withTransitivity().as(JavaArchive.class);
Arrays.stream(javaArchives).forEach(javaArchive::merge);
return javaArchive;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment