title: Maven error: Failed to execute goal on project : Could not resolve dependencies for project
body: <p>I have the following problem in a maven project in both eclipse and netbeans</p>
  
  <pre><code>    Failed to execute goal on project ui: 
      Could not resolve dependencies for project &lt;&lt;package&gt;&gt;:ui:war:1.0: Failed to collect dependencies for [javax.servlet:servlet-api:jar:2.5 (provided), 
      org.springframework:spring-core:jar:3.0.5.RELEASE (compile), 
      org.springframework:spring-web:jar:3.0.5.RELEASE (compile), 
      cglib:cglib:jar:2.2 (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), 
      org.springframework:spring-webmvc:jar:3.0.5.RELEASE (compile), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), 
      org.freemarker:freemarker:jar:2.3.18 (compile), gr.imu.ntua.tweetinspire:services:jar:1.0 (compile), 
      org.cloudfoundry.samples:tomcat7-standalone:tar.gz:7.0.29 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), 
      org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), 
      commons-logging:commons-logging:jar:1.1.1 (compile), junit:junit:jar:4.8.1 (test), 
      org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.dbunit:dbunit:jar:2.4.8 (test)]: Failed to read artifact descriptor for org.cloudfoundry.samples:tomcat7-standalone:tar.gz:7.0.29: Could not transfer artifact org.cloudfoundry.samples:tomcat7-standalone:pom:7.0.29 from/to jets3t (http://www.jets3t.org/maven2): Access denied to: http://www.jets3t.org/maven2/org/cloudfoundry/samples/tomcat7-standalone/7.0.29/tomcat7-standalone-7.0.29.pom, ReasonPhrase:Forbidden
  </code></pre>
  
  <p>while my pom.xml file is:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
          &lt;parent&gt;
              &lt;artifactId&gt;core&lt;/artifactId&gt;
              &lt;groupId&gt;gr.imu.ntua.tweetinspire&lt;/groupId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/parent&gt;
          &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
          &lt;artifactId&gt;ui&lt;/artifactId&gt;
          &lt;name&gt;${project.groupId}.${project.artifactId}&lt;/name&gt;
          &lt;packaging&gt;war&lt;/packaging&gt;
  
          &lt;dependencies&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                  &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
                  &lt;version&gt;2.5&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
  
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
  
              &lt;dependency&gt;
                  &lt;groupId&gt;cglib&lt;/groupId&gt;
                  &lt;artifactId&gt;cglib&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Freemarker --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.freemarker&lt;/groupId&gt;
                  &lt;artifactId&gt;freemarker&lt;/artifactId&gt;
                  &lt;version&gt;2.3.18&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                  &lt;version&gt;${project.version}&lt;/version&gt;
                  &lt;artifactId&gt;services&lt;/artifactId&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.cloudfoundry.samples&lt;/groupId&gt;
                  &lt;artifactId&gt;tomcat7-standalone&lt;/artifactId&gt;
                  &lt;version&gt;7.0.29&lt;/version&gt;
                  &lt;type&gt;tar.gz&lt;/type&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
  
          &lt;build&gt;
  
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;package-inside-tomcat7&lt;/id&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;attached&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;descriptors&gt;
                                      &lt;descriptor&gt;${basedir}/src/assembly/tomcat7.xml&lt;/descriptor&gt;
                                  &lt;/descriptors&gt;
                                  &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
                                  &lt;finalName&gt;tomcat7&lt;/finalName&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
  
              &lt;/plugins&gt;
          &lt;/build&gt;
  
          &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;tomcat7-standalone-repo&lt;/id&gt;
                  &lt;url&gt;http://ericbottard.github.com/cloudfoundry-tomcat-7&lt;/url&gt;
              &lt;/repository&gt;
          &lt;/repositories&gt;
  
      &lt;/project&gt; 
  </code></pre>
  
  <p>I have deleted the repos and build again but the problem remains.</p>
  
  <p>Any help is appreciated.
  Thank you very much!</p>