springside4配置环境时无法下载到两个核心包

dhaily 发布于 2012/07/19 08:08
阅读 11K+
收藏 0

@江南白衣 你好,想跟你请教个问题:

 

今天早上凌晨2点时,我在运行eclipse.bat时,出现如下错误,初步判断就是无法下载两个核心包,不知道是哪里错了

 

[WARNING] Missing POM for org.springside:springside-core🏺4.0.0.RC4-SNAPSHOT

 

[WARNING] An error occurred during dependency resolution.

 

    Failed to retrieve org.springside:springside-core-4.0.0.RC4-SNAPSHOT

 

Caused by: Could not find artifact org.springside:springside-core🏺4.0.0.RC4-

 

SNAPSHOT

 

 

 

Try downloading the file manually from the project website.

 

 

 

Then, install it using the command:

 

    mvn install:install-file -DgroupId=org.springside -DartifactId=springside-co

 

re -Dversion=4.0.0.RC4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 

 

 

Alternatively, if you host your own repository you can deploy the file there:

 

    mvn deploy:deploy-file -DgroupId=org.springside -DartifactId=springside-core

 

 -Dversion=4.0.0.RC4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -

 

DrepositoryId=[id]

 

 

 

Path to dependency:

 

        1) org.springside.examples:mini-service:war:4.0.0.RC4-SNAPSHOT

 

        2) org.springside:springside-core🏺4.0.0.RC4-SNAPSHOT

 

 

 

 

 

  org.springside:springside-core🏺4.0.0.RC4-SNAPSHOT

 

 

 

from the specified remote repositories:

 

  central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false),

 

 

 

  spy (http://files.couchbase.com/maven2/, releases=true, snapshots=false)

 

 

 

[INFO] Unable to read jar manifest from C:\Documents and Settings\Administrator\

 

.m2\repository\org\springside\springside-core\4.0.0.RC4-SNAPSHOT\springside-core

 

-4.0.0.RC4-SNAPSHOT.jar

 

[WARNING] An error occurred during dependency resolution.

 

    Failed to retrieve org.springside:springside-test-4.0.0.RC4-SNAPSHOT

 

Caused by: Could not find artifact org.springside:springside-test🏺4.0.0.RC4-

 

SNAPSHOT

以下是问题补充:

@dhaily:在modules\core\bin模块里执行install.bat,也是同样情况,如下所示,请问到底是什么 原因啊?? [INFO] Install jar to local repository. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Springside :: Module :: Core 4.0.0.RC4-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.110s [INFO] Finished at: Thu Jul 19 12:40:38 CST 2012 [INFO] Final Memory: 4M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project springside-core: Could not resolve dep endencies for project org.springside:springside-core🏺4.0.0.RC4-SNAPSHOT: Cou ld not find artifact org.springside:springside-test🏺4.0.0.RC4-SNAPSHOT -> [H elp 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/DependencyReso lutionException 'cmd' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 请按任意键继续. . . (2012/07/19 12:41)
加载中
0
dhaily
dhaily

今晚已经搞定了这个问题

在查看问题列表时,发现白衣已经对这个问题做了重大提示“要自己build”

于是我就搞定了。

不过提醒后来者,如果遇到这个问题,先要build test 里的内容,生成 springside-test.jar,再去build core里的springside-core.jar

hulj
hulj
请问是在eclise中build吗?生成jar后怎么用,放哪?
zendtrend
zendtrend
正解
0
heatgemini
heatgemini
颠三倒四
返回顶部
顶部