Skip to content

Instantly share code, notes, and snippets.

@mhaligowski
Created October 8, 2012 13:55
Show Gist options
  • Save mhaligowski/3852661 to your computer and use it in GitHub Desktop.
Save mhaligowski/3852661 to your computer and use it in GitHub Desktop.
Add Maven dependencies to Arquillian
@Deployment
public static Archive<?> createDeployment() {
MavenDependencyResolver resolver = DependencyResolvers
.use(MavenDependencyResolver.class);
return ShrinkWrap
.create(WebArchive.class, "drools-test.war")
.addAsLibraries(
resolver.artifact("pl.proinvest:frontend-common:1.0")
.resolveAsFiles())
.addAsLibraries(
resolver.artifact("org.drools:drools-core:5.4.0.Final")
.resolveAsFiles())
.addClasses(DroolsManagementBean.class,
DictionaryValueResolver.class, ProductDAO.class,
ProductCache.class, SystemParameterCache.class,
SystemParameterDAO.class,
AdvancedConfigurationService.class)
.addPackages(true,
DroolsKnowledgeBaseCacheBean.class.getPackage())
.addPackages(true, ProductEntity.class.getPackage())
.addPackages(false, UpdateableEntityObject.class.getPackage())
.addPackages(true, "pl.proinvest.kwotator.maintenance")
.addAsWebResource(EmptyAsset.INSTANCE, "beans.xml");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment