Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save lordofthejars/a1f6e580ebc898b748fa 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);
for(JavaArchive hibernateDep: javaArchives) {
javaArchive.merge(hibernateDep);
}
return javaArchive;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment