paulaqian
Feb 23rd, 2008, 03:52 PM
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.springframework.org/snapshot/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
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.springframework.org/snapshot/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