本文整理汇总了Java中org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies类的典型用法代码示例。如果您正苦于以下问题:Java MavenDependencies类的具体用法?Java MavenDependencies怎么用?Java MavenDependencies使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MavenDependencies类属于org.jboss.shrinkwrap.resolver.api.maven.coordinate包,在下文中一共展示了MavenDependencies类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // Fest assertion
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "stock-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.customer.itest"
ValidationTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.customer.test"
"eu.ggnet.dwoss.stock")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:26,代码来源:ArquillianProjectArchive.java
示例2: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "customer-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.customer.itest"
CustomerTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.customer.test"
"eu.ggnet.dwoss.customer")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:26,代码来源:ArquillianProjectArchive.java
示例3: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "uniqueunit-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.uniqueunit.itest"
UniqueUnitTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.uniqueunit.test"
"eu.ggnet.dwoss.uniqueunit")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(UniqurUnitItHelper.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:27,代码来源:ArquillianProjectArchive.java
示例4: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.resolve().withTransitivity().asFile();
return ShrinkWrap.create(WebArchive.class, "rights-persistence-test.war")
.addPackages(true, Filters.exclude(getPackage("eu.ggnet.dwoss.rights.itest")), "eu.ggnet.dwoss.rights")
.addPackages(true, "org.assertj") // Need this for AssertJ Assertations
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
}
开发者ID:gg-net,项目名称:dwoss,代码行数:23,代码来源:ArquillianProjectArchive.java
示例5: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // Fest assertion
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "redtape-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.redtape.itest"
PositionTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.redtape.test"
"eu.ggnet.dwoss.redtape")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(RedTapeHelper.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:27,代码来源:ArquillianProjectArchive.java
示例6: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // Fest assertion
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "report-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.redtape.itest"
ReportTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.redtape.test"
"eu.ggnet.dwoss.report")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(ReportLineItHelper.class) // Helper Bean
.addClass(SampleDataSourceDefinition.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:27,代码来源:ArquillianProjectArchive.java
示例7: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = Searcher.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "misc-core-test.war")
.addPackages(true, projectPackage)
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(CustomerSearchProviderStub.class)
.addClass(UniqueUnitSearchProviderStub.class)
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:24,代码来源:ArquillianProjectArchive.java
示例8: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = SampleGeneratorOperation.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "sample-persistence-test.war")
.addPackages(true, projectPackage.getName())
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
// Testresources.
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:24,代码来源:SampleGeneratorIT.java
示例9: getEngineSpring
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
public static JavaArchive[] getEngineSpring() {
if(CACHED_SPRING_ASSETS != null) {
return CACHED_SPRING_ASSETS;
} else {
JavaArchive[] resolvedArchives = Maven.configureResolver()
.workOffline()
.loadPomFromFile("pom.xml")
.addDependencies(
MavenDependencies.createDependency("org.camunda.bpm:camunda-engine-spring", ScopeType.COMPILE, false,
MavenDependencies.createExclusion("org.camunda.bpm:camunda-engine")),
MavenDependencies.createDependency("org.springframework:spring-web", ScopeType.COMPILE, false))
.resolve()
.withTransitivity()
.as(JavaArchive.class);
if(resolvedArchives.length == 0) {
throw new RuntimeException("could not resolve org.camunda.bpm:camunda-engine-spring");
} else {
CACHED_SPRING_ASSETS = resolvedArchives;
return CACHED_SPRING_ASSETS;
}
}
}
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:26,代码来源:DeploymentHelper.java
示例10: createMavenDependency
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
public MavenDependency createMavenDependency(final ArtifactSpec spec) {
final MavenCoordinate newCoordinate = MavenCoordinates.createCoordinate(
spec.groupId(),
spec.artifactId(),
spec.version(),
PackagingType.of(spec.type()),
spec.classifier());
return MavenDependencies.createDependency(newCoordinate, ScopeType.fromScopeType(spec.scope), false);
}
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:10,代码来源:ShrinkwrapArtifactResolvingHelper.java
示例11: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment(testable = false)
public static WebArchive createDeployment() {
String warName = Tutorial3.class.getSimpleName() + ".war";
WebArchive archive = ShrinkWrap.create(WebArchive.class, warName);
archive.setWebXML("tutorial/tut3.webxml");
archive.addClasses(Person.class, Address.class, TutorialServlet3.class);
File[] cibet = Maven.resolver().loadPomFromFile("pom.xml").resolve("com.logitags:cibet-jpa").withoutTransitivity()
.asFile();
archive.addAsLibraries(cibet);
File[] shiro = Maven.resolver().loadPomFromFile("pom.xml").resolve("com.logitags:cibet-shiro").withTransitivity()
.asFile();
archive.addAsLibraries(shiro);
File[] shiro1 = Maven.resolver()
.addDependencies(MavenDependencies.createDependency("org.apache.shiro:shiro-web:1.2.2", ScopeType.COMPILE,
false, MavenDependencies.createExclusion("org.slf4j:slf4j-api")))
.resolve().withTransitivity().asFile();
archive.addAsLibraries(shiro1);
archive.addAsWebInfResource("tutorial/persistence-it1.xml", "classes/META-INF/persistence.xml");
archive.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
archive.addAsWebInfResource("shiro.ini", "classes/shiro.ini");
archive.addAsWebInfResource("tutorial/config.xml", "classes/cibet-config.xml");
log.debug(archive.toString(true));
archive.as(ZipExporter.class).exportTo(new File("target/" + warName), true);
return archive;
}
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:33,代码来源:Tutorial3.java
示例12: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator is needed on many places.
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // Fest assertion
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "spec-persistence-test.war")
.addPackages(true,
Filters.exclude(PersistenceIT.class.getPackage(), // Compile safe package "eu.ggnet.dwoss.customer.itest"
SpecTest.class.getPackage()), // Compile safe package "eu.ggnet.dwoss.customer.test"
"eu.ggnet.dwoss.spec")
.addClass(MandatorSupportProducer.class) // The Datasource Configuration and the Static Producers
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(ContainerITGeneratorHelper.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsResource(new ClassLoaderAsset("eu/ggnet/dwoss/spec/assist/gen/specs.xml"), "eu/ggnet/dwoss/spec/assist/gen/specs.xml") // Needed for the Specgenerator.
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:28,代码来源:ArquillianProjectArchive.java
示例13: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = RedTapeWorker.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample-service", RUNTIME, false)) // The Sample Mandator Services
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-ee-extended-receipt", RUNTIME, false)) // Using Receipt for unit generation
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // Assertj assertion
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "redtape-persistence-test.war")
.addPackages(true, projectPackage)
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
// Testresources.
.addClass(SupportBean.class)
.addClass(NaivBuilderUtil.class)
.addClass(DatabaseCleaner.class)
.addClass(WarrantyServiceStup.class)
.addClass(RedTapeCloserOpertaionItBean.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsResource("eu/ggnet/dwoss/redtapext/ee/Document_Template.jrxml")
.addAsResource("eu/ggnet/dwoss/redtapext/ee/Shipping_Template.jrxml")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:35,代码来源:ArquillianProjectArchive.java
示例14: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = UnitDestroyer.class.getPackage();
Package itestPackage = ReceiptGeneratorOperationIT.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample-service", RUNTIME, false)) // The Sample Mandator Services
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "receipt-persistence-test.war")
.addPackages(true, exclude(itestPackage), projectPackage)
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(SpecStore.class)
.addClass(DatabaseCleaner.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:29,代码来源:ArquillianProjectArchive.java
示例15: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = StockTaking.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample-service", RUNTIME, false)) // The Sample Mandator Services
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-ee-extended-receipt", RUNTIME, false)) // Using Receipt for unit generation
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-ee-extended-redtape", RUNTIME, false)) // Using Receipt for unit generation
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "receipt-persistence-test.war")
.addPackages(true, projectPackage)
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addClass(ResolveRepaymentBeanITHelper.class)
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:29,代码来源:ArquillianProjectArchive.java
示例16: createDeployment
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
// Compile Safe Packages.
Package projectPackage = Exporter.class.getPackage();
Package testPackage = ImportPriceManagementLogicTest.class.getPackage();
File[] libs = Maven.resolver()
.loadPomFromFile("pom.xml")
.importRuntimeDependencies()
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample", RUNTIME, false)) // The Sample Mandator
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-mandator-sample-service", RUNTIME, false)) // The Sample Mandator Services
.addDependency(MavenDependencies.createDependency("eu.ggnet.dwoss:dwoss-ee-extended-receipt", RUNTIME, false)) // Using Receipt for unit generation
.addDependency(MavenDependencies.createDependency("org.slf4j:slf4j-log4j12", RUNTIME, false)) // Log4J API
.addDependency(MavenDependencies.createDependency("org.assertj:assertj-core", RUNTIME, false)) // AssertJ Fluent Assertions
.resolve().withTransitivity().asFile();
WebArchive war = ShrinkWrap.create(WebArchive.class, "receipt-persistence-test.war")
.addPackages(true, exclude(testPackage), projectPackage)
.addClass(SampleDataSourceDefinition.class) // Alle Datasources. More than we need.
.addClass(Coordinate.class) // Need this cause of the maven resolver is part of the deployment
.addClass(ArquillianProjectArchive.class) // The local deployer configuration
.addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
.addAsResource(new ClassLoaderAsset("log4j.properties"), "log4j.properties")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsWebInfResource("jboss-deployment-structure.xml") // Needed for jboss/wildfly h2 enablement
.addAsLibraries(libs);
return war;
}
开发者ID:gg-net,项目名称:dwoss,代码行数:28,代码来源:ArquillianProjectArchive.java
示例17: toMavenDependencies
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
public static MavenDependency[] toMavenDependencies(String[] dependencies, String[] exclusions) {
MavenDependencyExclusion[] mavenExclusions = toMavenExclusions(exclusions);
MavenDependency[] mavenDependencies = new MavenDependency[dependencies.length];
for (int i = 0; i < dependencies.length; i++) {
mavenDependencies[i] = MavenDependencies.createDependency(
dependencies[i],
ScopeType.COMPILE,
false,
mavenExclusions);
}
return mavenDependencies;
}
开发者ID:arquillian,项目名称:arquillian-container-chameleon,代码行数:13,代码来源:Utils.java
示例18: toMavenExclusions
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
private static MavenDependencyExclusion[] toMavenExclusions(String[] exclusions) {
MavenDependencyExclusion[] mavenExclusions = new MavenDependencyExclusion[exclusions.length];
for (int i = 0; i < exclusions.length; i++) {
mavenExclusions[i] = MavenDependencies.createExclusion(exclusions[i]);
}
return mavenExclusions;
}
开发者ID:arquillian,项目名称:arquillian-container-chameleon,代码行数:8,代码来源:Utils.java
示例19: addRuntimeSpecificLibraries
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
@Override
protected void addRuntimeSpecificLibraries(WebArchive wa, PomEquippedResolveStage resolver) {
// inject rest easy version to differentiate between resteasy and wildfly-compatibility profile
String restEasyVersion = System.getProperty("restEasyVersion");
wa.addAsLibraries(resolver.addDependencies(
MavenDependencies.createDependency("org.jboss.resteasy:resteasy-jaxrs:" + restEasyVersion, ScopeType.TEST, false,
MavenDependencies.createExclusion("org.apache.httpcomponents:httpclient"))).resolve()
.withTransitivity().asFile());
}
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:ResteasyTomcatServerBootstrap.java
示例20: newMavenDependency
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; //导入依赖的package包/类
protected MavenDependency newMavenDependency(String gav) {
MavenCoordinate coordinate = MavenCoordinates.createCoordinate(gav.trim());
return MavenDependencies.createDependency(coordinate, ScopeType.COMPILE, false );
}
开发者ID:syndesisio,项目名称:syndesis,代码行数:5,代码来源:RepackageExtensionMojo.java
注:本文中的org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论