2010-03-23 14 views
7

Newbie Frage, da ich mit Maven überhaupt nicht auf dem neuesten Stand bin.Maven und Aufzug mit Scala 2.8: Lift-Mapper fehlt?

Ich versuche scala + lift mit scala 2.8 zu verwenden, ist eine win7-Box, wenn es darauf ankommt.

Ich erstelle ein Basisprojekt mit:

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 

So weit so gut, aber dann versuche ich zu CD in mein neues Projekt und zu tun:

mvn jetty:run 

ich nach einem ganz wenig Downloads enden mit einem Fehler wie unten:

[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) 

Irgendwelche Ideen?

Antwort

2

Ich erstellte das gleiche Projekt mit dem mvn archetype:generate Befehl, den Sie zur Verfügung gestellt, aber ich konnte Ihr Problem nicht reproduzieren. Der lift-mapper-2.0-scala280-SNAPSHOT.jar Artefakt ist auf jeden Fall in den scala snapshots repository und Maven heruntergeladen es:

 
... 
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) 

Wie Sie sehen können, Maven hatte den Download zu wiederholen, weil eine nicht bestandene Prüfsummencheck aber es funktionierte.

Versuchen Sie es erneut.

+0

Vielen Dank. Es muss eine vorübergehende Sache gewesen sein, denn als ich es 1h später mit exakt demselben Setup versuchte, funktionierte es. –

+0

Das ist mir nicht gelungen, das ist komisch ... –