Created
May 5, 2019 12:36
-
-
Save kaiwinter/bbdc1f4b5a93d1e0b1b80a12076a38e7 to your computer and use it in GitHub Desktop.
Complete Arquillian deployment
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 WebArchive createDeployment() { | |
WebArchive webArchive = (WebArchive) EmbeddedMaven.forProject(new File("pom.xml")) // | |
.useMaven3Version("3.3.9") // | |
.setGoals("package") // | |
.setQuiet() // | |
.skipTests(true) // | |
.setDebugLoggerLevel() // | |
.build() // | |
.getDefaultBuiltArchive(); | |
return webArchive; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment