无法使用maven导入库
Unable to import library with maven
我正在尝试使用 Maven 导入 Ripple Effect 库 https://github.com/traex/RippleEffect。
它说 "The lib is available on Maven Central, you can find it with Gradle, please"。我不知道 Gradle 是什么,它的信息 (http://gradleplease.appspot.com/#rippleeffect) 对我一点帮助都没有。
我找到了如何使用 maven 导入它。我将此依赖项添加到我的 POM 中:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
</dependency>
并确保我有 Maven 中央存储库:
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<releases>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
但是,当我尝试 运行 项目时,它显示:
Failed to execute goal on project ProjectName: Could not resolve dependencies for project lt.adnera:ProjectName:apk:0.0.1-SNAPSHOT: Failure to find com.github.traex.rippleeffect:library:jar:1.3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
有什么想法吗?
根据http://repo1.maven.org/maven2/com/github/traex/rippleeffect/library/1.3/library-1.3.pom包装是aar所以没有可以下载的jar。
尝试:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
<type>aar</type>
</dependency>
附加信息:http://simpligility.github.io/android-maven-plugin/aar.html
我正在尝试使用 Maven 导入 Ripple Effect 库 https://github.com/traex/RippleEffect。
它说 "The lib is available on Maven Central, you can find it with Gradle, please"。我不知道 Gradle 是什么,它的信息 (http://gradleplease.appspot.com/#rippleeffect) 对我一点帮助都没有。
我找到了如何使用 maven 导入它。我将此依赖项添加到我的 POM 中:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
</dependency>
并确保我有 Maven 中央存储库:
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<releases>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
但是,当我尝试 运行 项目时,它显示:
Failed to execute goal on project ProjectName: Could not resolve dependencies for project lt.adnera:ProjectName:apk:0.0.1-SNAPSHOT: Failure to find com.github.traex.rippleeffect:library:jar:1.3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
有什么想法吗?
根据http://repo1.maven.org/maven2/com/github/traex/rippleeffect/library/1.3/library-1.3.pom包装是aar所以没有可以下载的jar。 尝试:
<dependency>
<groupId>com.github.traex.rippleeffect</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
<type>aar</type>
</dependency>
附加信息:http://simpligility.github.io/android-maven-plugin/aar.html