Bjo*_*n J 7 maven-2 scala jetty lift scala-2.8
新手问题,因为我根本没有使用maven的速度.
我正在尝试使用scala + lift使用scala 2.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
Run Code Online (Sandbox Code Playgroud)
到目前为止一直很好,但是,然后,我尝试进入我的新项目并执行:
mvn jetty:run
Run Code Online (Sandbox Code Playgroud)
经过多次下载后,我最终得到如下错误:
[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)
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我使用您提供的命令创建了相同的项目mvn archetype:generate
,但无法重现您的问题。该lift-mapper-2.0-scala280-SNAPSHOT.jar
工件肯定在 scala snapshots 存储库中,并且 Maven 下载了它:
... 下载 1619K (lift-mapper-2.0-scala280-SNAPSHOT.jar) [警告] *** 校验和失败 - 下载校验和失败:local = '0c857e2c5de9d5cabb7c972e519528606f19697b';远程 = 'a258cf7d7a49a8d7163d499da06a4d1e231a78e0' - 重试 下载:http://scala-tools.org/repo-snapshots/net/liftweb/lift-mapper/2.0-scala280-SNAPSHOT/lift-mapper-2.0-scala280-SNAPSHOT.jar 下载 1619K (lift-mapper-2.0-scala280-SNAPSHOT.jar)
正如您所看到的,由于 CHECKSUM 检查失败,Maven 必须重试下载,但它有效。
再试一次。