您的位置:首页 > 其它

MVN 构建项目时的一个问题--Could not resolve de pendencies for projec

2016-08-26 15:59 701 查看
错误的现场是下面这个样子:

[INFO]
[INFO] Qcadoo MES ......................................... SUCCESS [  1.156 s]
[INFO] Qcadoo MES :: Plugins .............................. SUCCESS [  0.120 s]
[INFO] Qcadoo MES :: Plugins :: Basic ..................... SUCCESS [ 12.607 s]
[INFO] Qcadoo MES :: Plugins :: States .................... SUCCESS [  3.930 s]
[INFO] Qcadoo MES :: Plugins :: Production lines .......... SUCCESS [  1.810 s]
[INFO] Qcadoo MES :: Plugins :: Technologies .............. SUCCESS [  4.590 s]
[INFO] Qcadoo MES :: Plugins :: Orders .................... SUCCESS [  5.523 s]
[INFO] Qcadoo MES :: Plugins :: Quality Controls .......... SUCCESS [  2.120 s]
[INFO] Qcadoo MES :: Plugins :: Material Requirements ..... SUCCESS [  1.544 s]
[INFO] Qcadoo MES :: Plugins :: Column Extension .......... SUCCESS [  1.327 s]
[INFO] Qcadoo MES :: Plugins :: Time norms for operations . SUCCESS [  1.875 s]
[INFO] Qcadoo MES :: Plugins :: Operation time calculations SUCCESS [  1.514 s]
[INFO] Qcadoo MES :: Plugins :: Basic Production Counting . SUCCESS [  1.762 s]
[INFO] Qcadoo MES :: Plugins :: Production Counting and Balance SUCCESS [  3.276
 s]
[INFO] Qcadoo MES :: Plugins :: Work Plans ................ SUCCESS [  3.232 s]
[INFO] Qcadoo MES :: Plugins :: Quality Controls For Operation SUCCESS [  0.329
s]
[INFO] Qcadoo MES :: Plugins :: Samples ................... SUCCESS [  1.836 s]
[INFO] Qcadoo MES :: Plugins :: Production Scheduling ..... SUCCESS [  0.644 s]
[INFO] Qcadoo MES :: Plugins :: Stoppage .................. SUCCESS [  0.358 s]
[INFO] Qcadoo MES :: Plugins :: Minimal affordable quantity SUCCESS [  0.378 s]
[INFO] Qcadoo MES :: Plugins :: Gantt for operations ...... SUCCESS [  0.433 s]
[INFO] Qcadoo MES :: Plugins :: Gantt for orders .......... SUCCESS [  0.377 s]
[INFO] Qcadoo MES :: Plugins :: Gantt for shifts .......... SUCCESS [  0.422 s]
[INFO] Qcadoo MES :: Plugins :: Material Flow Module ...... SUCCESS [  2.431 s]
[INFO] Qcadoo MES :: Plugins :: Cost norms for product .... SUCCESS [  1.145 s]
[INFO] Qcadoo MES :: Plugins :: Material Flow Resources Module SUCCESS [  3.178
s]
[INFO] Qcadoo MES :: Plugins :: Material Flow Multitransfers Module SUCCESS [  1
.320 s]
[INFO] Qcadoo MES :: Plugins :: Cost norms for operation .. SUCCESS [  1.170 s]
[INFO] Qcadoo MES :: Plugins :: Cost norms for materials .. SUCCESS [  1.735 s]
[INFO] Qcadoo MES :: Plugins :: Operation cost calculations SUCCESS [  1.029 s]
[INFO] Qcadoo MES :: Plugins :: Cost calculation .......... SUCCESS [  1.497 s]
[INFO] Qcadoo MES :: Plugins :: Simple material balance ... SUCCESS [  0.544 s]
[INFO] Qcadoo MES :: Plugins :: Production Counting With Costs SUCCESS [  1.560
s]
[INFO] Qcadoo MES :: Plugins :: Production per shift ...... SUCCESS [  3.422 s]
[INFO] Qcadoo MES :: Plugins :: Deviation Causes Reporting  SUCCESS [  1.513 s]
[INFO] Qcadoo MES :: Plugins :: Line changeover norms ..... SUCCESS [  1.988 s]
[INFO] Qcadoo MES :: Plugins :: Line changeover norms for orders SUCCESS [  1.81
8 s]
[INFO] Qcadoo MES :: Plugins :: Wage groups ............... SUCCESS [  1.443 s]
[INFO] Qcadoo MES :: Plugins :: Master orders ............. SUCCESS [  4.196 s]
[INFO] Qcadoo MES :: Plugins :: Assignment to shift ....... SUCCESS [  2.190 s]
[INFO] Qcadoo MES :: Plugins :: Cost Norms for Operation in order SUCCESS [  0.4
25 s]
[INFO] Qcadoo MES :: Plugins :: Average labor hourly calculator for order SUCCES
S [  1.114 s]
[INFO] Qcadoo MES :: Plugins :: Product catalog numbers ... SUCCESS [  2.181 s]
[INFO] Qcadoo MES :: Plugins :: Tech subcontracting ....... SUCCESS [  1.291 s]
[INFO] Qcadoo MES :: Plugins :: Operational tasks ......... SUCCESS [  1.174 s]
[INFO] Qcadoo MES :: Plugins :: Operational tasks for orders SUCCESS [  4.203 s]

