I was trying to go through the Spring-Surf tutorial, but I got hung up when I got to:
1.3. First Steps: Your Own Spring Surf App in Under 5 Minutes
Everything worked until I got to the point where I run:
mvn tomcat:deploy
It writes out many lines, and finally ends with this:
[many lines ........]
[INFO] Unable to find resource 'org.springframework.extensions.surf:spring-surf-
api:jar:1.0.0.M2' in repository com.springsource.repository.bundles.external (ht
tp://repository.springsource.com/maven/bundles/external)
Downloading: http://repository.springsource.com/m...stone/org/spri
ngframework/extensions/surf/spring-surf-api/1.0.0.M2/spring-surf-api-1.0.0.M2.ja
r
[INFO] Unable to find resource 'org.springframework.extensions.surf:spring-surf-
api:jar:1.0.0.M2' in repository com.springsource.repository.bundles.milestone (h
ttp://repository.springsource.com/maven/bundles/milestone)
Downloading: http://repository.springsource.com/m...shot/org/sprin
gframework/extensions/surf/spring-surf-api/1.0.0.M2/spring-surf-api-1.0.0.M2.jar
[INFO] Unable to find resource 'org.springframework.extensions.surf:spring-surf-
api:jar:1.0.0.M2' in repository com.springsource.repository.bundles.snapshot (ht
tp://repository.springsource.com/maven/bundles/snapshot)
Downloading: http://repo1.maven.org/maven2/org/sp...ensions/surf/s
pring-surf-api/1.0.0.M2/spring-surf-api-1.0.0.M2.jar
[INFO] Unable to find resource 'org.springframework.extensions.surf:spring-surf-
api:jar:1.0.0.M2' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.springframework.extensions.surf:spring-surf:jar:1.0.0.M2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.extensions.surf -Da
rtifactId=spring-surf -Dversion=1.0.0.M2 -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.springframework.extensions.surf -Dart
ifactId=spring-surf -Dversion=1.0.0.M2 -Dpackaging=jar -Dfile=/path/to/file -Dur
l=[url] -DrepositoryId=[id]
Path to dependency:
1) org.app.surf:surf:war:0.1.0-SNAPSHOT
2) org.springframework.extensions.surf:spring-surf:jar:1.0.0.M2
2) org.springframework.extensions.surf:spring-surf-api:jar:1.0.0.M2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.extensions.surf -Da
rtifactId=spring-surf-api -Dversion=1.0.0.M2 -Dpackaging=jar -Dfile=/path/to/fil
e
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework.extensions.surf -Dart
ifactId=spring-surf-api -Dversion=1.0.0.M2 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.app.surf:surf:war:0.1.0-SNAPSHOT
2) org.springframework.extensions.surf:spring-surf-api:jar:1.0.0.M2
----------
2 required artifacts are missing.
for artifact:
org.app.surf:surf:war:0.1.0-SNAPSHOT
from the specified remote repositories:
com.springsource.repository.bundles.release (http://repository.springsource.co
m/maven/bundles/release),
com.springsource.repository.bundles.external (http://repository.springsource.c
om/maven/bundles/external),
central (http://repo1.maven.org/maven2),
com.springsource.repository.bundles.milestone (http://repository.springsource.
com/maven/bundles/milestone),
com.springsource.repository.bundles.snapshot (http://repository.springsource.c
om/maven/bundles/snapshot)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 08 20:54:37 PST 2010
[INFO] Final Memory: 10M/17M
[INFO] ------------------------------------------------------------------------
C:\temp\surf-app>


Reply With Quote
ackage