mavenのリフトを使用scala2.8:リフト-mapperを欠?
質問
ピ問い造形、野暮ったすぎやしませんか最大速度 maven。
私は利用しようとスカラ+リフトを使用scala2.8環境 はwin7ボックスの場合を始めとしたブースがあります。
私が作成した基本的なプロジェクト:
mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.0-scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo-snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots -DgroupId=com.liftworkshop
-DartifactId=todo -Dversion=1.0-SNAPSHOT
これまでにないものの、その後はうまく働かなくなったので、cdの私には新しいプロジェクト い:
mvn jetty:run
後かなりの数のダウンロード、エラーは以下のように:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) net.liftweb:lift-mapper:jar:2.0-scala280-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift-mapper -D
version=2.0-scala280-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=net.liftweb -DartifactId=lift-mapper -Dve
rsion=2.0-scala280-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dr
epositoryId=[id]
Path to dependency:
1) com.liftworkshop:todo:war:1.0-SNAPSHOT
2) net.liftweb:lift-mapper:jar:2.0-scala280-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.liftworkshop:todo:war:1.0-SNAPSHOT
from the specified remote repositories:
scala-tools.snapshots (http://scala-tools.org/repo-snapshots),
scala-tools.releases (http://scala-tools.org/repo-releases),
central (http://repo1.maven.org/maven2)
そのアイデア?
解決
作成したものと同じプロジェクトを使用 mvn archetype:generate
コマンドのお客様よりご提供いただいたがんの再現お問題です。の lift-mapper-2.0-scala280-SNAPSHOT.jar
案件も、scala スナップショットのリポジトリ とMavenダウンロードする
... 1619K downloaded (lift-mapper-2.0-scala280-SNAPSHOT.jar) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '0c857e2c5de9d5cabb7c972e519528606f19697b'; remote = 'a258cf7d7a49a8d7163d499da06a4d1e231a78e0' - RETRYING Downloading: http://scala-tools.org/repo-snapshots/net/liftweb/lift-mapper/2.0-scala280-SNAPSHOT/lift-mapper-2.0-scala280-SNAPSHOT.jar 1619K downloaded (lift-mapper-2.0-scala280-SNAPSHOT.jar)
ご覧の通り、Mavenたリトライのダウンロードが失敗したチェックサムの確認がうまくいった。
だけで操作をやり直してください。
所属していません StackOverflow