我在build.sbt文件中提到了一个jar(属于我的org的神器)
ls ./cache/com.quantcast/quantserve_shared/
ivy-3.5.3132.xml ivy-3.5.3132.xml.original ivydata-3.5.3132.properties ivydata-latest.integration.properties
当我编译代码时,我看到这些文件被下载到我的〜/ .ivy2目录中,而不是jars文件夹或任何jar。
<module organisation="com.quantcast" name="quantserve_shared">
<revision name="3.5.3132" status="release" pubdate="20170315145341" resolver="sbt-chain" artresolver="sbt-chain" downloaded="false" searched="true" default="false" conf="compile, default(compile)" position="74">
<metadata-artifact status="no" details="" size="7161" time="0" location="/Users/pkhurana/.ivy2/cache/com.quantcast/quantserve_shared/ivy-3.5.3132.xml" searched="true" origin-is-local="false" origin-location="http://<My org artifactory>/libs-bmr-releases-local/com/quantcast/quantserve_shared/3.5.3132/ivy-3.5.3132.xml"/>
<caller organisation="audience-link-core" name="audience-link-core_2.11" conf="compile-internal, compile, provided, optional" rev="latest.integration" rev-constraint-default="latest.integration" rev-constraint-dynamic="latest.integration" callerrev="0.9999999.17.76.111418"/>
<artifacts>
</artifacts>
</revision>
</module>
我查看了我的resolution-cache / reports / audience-link-core-audience-link-core_2.11-compile-internal.xml文件,看看:
<module organisation="com.twitter.util-core" name="util-core">
<revision name="1.12.13" status="release" pubdate="20131024042503" resolver="sbt-chain" artresolver="sbt-chain" homepage="" downloaded="false" searched="false" default="false" conf="default, compile, runtime, master" position="127">
<metadata-artifact status="no" details="" size="2240" time="0" location="/Users/pkhurana/.ivy2/cache/com.twitter.util-core/util-core/ivy-1.12.13.xml" searched="false" origin-is-local="true" origin-location="/Users/pkhurana/.ivy2/quantcast-bmr/com.twitter.util-core/util-core/ivy-1.12.13.xml"/>
<caller organisation="com.quantcast" name="quantserve_shared" conf="compile" rev="1.12.13" rev-constraint-default="1.12.13" rev-constraint-dynamic="1.12.13" callerrev="3.5.3132"/>
<artifacts>
<artifact name="util-core" type="jar" ext="jar" status="no" details="" size="632306" time="0" location="/Users/pkhurana/.ivy2/quantcast-bmr/com.twitter.util-core/util-core/jars/util-core-1.12.13.jar">
<origin-location is-local="true" location="/Users/pkhurana/.ivy2/quantcast-bmr/com.twitter.util-core/util-core/jars/util-core-1.12.13.jar"/>
</artifact>
</artifacts>
</revision>
</module>
因此,artifactory标签中没有任何内容,但我确实看到其他jar的quantserve_shared jar的依赖项被下载,并且它们在分辨率缓存中的条目也很好。
.top-to-bottom { border-width: 1px; border-style: solid; -webkit-border-image: -webkit-gradient(linear, 0 0, 0 100%, from(black), to(rgba(0, 0, 0, 0))) 1 100%; -webkit-border-image: -webkit-linear-gradient(black, rgba(0, 0, 0, 0)) 1 100%; -moz-border-image: -moz-linear-gradient(black, rgba(0, 0, 0, 0)) 1 100%; -o-border-image: -o-linear-gradient(black, rgba(0, 0, 0, 0)) 1 100%; border-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0)) 1 100%; }
答案 0 :(得分:0)
不确定为什么,但最新的sbt(0.13.15)确实下载了所有内容
答案 1 :(得分:0)
这是因为依赖jar没有在其常春藤文件中指定的配置'compile'。它具有公共可见性指定的“主”。现在sbt尝试默认找到'compile'但是失败了。 通过将其更改为
来解决这个问题 #!/usr/bin/perl
use strict;
use LWP::UserAgent;
use LWP::Simple;
use POSIX qw(strftime);
my $data = strftime "%H.%M.%S", gmtime;
my $ARGC = @ARGV;
if ($ARGC !=1) {
printf "$0 arquivo.txt\n";
printf "Coded by: Al3xG0 x@~\n";
exit(1);
}
my $st = rand();
my $filename = $ARGV[0];
print "Input Filename - $filename\n";
my $max_results = 2;
open (IFH, "< $filename") or die $!;
open (OFH, "> output.${data}.txt") or die $!;
while (<IFH>) {
next if /^ *$/;
my $search_word = $_;
$search_word =~ s/\n//;
print "Results for -$search_word-\n";
for (my $i = 0; $i < $max_results; $i += 10) {
my $b = LWP::UserAgent->new(agent => 'Mozilla/4.8 [en] (Windows NT 6.0; U)');
$b->timeout(30); $b->env_proxy;
my $c = $b->get('http://www.bing.com/search?q=' . $search_word . '&first=' . $i . '&FORM=PERE')->content;
my $check = index($c, 'sb_pagN');
if ($check == -1) { last; }
while (1) {
my $n = index($c, '<h2><a href="');
if ($n == -1) { last; }
$c = substr($c, $n + 13);
my $s = substr($c, 0, index($c, '"'));
my $save = undef;
if ($s =~ /http:\/\/([^\/]+)\//g) { $save = $s; }
print "$save\n";
#if ($save !~ /^ *$/) { print OFH "$save\n"; print "$save\n"};
getprint("http://post.silverlords.org/sites.php?site=$save");
}
}
print "\n";
}
close (IFH);
close (OFH);