Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Given the information through the comments:</p> <p>mvn compile/mvn package work through console (I'm assuming outside of eclipse). Based on that, the POM file should be correct and dependencies can be resolved.</p> <p>However; it could be that eclipse's settings aren't correct. For example, if eclipse has some own maven properties (instead of the default ~/.m2/settings.xml file); I can imagine it to fail resolving dependencies configured in the settings.xml used by maven itself. The settings for this should be in the Eclipse Preferences @ Maven > User Settings.</p> <p>Also make sure that Eclipse can actually read the file (not locked, correct rights, etc).</p> <p>Should this seem to be correct; can you try to run the mvn goal compile from eclipse? You can do this by right-clicking the project and selecting <code>run as &gt; maven package</code>. That way it should run maven with the same settings as eclipse is using, and might show any additional errors in it's configuration.</p> <p>-- In response to additional information:</p> <p>Basically it tells you - when using Maven 2 - that it can't find a dependency resource (in this case bcprov-jdk14) in the given repository (codehaus/mule). When I search that maven module (bcprov-jdk14) I find it in the Maven central repo (through our local nexus) @ <a href="http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk14/" rel="nofollow">repo1.maven.org/maven2</a>. Maybe that causes the error you're getting with Maven2?</p> <p>And as the Maven 3 doc says; for Maven 1.x repo's; you should proxy them through a repo manager that can serve it to you as a maven 2 repository (I believe we do that here too for some repo's through Sonatype Nexus OSS)</p> <p>ps.: Enabling maven dependency management in eclipse should be enough to be able to use maven run targets; if you would want to test it.</p> <p>--</p> <p>Sound like it can be multiple problems... given that the normal maven build works fine, one would think that maven can at least get the artifacts it depends upon and their dependencies... Yet, eclipse doesn't seem to be able to.</p> <p>Double check if your Eclipse internet connection settings are correct? Since you were talking about a company repo, I'm assuming there will probably also be a proxy (I had to set up my Eclipse to use that one too; though for plugins (see next point)).</p> <p>Another possibility, from experience, can be a rule-based proxy block on *.pom url requests (our proxy here blocks that to force usage of the local repo manager, how evil and annoying that is :(). You might want to try and open the .pom file it tries to download manually in your browser to see if this is the case (I can't, for example...).</p> <p>To get the repo set up, you would probably have to ask the one responsible for the repository to add it as a maven2 proxy.</p> <p>At the very least, it seems Eclipse is having issues getting the dependency poms (which are needed to build the dependency tree) from the internet. You could always try to ask some ICT crew (if they are capable enough...) about it at your company, maybe they have some useful hints.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload