
Untitled
By: a guest on
Aug 30th, 2011 | syntax:
None | size: 1.31 KB | views:
66 | expires: Never
@Deployment
public static Archive<?> deployment() {
return ShrinkWrap.create(WebArchive.class, "test.war")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
//.addAsWebInfResource("org/jboss/seam/spring/bootstrap/webinf/web-fragment.xml", "web-fragment.xml")
.setWebXML("org/jboss/seam/spring/bootstrap/webinf/web.xml")
//.addAsWebInfResource("org/jboss/seam/spring/bootstrap/webinf/applicationContext.xml", "applicationContext.xml")
.addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class)
.artifact("org.springframework:spring-context-support:3.0.5.RELEASE")
.artifact("org.springframework:spring-beans:3.0.5.RELEASE")
.artifact("org.springframework:spring-context:3.0.5.RELEASE")
.artifact("org.springframework:spring-core:3.0.5.RELEASE")
.artifact("commons-logging:commons-logging:1.1.1")
.artifact("org.slf4j:slf4j-simple:1.6.1")
.resolveAs(JavaArchive.class))
.addPackage(SimpleBean.class.getPackage());
}