title: Unable to access Maven Central from Eclipse build.bnd
body: <p>I am building an OSGi project using Eclipse Proton with bndtools. I am having problems connecting to Maven Central or at least pulling the jar dependencies from there.</p>
  
  <p>In the cnf/build.bnd, I have defined </p>
  
  <pre><code>-plugin.2.Maven:  \
  aQute.bnd.repository.maven.provider.MavenBndRepository; \
      releaseUrls=https://repo1.maven.org/maven2/; \
      index=${.}/central.maven; \
      name=Maven
  </code></pre>
  
  <p>The index file, index=${.}/central.maven exists at cnf/central.maven, the same folder that contains the build.bnd file. (As a note I have also tried to define the index file at index=${build}/central.maven)</p>
  
  <p>For my initial test, the central.maven file has one entry</p>
  
  <pre><code>log4j:log4j:1.2.17
  </code></pre>
  
  <p>When I save the file and click Reload in the workspace tab, the repository is shown in the lower left of Eclipse. When I open it I see...</p>
  
  <pre><code>Maven
      log4j:log4j [!]
          1.2.17 [File not found]
  </code></pre>
  
  <p>When I double-click the version I get a dialog showing</p>
  
  <blockquote>
    <p>This repository entry is unable to be opened because it has not been downloaded.
    Download and open it now?</p>
  </blockquote>
  
  <p>There is a Yes and No option. I click the Yes option and nothing happens.</p>
  
  <p>I found this question/answer <a href="https://stackoverflow.com/questions/48361979/unable-to-use-maven-central-repository-with-bnd-to-resolve-dependencies#">Unable to use Maven Central Repository with bnd to resolve dependencies</a> but it did not provide a solution other than the index file is being referenced correctly.</p>