Created
July 17, 2016 19:41
-
-
Save faermanj/d873ae713221cf9df09dc4f5be8ae505 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package kornell.server.util | |
| import org.wildfly.swarm.container.Container | |
| import org.wildfly.swarm.jaxrs.JAXRSArchive | |
| import org.jboss.shrinkwrap.api.ShrinkWrap | |
| import org.jboss.shrinkwrap.api.spec.WebArchive | |
| import org.jboss.shrinkwrap.resolver.api.maven.archive.importer.MavenImporter | |
| object KornellSwarm extends App{ | |
| val container = new Container(); | |
| val deployment = ShrinkWrap.create(classOf[MavenImporter]) | |
| .loadPomFromFile("pom.xml") | |
| .importBuildOutput() | |
| .as(classOf[WebArchive]); | |
| container.start(); | |
| container.deploy(deployment); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment