Reputation: 1022
when i try to run
mvn clean install
(or such a command of maven) then he starts to download the dependency. At one dependency (one on our server) he stops and don't continue to work. More poeple says that this can be a problem of antivirus or firewall. I tryed to made a
scp address@myrepo:.....
and it works. This for my opinion is not a firewall problem or antivirus (I run on ubuntu, and don't have any antivirus installed)
Can some one give me some tips how figure out the problem?
Maven version 3.2.1
I have noticed this behavior: When it start the download a directory under .m2/repository/.... is created. In the directory 2 file are created:
-nameOfPom.pom.lastUpdated
-nameOfPom.pom.tmp4c338b26031e4cda
When I open the first file I can see:
Cannot connect. Reason\: java.net.ConnectException\: Connection timed out
An other info:
On the server side I see that a connection is established.
Upvotes: 0
Views: 1369
Reputation: 1022
I found the problem: I installed the maven version 3.0.4 and now all works!
Upvotes: 1
Reputation: 3662
Make sure your private/enterprise repo is configured in your local maven settings.
In the $MAVEN_HOME/conf/settings.xml
file, you should add :
<settings ...>
...
<servers>
...
<server>
<id>private-repo</id>
<username>{REPO_USER}</username>
<password>{REPO_PASS}</password>
</server>
</servers>
<mirrors>
...
<mirror>
<id>private-repo</id>
<mirrorOf>*</mirrorOf>
<url>http://...</url>
</mirror>
</mirrors>
...
</settings>
Upvotes: 0