热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.ops4j.pax.exam.options.MavenArtifactProvisionOption.version()方法的使用及代码示例

本文整理了Java中org.ops4j.pax.exam.options.MavenArtifactProvisionOption.version()方法的一些代码示例

本文整理了Java中org.ops4j.pax.exam.options.MavenArtifactProvisionOption.version()方法的一些代码示例,展示了MavenArtifactProvisionOption.version()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MavenArtifactProvisionOption.version()方法的具体详情如下:
包路径:org.ops4j.pax.exam.options.MavenArtifactProvisionOption
类名称:MavenArtifactProvisionOption
方法名:version

MavenArtifactProvisionOption.version介绍

暂无

代码示例

代码示例来源:origin: apache/ignite

/**
* Base configuration for a Karaf container running the specified Ignite features.
*
* @return The configuration.
*/
public Option[] baseConfig() {
return options(
// Specify which version of Karaf to use.
karafDistributionConfiguration()
.frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz")
.versionAsInProject())
.karafVersion(System.getProperty("karafVersion"))
.useDeployFolder(false)
.unpackDirectory(new File("target/paxexam/unpack")),
// Add JUnit bundles.
junitBundles(),
// Add the additional JRE exports that Ignite requires.
editConfigurationFileExtend("etc/jre.properties", "jre-1.7", "sun.nio.ch"),
editConfigurationFileExtend("etc/jre.properties", "jre-1.8", "sun.nio.ch"),
// Make log level INFO.
logLevel(LogLevelOption.LogLevel.INFO),
// Add our features repository.
features(mavenBundle()
.groupId("org.apache.ignite").artifactId("ignite-osgi-karaf")
.version(System.getProperty("projectVersion")).type("xml/features"),
featuresToInstall().toArray(new String[0])),
// Propagate the projectVersion system property.
systemProperty("projectVersion").value(System.getProperty("projectVersion"))
);
}

代码示例来源:origin: org.ops4j.pax.web.itest/pax-web-itest-base

public static Option jsfBundlesWithDependencies() {
return composite(
// MyFaces
mavenBundle("org.apache.myfaces.core", "myfaces-api").versionAsInProject(),
mavenBundle("org.apache.myfaces.core", "myfaces-impl").versionAsInProject(),
mavenBundle("javax.interceptor", "javax.interceptor-api").version("1.2"),
mavenBundle("javax.enterprise", "cdi-api").version("1.2"),
mavenBundle("javax.validation", "validation-api").version("1.1.0.Final"),
// Commons
mavenBundle("commons-io", "commons-io").version("1.4"),
mavenBundle("commons-codec", "commons-codec").version("1.10"),
mavenBundle("commons-beanutils", "commons-beanutils").version("1.8.3"),
mavenBundle("commons-collections", "commons-collections").version("3.2.2"),
mavenBundle("commons-digester", "commons-digester").version("1.8.1"),
mavenBundle("org.apache.commons", "commons-lang3").version("3.4")
);
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam

/**
* Sets the junit version.
*
* @param version
* junit version.
*
* @return itself, for fluent api usage
*/
public JUnitBundlesOption version(final String version) {
((MavenArtifactProvisionOption) getDelegate()).version(version);
return this;
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam-junit

/**
* Sets the easymock version.
*
* @param version easymock version.
*
* @return itself, for fluent api usage
*/
public EasyMockBundlesOption version( final String version )
{
( (MavenArtifactProvisionOption) getDelegate() ).version( version );
return this;
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam-junit

/**
* Sets the junit version.
*
* @param version junit version.
*
* @return itself, for fluent api usage
*/
public JUnitBundlesOption version( final String version )
{
( (MavenArtifactProvisionOption) getDelegate() ).version( version );
return this;
}

代码示例来源:origin: ops4j/org.ops4j.pax.exam2

/**
* Sets the junit version.
*
* @param version
* junit version.
*
* @return itself, for fluent api usage
*/
public JUnitBundlesOption version(final String version) {
((MavenArtifactProvisionOption) getDelegate()).version(version);
return this;
}

代码示例来源:origin: org.fusesource.tooling.testing/pax-exam-karaf

/**
* Create an provisioning option for the specified maven artifact
* (groupId and artifactId), using the version found in the list
* of dependencies of this maven project.
*
* @param groupId the groupId of the maven bundle
* @param artifactId the artifactId of the maven bundle
* @param version the version of the maven bundle
* @return the provisioning option for the given bundle
*/
protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) {
return CoreOptions.mavenBundle(groupId, artifactId).version(version);
}

代码示例来源:origin: jboss-fuse/fabric8

/**
* Create an provisioning option for the specified maven artifact
* (groupId and artifactId), using the version found in the list
* of dependencies of this maven project.
*
* @param groupId the groupId of the maven bundle
* @param artifactId the artifactId of the maven bundle
* @param version the version of the maven bundle
* @return the provisioning option for the given bundle
*/
protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) {
return CoreOptions.mavenBundle(groupId, artifactId).version(version);
}

代码示例来源:origin: org.infinispan.server/infinispan-server-testsuite

/**
* Create an provisioning option for the specified maven artifact
* (groupId and artifactId), using the version found in the list
* of dependencies of this maven project.
*
* @param groupId the groupId of the maven bundle
* @param artifactId the artifactId of the maven bundle
* @param version the version of the maven bundle
* @return the provisioning option for the given bundle
*/
protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) {
return CoreOptions.mavenBundle(groupId, artifactId).version(version);
}

