title: Getting error while integrating eclipse and maven
body: <p>I am new to maven and eclipse configuration. I set up my maven path in eclipse </p>
  
  <p><img src="https://i.stack.imgur.com/xyOvr.png" alt="enter image description here"></p>
  
  <p>Then i made a project run configuration in eclipse</p>
  
  <p><img src="https://i.stack.imgur.com/tn0AV.png" alt="enter image description here"></p>
  
  <p>Here is the snippet of my pom.xml</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;package&lt;/groupId&gt;
  &lt;artifactId&gt;myProject&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;myProject&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  </code></pre>
  
  <p>Now when i debug my project i get an error that</p>
  
  <pre><code>Some problems were encountered while building the effective model for 
  package:war:1.0-SNAPSHOT [WARNING] 
  'build.plugins.plugin.version' for 
  org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 189, column 15
  </code></pre>
  
  <p>In my pom.xml file i have an entry like this</p>
  
  <pre><code>&lt;build&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
        &lt;source&gt;1.6&lt;/source&gt;
        &lt;target&gt;1.6&lt;/target&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also i am getting error that</p>
  
  <pre><code>Failed to execute goal on project myProject: Could not resolve dependencies for 
  project pk.training.basitMahmood:myProject:war:1.0-SNAPSHOT: Failed to 
  collect dependencies for [junit:junit:jar:4.4 (test), 
  org.mockito:mockito-all:jar:1.8.1 (test), 
  javax.servlet:servlet-api:jar:2.5 (compile), 
  commons-lang:commons-lang:jar:2.5 (compile), 
  org.apache.ant:ant-apache-log4j:jar:1.8.0 (compile), 
  velocity-tools:velocity-tools:jar:1.4 (compile), 
  org.springframework:spring-core:jar:2.5.5 (compile), 
  org.springframework:spring-webmvc:jar:2.5.5 (compile), 
  org.springframework:spring:jar:2.5.5 (compile), 
  org.springframework:spring-test:jar:2.5.5 (compile), 
  org.springframework.ws:spring-oxm:jar:1.5.5 (compile), 
  org.springframework.ws:spring-oxm-tiger:jar:1.5.6 (compile), 
  org.springframework.ws:spring-ws-core:jar:1.5.6 (compile), 
  org.springframework.ws:spring-ws-core-tiger:jar:1.5.6 (compile), 
  org.springframework.ws:spring-ws-security:jar:1.5.6 (compile), 
  org.apache.velocity:velocity:jar:1.6.3 (compile), 
  commons-digester:commons-digester:jar:1.8 (compile), 
  ant:ant-jakarta-regexp:jar:1.6.1 (compile), 
  org.json:json:jar:20090211 (compile),
  com.xmlparserv2:LS360_xml_parser:jar:20110919 (compile), 
  360_Oracle:toplink:jar:10.1.5 (compile), 
  360_MS_SQL:sqlserver:jar:1.0 (compile), 
  org.springframework.ws:spring-ws:jar:all:1.5.6 (compile)]:
  Failed to read artifact descriptor for velocity-tools:velocity-tools:jar:1.4: 
  Could not transfer artifact velocity-tools:velocity-tools:pom:1.4 from/to 
  maven2-repository.jboss.com (http://repository.jboss.com/maven2): 
  Access denied to 
  http://repository.jboss.com/maven2/velocity-tools/velocity-tools/1.4/
  velocity-tools-1.4.pom. Error code 403, Forbidden -&gt; [Help 1]
  </code></pre>
  
  <p>However i have all these dependicies in my pom.xml, like</p>
  
  <pre><code>&lt;dependencies&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.4&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.mockito&lt;/groupId&gt;
      &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
      &lt;version&gt;1.8.1&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&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;type&gt;jar&lt;/type&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;commons-lang&lt;/groupId&gt;
      &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
      &lt;version&gt;2.5&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  .....
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Here are the repositories</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
          &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;maven-repository.dev.java.net&lt;/id&gt;
          &lt;url&gt;http://download.java.net/maven/1&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.jboss.com&lt;/id&gt;
          &lt;url&gt;http://repository.jboss.com/maven2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-apache&lt;/id&gt;
          &lt;url&gt;http://ftp.cica.es/mirrors/maven2/&lt;/url&gt;
      &lt;/repository&gt;
  
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Why i am getting these errors? How can i solve it?</p>
  
  <p>Thanks</p>