Maven build war file 的问题

16 views
Skip to first unread message

allanyoung

unread,
Jan 27, 2010, 6:44:22 AM1/27/10
to OpenSocial 中文讨论组
请问各位大大,我是在java+maven方式来build war file ,可是都不成功
我遇到的问题如下,请问该如何解决??

Missing:
----------
1) org.apache.shindig:shindig-common:jar:1.1-BETA6-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.shindig -
DartifactId=shindig
-common -Dversion=1.1-BETA6-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.apache.shindig -
DartifactId=shindig-c
ommon -Dversion=1.1-BETA6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/
file -Durl=[u
rl] -DrepositoryId=[id]

Path to dependency:
1) org.apache.shindig:shindig-gadgets:jar:1.1-BETA6-SNAPSHOT
2) org.apache.shindig:shindig-common:jar:1.1-BETA6-SNAPSHOT

2) org.apache.shindig:shindig-common:test-jar:tests:1.1-BETA6-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.shindig -
DartifactId=shindig
-common -Dversion=1.1-BETA6-SNAPSHOT -Dclassifier=tests -
Dpackaging=test-jar -Df
ile=/path/to/file

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

mvn deploy:deploy-file -DgroupId=org.apache.shindig -
DartifactId=shindig-c
ommon -Dversion=1.1-BETA6-SNAPSHOT -Dclassifier=tests -Dpackaging=test-
jar -Dfil
e=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.apache.shindig:shindig-gadgets:jar:1.1-BETA6-SNAPSHOT
2) org.apache.shindig:shindig-common:test-jar:tests:1.1-BETA6-
SNAPSHOT

----------
2 required artifacts are missing.

for artifact:
org.apache.shindig:shindig-gadgets:jar:1.1-BETA6-SNAPSHOT

from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
oauth (http://oauth.googlecode.com/svn/code/maven),
central (http://repo1.maven.org/maven2),
java.net (http://download.java.net/maven/2/),
diff_match_patch (http://google-diff-match-patch.googlecode.com/svn/
trunk/mave
n),
caja (http://google-caja.googlecode.com/svn/maven)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Jan 27 19:08:13 CST 2010
[INFO] Final Memory: 12M/29M
[INFO]
------------------------------------------------------------------------
C:\Shindig\java\gadgets>

allanyoung

unread,
Jan 27, 2010, 6:45:53 AM1/27/10
to OpenSocial 中文讨论组

请问各位大大,我是在java+maven方式来build war file ,可是都不成功
我遇到的问题如下,请问该如何解决??

张丹

unread,
Jan 27, 2010, 8:55:25 AM1/27/10
to opensoci...@googlegroups.com
上面提示,你手动下载JAR,在本地安装.

2010/1/27 allanyoung <casha...@gmail.com>


请问各位大大,我是在java+maven方式来build war file ,可是都不成功
我遇到的问题如下,请问该如何解决??

--
您收到此邮件是因为您订阅了 Google 网上论坛的“OpenSocial 中文讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 opensoci...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 opensocial-chi...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/opensocial-china?hl=zh-CN 访问此网上论坛。


李一

unread,
Jan 27, 2010, 9:37:42 AM1/27/10
to opensoci...@googlegroups.com
这个jar也是要build生成的,因为你前面的jar build失败了
多试几次,或者加上-Dmaven.test.skip=true 来略过测试,因为有些版本测试有问题

2010/1/27 张丹 <bssp...@gmail.com>
Reply all
Reply to author
Forward
0 new messages