Search code examples
javamaven-2

Maven will only download a pom, it won't download the jar


I am new to maven and I am having what I'm sure is a config issue. I have my master pom and a child jar pom. Inside the jar pom I declared this dependency:

<dependency>  
  <groupId>commons-lang</groupId>  
  <artifactId>commons-lang</artifactId>  
  <version>2.4</version>  
</dependency>

However, when I look in my $HOME/.m2/repository dir, only the pom file is there. There is no jar file. Most of the other dependencies have jar files, but not this one. Without this jar, the compile step is failing.

Any ideas about what I am doing wrong?


Solution

  • Is it possible that you are behind a proxy server/firewall, which is preventing downloads of "jar" files?