Created
October 8, 2012 13:55
-
-
Save mhaligowski/3852661 to your computer and use it in GitHub Desktop.
Add Maven dependencies to Arquillian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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