Continuous Enterprise Development in Java by Andrew Lee Rubinger & Aslak Knutsen

Continuous Enterprise Development in Java by Andrew Lee Rubinger & Aslak Knutsen

Author:Andrew Lee Rubinger & Aslak Knutsen
Language: eng
Format: epub, pdf
ISBN: 9781449328290
Publisher: O’Reilly Media, Inc.
Published: 2014-09-14T04:00:00+00:00


public static File[] resolveDependencies() { return Maven.resolver() .offline() .loadPomFromFile("pom.xml") .resolve("org.infinispan:infinispan-core") .withTransitivity() .asFile(); }

This uses the ShrinkWrap Maven Resolver to pull the groupId:artifactId of org.infinispan:infinispan-core and all of its dependencies in from the Maven repository, returning the artifacts as files. We don’t need to define the version explicitly here; that will be configured from the definition contained in the project’s pom.xml file because we’ve told the resolver to loadPomFromFile("pom.xml").

Also as part of the deployment we’ll throw in a TestUtils class, which will let us easily create Attachment objects from the tests running inside the container:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.