Search code examples
javaspringmavengoogle-code

Maven Build fail due to missing dependency - Beginner


[ERROR] Failed to execute goal on project CarProject: Could not resolve dependen
     cies for project CarProject:CarProject:war:1.0-SNAPSHOT: The following artifacts
    could not be resolved: com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1, o
     rg.springframework:org.springframework.web.servlet:jar:3.0.5.RELEASE, org.spring
    framework:org.springframework.context:jar:3.0.5.RELEASE, javax.transaction:com.s
     pringsource.javax.transaction:jar:1.1.0, com.sun:tools:jar:1.6.0: Failure to fin
       d com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1 in http://repo1.maven.or
      g/maven2 was cached in the local repository, resolution will not be reattempted
     until the update interval of central has elapsed or updates are forced -> [Help
      1]

Seems like there are more than one dependencies missing, How should i add them ? Is there a place where i could get the dependency or is there a particular standard way of writing it ?


Solution

  • org.springframework.web.servlet = spring-web or spring-webmvc or both depending on what you need from it

    org.springframework.context = spring-context

    com.springsource.javax.transaction comes from the SpringSource enterprise bundle repository.

    struts2-ssl-plugin isn't in central. You'll have to find it in another repository, install it locally, install it on your own repository, like Nexus, or make it a system-scoped dependency.

    tools is your JRE. Maven mostly shouldn't be trying to download it. You probably have a bad dependency somewhere.