- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试在没有互联网连接的区域中处理我的项目。令我惊讶的是,sbt 在这种情况下遇到了麻烦。虽然,我应该将我的库放在缓存中(鉴于我最初是在线启动项目的),但 sbt 无法解决一些依赖关系。
Sbt 无法获取我的本地 maven 存储库,他也找不到我认为他已经下载的其他依赖项(即在缓存中)。
*
My question is: how to ensure that when i have the connection, sbt fetches the libs in the cache ONCE, so that when i don't have it, it fetches all my local repo including the one of maven.
[warn] file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
[info] Resolving com.google.inject.extensions#guice-multibindings;4.0-beta4 ...
**[warn] Host repo1.maven.org not found.** url=http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
**[info] You probably access the destination server through a proxy server that is not well configured.**
[warn] module not found: com.google.inject.extensions#guice-multibindings;4.0-beta4
**[warn] ==== local: tried
[warn] /Users/maatary/.ivy2/local/com.google.inject.extensions/guice-multibindings/4.0-beta4/ivys/ivy.xml**
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
[warn] ==== Local Maven Repository: tried
[warn] file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
[info] Resolving jline#jline;2.12 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.google.inject.extensions#guice-assistedinject;4.0-beta4: not found
[warn] :: com.google.inject.extensions#guice-multibindings;4.0-beta4: not found
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="com.google.inject.extensions"
module="guice-assistedinject"
revision="4.0-beta4"
status="release"
publication="20140320225220"
>
<description homepage="" />
<m:properties__guice.with.no_aop>true</m:properties__guice.with.no_aop>
<m:properties__gpg.skip>true</m:properties__gpg.skip>
<m:properties__project.build.sourceEncoding>UTF-8</m:properties__project.build.sourceEncoding>
<m:properties__guice.api.version>1.4</m:properties__guice.api.version>
<e:sbtTransformHash>7174be3135c2a95a21c158fb6beb5a9621b5b898</e:sbtTransformHash>
<m:properties__guice.with.jarjar>true</m:properties__guice.with.jarjar>
<m:maven.plugins>null__maven-gpg-plugin__1.4|null__maven-gpg-plugin__1.4|null__maven-remote-resources-plugin__null|org.codehaus.mojo__animal-sniffer-maven-plugin__null|org.apache.felix__maven-bundle-plugin__null|null__mav\
en-source-plugin__null|null__maven-javadoc-plugin__null|null__maven-gpg-plugin__1.4|null__maven-gpg-plugin__1.4|null__maven-remote-resources-plugin__null|org.codehaus.mojo__animal-sniffer-maven-plugin__null|org.apache.felix__maven-bundle\
-plugin__null|null__maven-source-plugin__null|null__maven-javadoc-plugin__null</m:maven.plugins>
</info>
<configurations>
<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf" extends="runtime,master"/>
<conf name="master" visibility="public" description="contains only the artifact published by this module itself, with no transitive dependencies"/>
<conf name="compile" visibility="public" description="this is the default scope, used if none is specified. Compile dependencies are available in all classpaths."/>
<conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
<conf name="runtime" visibility="public" description="this scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath\
." extends="compile"/>
<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases." extends\
="runtime"/>
<conf name="system" visibility="public" description="this scope is similar to provided except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repos\
itory."/>
<conf name="sources" visibility="public" description="this configuration contains the source artifact of this module, if any."/>
<conf name="javadoc" visibility="public" description="this configuration contains the javadoc artifact of this module, if any."/>
<conf name="optional" visibility="public" description="contains all optional dependencies"/>
</configurations>
<publications>
<artifact name="guice-assistedinject" type="jar" ext="jar" conf="master"/>
</publications>
<dependencies>
<dependency org="com.google.inject" name="guice" rev="4.0-beta4" force="true" conf="compile->compile(*),master(*);runtime->runtime(*);test->runtime(*),master(*)">
<artifact name="guice" type="jar" ext="jar" conf="compile,runtime"/>
<artifact name="guice" type="jar" ext="jar" conf="test" m:classifier="tests"/>
</dependency>
<dependency org="cglib" name="cglib" rev="3.1" force="true" conf="test->runtime(*),master(*)">
<exclude org="asm" module="asm" name="*" type="*" ext="*" matcher="exact"/>
</dependency>
<dependency org="org.ow2.asm" name="asm" rev="5.0" force="true" conf="test->runtime(*),master(*)"/>
<dependency org="junit" name="junit" rev="4.11" force="true" conf="test->runtime(*),master(*)"/>
</dependencies>
</ivy-module>
#ivy cached data file for com.google.inject.extensions#guice-assistedinject;4.0-beta4
#Sun Aug 17 20:44:39 CEST 2014
artifact\:guice-assistedinject\#src\#jar\#1257084071.is-local=false
artifact\:ivy\#ivy\#xml\#-1879642188.exists=true
artifact\:guice-assistedinject\#src\#jar\#1257084071.exists=true
artifact\:ivy\#ivy\#xml\#-1879642188.location=http\://repo1.maven.org/maven2/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
artifact\:guice-assistedinject\#pom.original\#pom\#1062568006.is-local=false
artifact\:guice-assistedinject\#jar\#jar\#-589994656.is-local=false
artifact\:guice-assistedinject\#pom.original\#pom\#1062568006.location=http\://repo1.maven.org/maven2/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
artifact\:guice-assistedinject\#jar\#jar\#-589994656.location=http\://repo1.maven.org/maven2/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.jar
artifact\:guice-assistedinject\#doc\#jar\#-1786980107.location=http\://repo1.maven.org/maven2/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4-javadoc.jar
artifact\:guice-assistedinject\#pom.original\#pom\#1062568006.exists=true
artifact\:guice-assistedinject\#doc\#jar\#-1786980107.exists=true
artifact\:ivy\#ivy\#xml\#-1879642188.is-local=false
artifact\:guice-assistedinject\#doc\#jar\#-1786980107.is-local=false
artifact\:guice-assistedinject\#src\#jar\#1257084071.location=http\://repo1.maven.org/maven2/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4-sources.jar
artifact\:guice-assistedinject\#jar\#jar\#-589994656.exists=true
最佳答案
When
offline := true
, remote SNAPSHOTs will not be updated by a resolution, even an explicitly requested update. This should effectively support working without a connection to remote repositories. Reproducible examples demonstrating otherwise are appreciated. Obviously, update must have successfully run before going offline.
关于sbt - 如何设置 sbt 以便在联机时获取所有必要的依赖项,然后让我脱机工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25348793/
例如,我如何比较 Junit 中的动态对象类型:- while (objList.hasNext()) { Object obj = objList.next(); Asser
如何在方法本身内部测试参数。例如 class TestClass { public void paraMethod(String para1, String para2) { Str
我觉得问这个问题很愚蠢,因为在搜索了三个小时后,我不断得到我无法理解的答案。提醒我,我对网络编程还是很陌生。 我已经用 jsp 和一个 mysql 数据库编写了一个很酷的小应用程序,并且一直在本地(在
假设我有 var input = new int[] { 0, 1, 2, 3, 4, 5 }; 如何将它们分组成对? var output = new int[][] { new int[] { 0
我正在我的azure移动应用程序中尝试离线同步,但它总是返回空指针。我已经调试了3天以找到错误根源,但无法弄清楚。任何帮助将不胜感激。每次我调试我出现此错误,我已按照 Microsoft azre 提
我正在尝试使用 TrueForAll 方法,但效果不是很好。谁能帮帮我? 我的问题:我有一个整数列表,例如 myIntList。我需要满足列表中所有整数的特定条件。 例子: List myFinalL
我正在开发一个聊天机器人,使用 DialogFlow 作为我的自然语言处理程序,并使用 Python 作为我的客户端。 我的应用程序旨在与 python 环境中的人交谈(我目前正在使用 Jupyter
我已经尝试过 QuickBlox 文档方法,但上次请求时间始终不变,实际上,当连接的用户使用 Quickblox 进行任何事件(例如与某人聊天)时,它应该被更新。 但是,它保持不变。(它只给出用户登录
我在 SQLserver 中有一个名为 CandidateContacts 的表,它具有以下字段 Id、createDate、dateUpdated、address。 我正在尝试获取给定 ID 列表中
我们使用 SharePoint 客户端对象模型为 SharePoint online 构建 Windows 客户端应用程序。我们想使用OAuth 来对这个Windows 客户端应用程序进行身份验证,但
我是一名优秀的程序员,十分优秀!