Package org.rhq.core.util.maven

Examples of org.rhq.core.util.maven.MavenArtifactProperties


    public String getSeamVersion() {
        return ""; //getManifestVersion(Component.class);
    }

    public String getRichFacesVersion() {
        MavenArtifactProperties richFacesMavenProps;
        try {
            richFacesMavenProps = MavenArtifactProperties.getInstance("org.richfaces.framework", "richfaces-api");
        } catch (MavenArtifactNotFoundException e) {
            log.error("Could not ascertain RichFaces version.", e);
            richFacesMavenProps = null;
        }
        String richFacesVersion = (richFacesMavenProps != null) ? richFacesMavenProps.getVersion() : null;
        return (richFacesVersion != null) ? richFacesVersion : UNKNOWN_VERSION;
    }
View Full Code Here


        return (operationDefinition.getTimeout() != null) ? operationDefinition.getTimeout()
            : this.pluginContainerConfiguration.getOperationInvocationTimeout();
    }

    private static String getRhqVersion() {
        MavenArtifactProperties rhqPluginContainerPom = null;
        try {
            //check for system property specifiers before going to classpath
            String rhqVersion = System.getProperty("rhq.version");
            if ((rhqVersion != null) && !(rhqVersion.trim().isEmpty())) {
                return rhqVersion;
            }
            rhqPluginContainerPom = MavenArtifactProperties.getInstance("org.rhq", "rhq-core-plugin-container");
        } catch (MavenArtifactNotFoundException e) {
            throw new RuntimeException(e);
        }
        return rhqPluginContainerPom.getVersion();
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.util.maven.MavenArtifactProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.