Illep
Illep

Reputation: 16841

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 ?

Upvotes: 0

Views: 2460

Answers (2)

Rakesh Soni
Rakesh Soni

Reputation: 10897

Download the latest jar file from following location http://code.google.com/p/struts2-ssl-plugin/downloads/list

Run the following command Example for struts2-ssl-plugin-1.2.1.jar file

mvn install:install-file -Dfile=E:\Java\Meteors\struts2-ssl-plugin-1.2.1.jar -DgroupId=com.googlecode.sslplugin -DartifactId=struts2-ssl-plugin -Dversion=1.2.1 -Dpackaging=jar

Upvotes: 0

Ryan Stewart
Ryan Stewart

Reputation: 128829

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.

Upvotes: 1

Related Questions