Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 30th, 2011  |  syntax: None  |  size: 1.31 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  @Deployment
  2.     public static Archive<?> deployment() {
  3.         return ShrinkWrap.create(WebArchive.class, "test.war")
  4.                 .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  5.                 //.addAsWebInfResource("org/jboss/seam/spring/bootstrap/webinf/web-fragment.xml", "web-fragment.xml")
  6.                 .setWebXML("org/jboss/seam/spring/bootstrap/webinf/web.xml")
  7.                 //.addAsWebInfResource("org/jboss/seam/spring/bootstrap/webinf/applicationContext.xml", "applicationContext.xml")
  8.                 .addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class)
  9.                                         .artifact("org.springframework:spring-context-support:3.0.5.RELEASE")
  10.                                         .artifact("org.springframework:spring-beans:3.0.5.RELEASE")
  11.                                         .artifact("org.springframework:spring-context:3.0.5.RELEASE")
  12.                                         .artifact("org.springframework:spring-core:3.0.5.RELEASE")
  13.                                         .artifact("commons-logging:commons-logging:1.1.1")
  14.                                         .artifact("org.slf4j:slf4j-simple:1.6.1")
  15.                                         .resolveAs(JavaArchive.class))
  16.  
  17.                 .addPackage(SimpleBean.class.getPackage());
  18.     }
clone this paste RAW Paste Data