Examples of ArtifactRef


Examples of org.apache.karaf.tooling.features.model.ArtifactRef

        Artifact bundleArtifact = new DefaultArtifact("org.apache.example", "example", "1.0.0",
                                                      null, "jar", null,
                                                      new DefaultArtifactHandler());
        bundle.setArtifact(bundleArtifact);

        ArtifactRef configFile = new ArtifactRef("mvn:org.apache.example/example/1.0.0/cfg");
        Artifact configFileArtifact = new DefaultArtifact("org.apache.example", "example", "1.0.0",
                                                          null, "xml", "exampleconfig",
                                                          new DefaultArtifactHandler());
        configFile.setArtifact(configFileArtifact);

        Feature feature = new Feature("example");
        feature.addBundle(bundle);
        feature.addConfigFile(configFile);
View Full Code Here

Examples of org.lilyproject.runtime.repository.ArtifactRef

                    if (version == null) {
                        String message = String.format("Version for artifact %s:%s (%s) not specified, and no preference found in runtime configuration.", groupId, artifactId, classifier);
                        throw new RuntimeException(message);
                    }

                    ArtifactRef artifactRef = new RepoArtifactRef(groupId, artifactId, classifier, version);

                    // Check for double artifacts
                    for (ClasspathEntry entry : classpath) {
                        if (entry.getArtifactRef().equals(artifactRef)) {
                            log.error("Classloader specification contains second reference to same artifact, will skip second reference. Artifact = " + artifactRef);
                            continue classpath;
                        } else if (entry.getArtifactRef().getId().equals(artifactRef.getId())) {
                            log.warn("Classloader specification contains second reference to same artifact but different version. Artifact = " + artifactRef);
                        }
                    }

                    // Creating SharingMode
View Full Code Here

Examples of org.lilyproject.runtime.repository.ArtifactRef

        }
        return true;
    }

    private void makeShared(ArtifactHolder holder, String version) {
        ArtifactRef ref = holder.getArtifactRef(version);
        sharedArtifacts.add(new ClasspathEntry(ref, null, holder.getModuleSource()));

        for (ArtifactUser user : holder.required) {
            user.module.getClassLoadingConfig().enableSharing(ref);
        }
View Full Code Here

Examples of org.lilyproject.runtime.repository.ArtifactRef

     */
    private void buildInverseIndex() {
        for (ModuleConfig moduleConf : moduleConfigs) {
            List<ClasspathEntry> classpathEntries = moduleConf.getClassLoadingConfig().getEntries();
            for (ClasspathEntry entry : classpathEntries) {
                ArtifactRef artifact = entry.getArtifactRef();
                ArtifactHolder holder = getArtifactHolder(artifact);
                holder.add(entry.getSharingMode(), artifact.getVersion(), moduleConf, entry.getModuleSource());
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.