[INFO] Qcadoo MES :: Plugins :: Technology subcontracting for operational tasks
SUCCESS [  1.087 s]
[INFO] Qcadoo MES :: Plugins :: Deliveries ................ SUCCESS [  5.592 s]
[INFO] Qcadoo MES :: Plugins :: Technology subcontracting for deliveries SUCCESS
 [  1.556 s]
[INFO] Qcadoo MES :: Plugins :: Deliveries to material flow SUCCESS [  0.656 s]
[INFO] Qcadoo MES :: Plugins :: Technology subcontracting for production countin
g SUCCESS [  0.659 s]
[INFO] Qcadoo MES :: Plugins :: Catalog numbers in deliveries SUCCESS [  3.532 s
]
[INFO] Qcadoo MES :: Plugins :: Warehouse Minimal State ... SUCCESS [  0.678 s]
[INFO] Qcadoo MES :: Plugins :: CMMS Machine Parts ........ SUCCESS [  3.348 s]
[INFO] Qcadoo MES :: Pack :: Open source .................. SUCCESS [  0.150 s]
[INFO] Qcadoo MES :: Application .......................... FAILURE [ 13.441 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:05 min
[INFO] Finished at: 2016-08-26T15:16:26+08:00
[INFO] Final Memory: 140M/837M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.qcadoo:qcadoo-maven-plugin:1.5-SNAPSHOT:tomca

t (prepare-tomcat-package) on project mes-application: Exception while copying d

ependencies: Cannot access qcadoo-releases-repository (http://nexus.qcadoo.org/c

ontent/repositories/releases) in offline mode and the artifact commons-daemon:co

mmons-daemon:jar:1.0.3 has not been downloaded from it before.
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=commons-daemon -DartifactId=commons-d
aemon -Dversion=1.0.3 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file t
here:
[ERROR] mvn deploy:deploy-file -DgroupId=commons-daemon -DartifactId=commons-dae
mon -Dversion=1.0.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=
之前也不知道怎么解决,然后问了前辈,在她的指点下找到了解决的方法,最终一切顺利。

具体的思路是这样的:因为错误提示是找不到依赖的包,所以就到相应的位置找相应的包。

首先进入mvn的repository目录,就是我们从服务器下载jar包存放的位置,

然后安装上面的那段路劲查找com-->xxxxxx-->recharge-service-->....1.0.0-SNAPSHOT.jar.lastUpdate

1.0.0-SNAPSHOT.jar.lastUpdate我们需要的是jar,结果看到的文件后面多了.lastUpdate,于是把多余的部分去掉。

最后再执行mvn eclipse:eclipse

结果前面的问题就解决了。

如果还是提示同样的问题,建议手动添加(安装) Jar包到Maven。 

[url=http://blog.csdn.net/kingmax54212008/article/details/52301200]http://blog.csdn.net/kingmax54212008/article/details/52301200" target=_blank> -Drepositor
yId=[id]
[ERROR]
[ERROR]
[ERROR] commons-daemon:commons-daemon:jar:1.0.3
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] qcadoo-releases-repository (http://nexus.qcadoo.org/content/repositories
/releases, releases=true, snapshots=false),
[ERROR] com.logdigger (http://maven.logdigger.com/repos, releases=true, snapshot
s=false),
[ERROR] atlassian (https://maven.atlassian.com/repository/public, releases=true,
 snapshots=false),
[ERROR] maven-central (http://repo1.maven.org/maven2/, releases=true, snapshots=
false),
[ERROR] jboss-repository (https://repository.jboss.org/nexus/content/groups/publ
ic/, releases=true, snapshots=false),
[ERROR] codehaus-repository (http://repository.codehaus.org/, releases=true, sna
pshots=false),
[ERROR] mc-release (http://mc-repo.googlecode.com/svn/maven2/releases, releases=
true, snapshots=false),
[ERROR] springsource-repo (http://repo.springsource.org/release, releases=true,
snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=
false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :mes-application

因为这个项目是三个独立项目依靠依赖关系结合在一起的r

这样的话就需要在web里包含其他两jar包。

从错误的意思上来说“找不到依赖的包commons-daemon:jar:1.0.3"

之前也不知道怎么解决,然后问了前辈,在她的指点下找到了解决的方法,最终一切顺利。

具体的思路是这样的:因为错误提示是找不到依赖的包,所以就到相应的位置找相应的包。

首先进入mvn的repository目录,就是我们从服务器下载jar包存放的位置,

然后安装上面的那段路劲查找com-->xxxxxx-->recharge-service-->....1.0.0-SNAPSHOT.jar.lastUpdate

1.0.0-SNAPSHOT.jar.lastUpdate我们需要的是jar,结果看到的文件后面多了.lastUpdate,于是把多余的部分去掉。

最后再执行mvn eclipse:eclipse

结果前面的问题就解决了。

如果还是提示同样的问题,建议手动添加(安装) Jar包到Maven。 

[url=http://blog.csdn.net/kingmax54212008/article/details/52301200]http://blog.csdn.net/kingmax54212008/article/details/52301200

把这个问题写下来,希望能帮助到碰到和我一样问题的朋友们。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  maven
相关文章推荐