Câu hỏi của người mới kể từ khi tôi không lên đến tốc độ bằng cách sử dụng số maven.maven và thang máy sử dụng scala 2.8: người lập bản đồ bị thiếu?
Tôi đang cố gắng sử dụng scala + lift bằng scala 2.8, môi trường là hộp win7 nếu có vấn đề.
tôi tạo một dự án cơ bản sử dụng:
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
Cho đến nay rất tốt, nhưng sau đó, tôi cố gắng cd vào dự án mới của tôi và làm:
mvn jetty:run
tôi sau một vài tải xuống kết thúc bằng một lỗi như sau:
[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)
Bất kỳ ý tưởng nào?
Cảm ơn rất nhiều. Nó phải là một điều tạm thời, bởi vì khi tôi thử 1h sau đó với chính xác cùng một thiết lập, nó hoạt động. –
Điều này không thành công đối với tôi, điều này thật kỳ quặc ... –