-
Feb 23rd, 2008, 03:52 PM
#1
how to try to get the snap shot
I am not familiar with maven. I created a new project using mvn archetype....
And modified the pom.xml in the project by adding the dependency and repository provided in the spring batch download page.
Then I run: mvn -cpu -U install
The following exception thrown:
Downloading: http://s3.amazonaws.com/maven.spring...pshot/org/spri
ngframework/batch/spring-batch-core/1.0.0.m4-SNAPSHOT/spring-batch-core-1.0.0.m4
-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.springframework.batch:spring-batch-core:jar:1.0.0.m4-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.batch -DartifactId=
spring-batch-core -Dversion=1.0.0.m4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/fi
le
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework.batch -DartifactId=sp
ring-batch-core -Dversion=1.0.0.m4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.bns.springbatch:springbatch:jar:1.0-SNAPSHOT
2) org.springframework.batch:spring-batch-core:jar:1.0.0.m4-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.bns.springbatch:springbatch:jar:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
spring-s3 (http://s3.amazonaws.com/maven.springframework.org/snapshot)
Could anybody tell me what's wrong in my steps?
Thanks
-
Feb 23rd, 2008, 04:21 PM
#2
Sorry, the download page on the web site is out of step with the releases - I'll try and get round to fixing it tomorrow. The latest release is 1.0.0.m4, so the snapshot repo only contains 1.0.0.m5-SNAPSHOT. Note, however that there is a problem with the nightly build at the moment (but strangely not the trunk build, so you can build a snapshot yourself from the source code), and the m5 snapshots are behind the trunk by a few days. N.B. There is a different repository for milestone releases, as indicated on the website.
-
Feb 24th, 2008, 02:25 PM
#3
where to get source code
I tried the links in the website and only found the milestone releases. Could you please tell me where can I get the source codes for the nightly snapshot?
Thanks
-
Feb 24th, 2008, 06:14 PM
#4
Maybe it would be easier to just download the trunk via subversion?
https://springframework.svn.sourcefo...g-batch/trunk/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules