Android的常春藤ActionBarSherlock [英] Android Ivy ActionBarSherlock
问题描述
是否有可能使用类型apklib为常春藤依赖?
Is it possible to use the type "apklib" for an Ivy dependency?
在我的项目我使用的ActionBarSherlock lib和我想用常春藤检索的依赖。
In my project I'm using the ActionBarSherlock lib and I want to use Ivy for retrieving the dependency.
下面是我不能正常工作的xml:
Here is my not working xml:
<dependency
name="actionbarsherlock"
conf="binaries"
org="com.actionbarsherlock"
rev="4.2.0"
transitive="true"
type="apklib" />
感谢您的帮助!
推荐答案
在这种情况下,所有需要的是一个简单的依赖声明如下:
In this case, all that's needed is a simple dependency declaration as follows:
<dependency org="com.actionbarsherlock" name="actionbarsherlock" rev="4.2.0" conf="default"/>
为什么呢?这Maven的模块是特别,<一个href=\"http://search.maven.org/remotecontent?filepath=com/actionbarsherlock/actionbarsherlock/4.2.0/actionbarsherlock-4.2.0.pom\"相对=nofollow> Maven的POM 已配置的值设置为apklib包装。这意味着,该模块的主要文件是actionbarsherlock-4.2.0.apklib,而不是默认的.jar文件。
Why? This Maven module is special, the Maven POM has been configured with a packaging set to the value "apklib". This means the module's main file is "actionbarsherlock-4.2.0.apklib" instead of the default .jar file.
什么是令人困惑的是,也有发表一个jar文件.......若要检索此,您可以添加特殊的神器标记:
What's confusing is that there is also a jar file published.......To retrieve this, you can add the special artifact tag:
<dependency org="com.actionbarsherlock" name="actionbarsherlock" rev="4.2.0" conf="default">
<artifact name="actionbarsherlock" type="jar"/>
</dependency>
要看到这个模块,我建议<一发布的所有文件href=\"http://search.maven.org/#artifactdetails%7Ccom.actionbarsherlock%7Cactionbarsherlock%7C4.2.0%7Capklib\"相对=nofollow> Maven的搜索。
To see all the files published by this module I'd recommend Maven search.
这篇关于Android的常春藤ActionBarSherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!