Hi,

I am trying to use springframework inside a maven project. My dependency is as 
follows:

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-full</artifactId>
      <version>1.2.8</version>
    </dependency>

However when I enter the command mvn compile I get the following error:

[console]
D:\Projects\test>mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test Maven Webapp
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-full/1.2.8
/spring-full-1.2.8.pom
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-full/1.2.8
/spring-full-1.2.8.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.springframework:spring-full:jar:1.2.8

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.springframework -DartifactId=spring
-full -Dversion=1.2.8 -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 -DartifactId=spring-f
ull -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
yId=[id]

  Path to dependency:
        1) com.test:test:war:1.0-SNAPSHOT
        2) org.springframework:spring-full:jar:1.2.8

----------
1 required artifact is missing.

for artifact:
  com.test:test:war:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Wed Sep 10 17:25:07 CEST 2008
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------

D:\Projects\test>
[/console]

I cannot understand why it is not working since the path to the spring resource 
I want is correct " 
http://repo1.maven.org/maven2/org/springframework/spring-full/1.2.8

/spring-full-1.2.8.pom".

Does anyone know how this can be solved? I read on the internet that it could 
be because I need the jmx library as well. I tried to include this as a 
dependency but also failed! :(

Regards,
Simon J.

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

Reply via email to