Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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