public Map<String, Artifact> getArtifactMap() { return wrapped.getArtifactMap(); }
private Set<File> getPriorityClasspath() { final Artifact specsApi = project.getArtifactMap().get("com.atlassian.bamboo:bamboo-specs-api"); final Artifact specs = project.getArtifactMap().get("com.atlassian.bamboo:bamboo-specs"); final Artifact snakeYaml = project.getArtifactMap().get("org.yaml:snakeyaml"); return Stream.of(specsApi, specs, snakeYaml) .map(Artifact::getFile) .collect(Collectors.toSet()); }
private String getVersion(String id) { Artifact artifact = project.getArtifactMap().get(id); if (artifact != null) { return artifact.getBaseVersion(); } else if (id.startsWith("org.apache.karaf")) { return karafVersion; } else { return null; } }
private String getVersion(String id) { Artifact artifact = project.getArtifactMap().get(id); if (artifact != null) { return artifact.getBaseVersion(); } else if (id.startsWith("org.apache.karaf")) { return karafVersion; } else { return null; } }
@Override public boolean addIt(Artifact a) { return a.getScope().equals("runtime") && !project.getArtifactMap().containsKey(a.getGroupId() +":" + a.getArtifactId()); }
@Override public boolean addIt(Artifact a) { return a.getScope().equals("runtime") && !project.getArtifactMap().containsKey(a.getGroupId() +":" + a.getArtifactId()); }
private Artifact getArtifact(String groupId, String artifactId) { String versionlessKey = ArtifactUtils.versionlessKey(groupId, artifactId); return project.getArtifactMap().get(versionlessKey); }
public Map getArtifactMap() { return getDelegate().getArtifactMap(); }
public void printDeps(String name, Collection<org.apache.maven.model.Dependency> dependencies) { System.out.println(name); for (org.apache.maven.model.Dependency d : dependencies) { System.out.printf("dependency [%s]\n", d.toString()); String versionlessKey = ArtifactUtils.versionlessKey(d.getGroupId(), d.getArtifactId()); Artifact artifact = (Artifact)project.getArtifactMap().get(versionlessKey); if (null != artifact) { File file = artifact.getFile(); System.out.printf("artifact [%s]\n", file.getPath()); } } }
private Artifact getBaseDependency() { return project.getArtifactMap().get( base.getGroupId() + ":" + base.getArtifactId()); }
/** * Used by AbstractBooterDaemonGenerator. */ public static Dependency create( MavenProject project, String id, ArtifactRepositoryLayout layout, String outputFileNameMapping ) throws DaemonGeneratorException { Artifact artifact = (Artifact) project.getArtifactMap().get( id ); if ( artifact == null ) { throw new DaemonGeneratorException( "The project has to have a dependency on '" + id + "'." ); } return create( artifact, layout, outputFileNameMapping ); } }
/** * Used by AbstractBooterDaemonGenerator. */ public static Dependency create( MavenProject project, String id, ArtifactRepositoryLayout layout, String outputFileNameMapping ) throws DaemonGeneratorException { Artifact artifact = (Artifact) project.getArtifactMap().get( id ); if ( artifact == null ) { throw new DaemonGeneratorException( "The project has to have a dependency on '" + id + "'." ); } return create( artifact, layout, outputFileNameMapping ); } }
Artifact gwtUser = project.getArtifactMap().get( GWT_USER ); if (gwtUser != null)
Artifact gwtUser = project.getArtifactMap().get( GWT_USER ); if (gwtUser != null)
final Map<String, Artifact> artifacts = this.mavenHelper.getSession().getCurrentProject().getArtifactMap(); final String sdkArtifactKey = ArtifactUtils.versionlessKey(sarlSdkGroupId, sarlSdkArtifactId); final Artifact sdkArtifact = artifacts.get(sdkArtifactKey);
@Override public void execute() { if (transpileOutputDirectory == null) { if ("jar".equals(project.getPackaging()) && project.getArtifactMap() .containsKey("com.vaadin:vaadin-spring-boot-starter")) { // in spring boot project there is not web app directory transpileOutputDirectory = new File( project.getBuild().getOutputDirectory(), "META-INF/resources"); } else { // the default assumes basic war project transpileOutputDirectory = new File( project.getBuild().getDirectory(), project.getBuild().getFinalName()); } } FrontendDataProvider frontendDataProvider = new FrontendDataProvider( bundle, minify, hash, transpileEs6SourceDirectory, new AnnotationValuesExtractor(getProjectClassPathUrls()), bundleConfiguration, getFragmentsData(fragments)); FrontendToolsManager frontendToolsManager = new FrontendToolsManager( transpileWorkingDirectory, es5OutputDirectoryName, es6OutputDirectoryName, frontendDataProvider, getRunnerManager()); new TranspilationStep(frontendToolsManager, yarnNetworkConcurrency) .transpileFiles(transpileEs6SourceDirectory, transpileOutputDirectory, skipEs5); }
collectRequest.setRepositories(project.getRemoteProjectRepositories()); Map<String, Artifact> artifacts = project.getArtifactMap(); for (Dependency dependency : dependencies) { if (Strings.isNullOrEmpty(dependency.getVersion())) {
public void printDebugInfo() throws Exception //DependencyResolutionRequiredException { //println("project.getCompileClasspathElements", project.getCompileClasspathElements()); println("project.getCompileArtifacts", project.getCompileArtifacts()); println("project.getCompileDependencies", project.getCompileDependencies()); println("project.getDependencyArtifacts", project.getDependencyArtifacts()); println("project.getArtifactMap", project.getArtifactMap().keySet()); println("project.getArtifacts", project.getArtifacts()); printDeps("project.getRuntimeDependencies", project.getRuntimeDependencies()); printDeps("project.getDependencies", project.getDependencies()); }
useAnnotations = request.getProject().getArtifactMap().containsKey( "org.apache.maven.plugin-tools:maven-plugin-annotations" );
pluginArtifact = getSession().getCurrentProject().getPluginArtifactMap().get(artifactId); } else { pluginArtifact = getSession().getCurrentProject().getArtifactMap().get(artifactId);