代码示例来源:origin: org.apache.sling/org.apache.sling.paxexam.util

/**
* Felix remote shell bundles
* @return Composite option
*/
public static CompositeOption felixRemoteShellBundles() {
final String gogoVersion = "0.10.0";
return new DefaultCompositeOption(
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.runtime").version(gogoVersion),
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.shell").version(gogoVersion),
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.command").version(gogoVersion),
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.shell.remote").version("1.1.2")
);
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam

/**
* Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version.
*
* @param groupId
* artifact group id
* @param artifactId
* artifact id
* @param version
* artifact version
*
* @return maven specific provisioning option
*/
public static MavenArtifactProvisionOption mavenBundle(final String groupId,
final String artifactId, final String version) {
return mavenBundle().groupId(groupId).artifactId(artifactId).version(version);
}

代码示例来源:origin: ops4j/org.ops4j.pax.exam2

/**
* Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version.
*
* @param groupId
* artifact group id
* @param artifactId
* artifact id
* @param version
* artifact version
*
* @return maven specific provisioning option
*/
public static MavenArtifactProvisionOption mavenBundle(final String groupId,
final String artifactId, final String version) {
return mavenBundle().groupId(groupId).artifactId(artifactId).version(version);
}

代码示例来源:origin: org.apache.aries.testsupport/org.apache.aries.testsupport.unit

/**
* For use in the actual test code, which runs in OSGi and has no normal access to the configuration options
* @param groupId
* @param artifactId
* @return
*/
public static MavenArtifactProvisionOption mavenBundleInTest(ClassLoader loader, String groupId, String artifactId) {
return CoreOptions.mavenBundle().groupId(groupId).artifactId(artifactId)
.version(getArtifactVersion(loader, groupId, artifactId));
}

代码示例来源:origin: org.ogema.ref-impl/ogema-exam-base

public Option ogemaWebFrontentOption() {
return CoreOptions.composite(
// CoreOptions.mavenBundle("de.twentyeleven.skysail", "org.json-osgi", "20080701"),
// CoreOptions.mavenBundle("org.json", "json", "20160212"),
CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.1"),
CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start());
// CoreOptions.mavenBundle("commons-codec", "commons-codec").version("1.10").start());
}

代码示例来源:origin: org.ogema.ref-impl/ogema-exam-base2

public Option ogemaWebFrontentOption() {
return CoreOptions.composite(
CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.3"),
CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start());
}

代码示例来源:origin: org.apache.camel/camel-test-karaf

public static UrlReference getCamelKarafFeatureUrl() {
return mavenBundle().
groupId("org.apache.camel.karaf").
artifactId("apache-camel").
version(getCamelKarafFeatureVersion()).
type("xml/features");
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam-junit

/**
* Constructor.
*/
public EasyMockBundlesOption()
{
super(
mavenBundle()
.groupId( "org.easymock" )
.artifactId( "com.springsource.org.easymock" )
.version( "2.3.0" )
);
noUpdate();
startLevel( START_LEVEL_SYSTEM_BUNDLES );
}

代码示例来源:origin: org.ops4j.pax.exam/pax-exam-junit

/**
* Constructor.
*/
public JUnitBundlesOption()
{
super(
mavenBundle()
.groupId( "org.junit" )
.artifactId( "com.springsource.org.junit" )
.version( "4.4.0" )
);
noUpdate();
startLevel( START_LEVEL_SYSTEM_BUNDLES );
}

代码示例来源:origin: org.ogema.ref-impl/ogema-exam-base2

public Option wicketGuiOption() {
return CoreOptions.composite(
CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2")
.start(),
CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject",
"1_1").start(),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"),
CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion),
CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start());
}

代码示例来源:origin: org.ogema.ref-impl/ogema-exam-base

public Option wicketGuiOption() {
return CoreOptions.composite(
CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2")
.start(),
CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject",
"1_1").start(),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"),
CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"),
CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion),
CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start());
}

推荐阅读
author-avatar
當紅冷萱儿_422
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有