title: Error opening Maven POM file dependency hierarchy in Eclipse - "Project read error"
body: <p>When I open a POM file and click on the "Dependency Hierarchy" tab at the bottom, it gives me the error, "Project read error".  It works with other projects in the same workspace, just not with this one.  Any ideas?</p>
  
  <p><img src="https://i.stack.imgur.com/PPUMD.png" alt="enter image description here"></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>In response to @Yhn's answer.</p>
  
  <ol>
  <li>Running the compile and package phases outside of Eclipse from the command-line work as expected.  It compiles the application and builds the final WAR file.</li>
  <li>Eclipse is indeed pointing to the default location of the Maven settings.xml file, so it should be aware of the custom repositories that are defined in it (my company has its own Maven repository).</li>
  <li>I can open and edit the POM file from Eclipse, so it must have read/write permissions to the file.</li>
  <li>The project is not configured in Eclipse as a Maven project, so I cannot run the package phase from Eclipse (I can only run it from the command-line).</li>
  </ol>
  
  <p>I wonder if it has anything to do with the fact that I was having trouble building the project with Maven 3 because apparently some of the transitive dependencies are configured for Maven 1, which <a href="https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-LegacystyleRepositories" rel="noreferrer">Maven 3 does not support</a> (this is my theory anyway, based on some of the error messages).  I can build the project with Maven 2, but I still get messages such as the following:</p>
  
  <pre><code>Downloading: http://dist.codehaus.org/mule/dependencies/maven2/org/codehaus/xfie/bcprov-jdk14/133/bcprov-jdk14-133.pom
  [INFO] Unable to find resource 'org.codehaus.xfire:bcprov-jdk14:pom:133' in repsitory mule (http://dist.codehaus.org/mule/dependencies/maven2)
  </code></pre>
  
  <p>It must be able to find these dependences however, because it downloaded the JARs just fine and can build the application.  It seems like the problem is that the dependencies don't have POM files associated with them, which is maybe why they cannot be used with Maven 3.  This might also be why I cannot view the Dependency Hierarchy in Eclipse.</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>I converted the project to a Maven project by going to "Configure > Convert to Maven Project".  When I open the POM file, I see the error:</p>
  
  <p><code>ArtifactDescriptorException: Failed to read artifact descriptor for woodstox:wst (Click for 140 more)</code></p>
  
  <p>(woodstox:wst is another transitive dependency of the project).  An error appears in the "Markers" view for seemingly every depedency and transitive dependency in my project.  However, I can successfully build the project by doing a "Run As > Maven build". (<strong>Edit:</strong> This might be because this project has no Java source code, but the JARs of the dependencies correctly appear in the final WAR.)  The Dependency Hierarchy still gives the same error--"Project read error".</p>
  
  <p>About the "Unable to find resource" messages--but this only appears for a handful of transitive dependencies.  The project has many more transitive dependencies, but these messages do not appear for them.  It seems like, because the dependencies do not have POM files, that Maven tries to search for them every time the project is built.  Is this normal not to have POMs??</p>
  
  <p>How might I go about getting a repo manager?  Is this something that would have to be installed on the company's Maven repository or can you install it on your own workstation?</p>