Search in sources :

Example 1 with Entry

use of org.eclipse.che.maven.data.MavenWorkspaceCache.Entry in project che by eclipse.

the class CheArtifactResolver method isModule.

private boolean isModule(Artifact artifact) {
    MavenWorkspaceCache cache = workspaceCache;
    if (cache == null) {
        return false;
    }
    Entry entry = cache.findEntry(new MavenKey(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion()));
    if (entry == null) {
        return false;
    }
    artifact.setResolved(true);
    artifact.setFile(entry.getFile(artifact.getType()));
    artifact.selectVersion(entry.getKey().getVersion());
    return true;
}
Also used : MavenWorkspaceCache(org.eclipse.che.maven.data.MavenWorkspaceCache) MavenKey(org.eclipse.che.maven.data.MavenKey) Entry(org.eclipse.che.maven.data.MavenWorkspaceCache.Entry)

Aggregations

MavenKey (org.eclipse.che.maven.data.MavenKey)1 MavenWorkspaceCache (org.eclipse.che.maven.data.MavenWorkspaceCache)1 Entry (org.eclipse.che.maven.data.MavenWorkspaceCache.Entry)1