Maven的发现神器,但不能编译 [英] Maven finds artifact but cannot compile

查看:145
本文介绍了Maven的发现神器,但不能编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行一个MVN编译我从编译所有说包丢失,我有在我的pom.xml依赖错误的列表。

When I run a mvn compile I get a list of errors from the compilation that all say a package is missing that I have as a dependency in my pom.xml.

Pom.xml

`<dependency>
        <groupId>com.fortysevendeg.android</groupId>
        <artifactId>swipelistview</artifactId>
        <version>1.0-SNAPSHOT</version>
        <type>apklib</type>
 </dependency>`

Error
error: package com.fortysevendeg.swipelistview does not exist

我真的AP preciate在这一个一定的帮助。我一直在敲我的头这一段时间了。

I would really appreciate some help on this one. I have been banging my head against this for a while now.

推荐答案

看起来MVN是无法从你的仓库拉你的包(com.fortysevendeg.swipelistview)。为了弄清楚,我会检查出从code库(即SVN,GitHub上)的包到您的工作空间。重新检查确切名称和放大器的pom.xml的;做MVN安装。

Looks like MVN is not able to pull your package ( com.fortysevendeg.swipelistview ) from your repository. To figure out, I would check-out the package from code repository ( i.e SVN, GitHub ) to your work space. Recheck the pom.xml for exact name & do MVN install.

链接:阅读

Downloading from a Remote Repository

Downloading in Maven is triggered by a project declaring a dependency that is not present in the local repository (or for a SNAPSHOT, when the remote repository contains one that is newer). 

在默认情况下,Maven会从中央存储库下载。

By default, Maven will download from the central repository.

MVN在编译它首先在本地工作区和放大器;如果没有然后找到它把它从配置库中。

During MVN compile it look first in your local workspace & if doesn't find then it will pull it from repository configured to.

这篇关于Maven的发现神器,但不能编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