title: Accessing local Nexus repository over https from eclipse
body: <p>I am using maven build in my project. I have a corporate nexus repository in our local network. This repository is hosted over https.</p>
  
  <p>I am facing issues accessing this repository from eclipse.</p>
  
  <p>The error displayed is:</p>
  
  <pre><code>Multiple annotations found at this line:
      - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile)
      - CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor 
       for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from https://
       NexusServer/nexus/content/groups/CLM/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original 
       error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to nexus (https://NexusServer/nexus/content/groups/CLM/): 
       sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile)
  </code></pre>
  
  <p>I googled a bit and found a solution to pass the certificate while running maven build. I downloaded the certificate and passed it to maven using -Djavax.net.ssl.trustStore=Path/To/My/KeyStore</p>
  
  <p>The command line tool works fine. However, I am still not able to build the project using maven in eclipse.</p>
  
  <p>Maven does not download new dependencies form the local repository.</p>
  
  <p>Thanks in advance for you help!</p>
  
  <p>Prabodh</p>