private File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if (plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } logger.debug("Cannot find in maven: {}-{}", bsn, version); return null; }
private File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if (plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } logger.debug("Cannot find in maven: {}-{}", bsn, version); return null; }
private File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if (plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
private File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if (plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
private File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if (plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
public File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if ( plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
public File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter) .getPlugins(BsnToMavenPath.class); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }