You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "von Janowsky, Simon" <vo...@consist.de> on 2008/08/26 11:20:27 UTC
Problem with Maven, Hudson, Archiva - Builds take very long
Hello,
I am having a Problem with a CI-System. We use Maven with Hudson and
Archiva.
The Archiva is configured with two repository groups (both virtualize
several proxy connectors and repositories).
One is for dependencies, the other for plugins.
In Hudson the build goal is the following: mvn -Pbuild-int clean deploy site
Now for some reason, some builds always hang a long time (up to 40 Minutes)
after
the Dependencies Report is generated. Here a excerpt from the maven
output...
Why is it that the Repository Url is blacklisted?
____________________________________________________________________________
__
POM
____________________________________________________________________________
__
<profile>
<id>build-int</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>ISO-8859-1</encoding>
<debug>false</debug>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<!-- Repository Group with all Artifacts -->
<id>repositories.all</id>
<name>All Artifacts Repository Group</name>
<url>
dav:http://archiva:8080/archiva/repository/repositories.all
</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<!-- Repository Group with all Plugins -->
<id>plugin-repositories.all</id>
<name>All Plugins Repository Group</name>
<url>
dav:http://archiva:8080/archiva/repository/plugin-repositories.all
</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<!-- snapshots deployed by CI Server -->
<snapshotRepository>
<id>archiva.snapshots</id>
<name>snapshot repository</name>
<url>
dav:http://archiva:8080/archiva/repository/snapshots
</url>
</snapshotRepository>
</distributionManagement>
</profile>
____________________________________________________________________________
__
Maven OUTPUT, the session: Opened Message go one like forever
____________________________________________________________________________
__
[INFO] Generating "Dependencies" report.
[DEBUG] .....
[DEBUG] .....
[DEBUG] .....
[DEBUG] .....
[DEBUG] .....
[WARNING] The repository url
'dav:http://archiva:8080/archiva/repository/repositories.all' is invalid -
Repository 'repositories.all' will be blacklisted.
http://dist.codehaus.org/ - Session: Opened
http://dist.codehaus.org/ - Session: Disconnecting
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened
http://repo1.maven.org/maven2 - Session: Disconnecting
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened
http://dist.codehaus.org/ - Session: Disconnecting
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened
http://repo1.maven.org/maven2 - Session: Disconnecting
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened
http://dist.codehaus.org/ - Session: Disconnecting
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened
http://repo1.maven.org/maven2 - Session: Disconnecting
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened
http://dist.codehaus.org/ - Session: Disconnecting
http://dist.codehaus.org/ - Session: Disconnected
......
.....
......
____________________________________________________________________________
__
Help would be really appreciated. Thanks a lot,
Simon.
Re: Problem with Maven, Hudson, Archiva - Builds take very long
Posted by Guang Sheng <de...@gmail.com>.
Hi,
I think *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> is
down. Probably you can use a mirror for the central maven, e.g.
http://mirrors.ibiblio.org/pub/mirrors/maven2/
On Tue, Aug 26, 2008 at 5:20 PM, von Janowsky, Simon <vonJanowsky@consist.de
> wrote:
> Hello,
> I am having a Problem with a CI-System. We use Maven with Hudson and
> Archiva.
> The Archiva is configured with two repository groups (both virtualize
> several proxy connectors and repositories).
> One is for dependencies, the other for plugins.
> In Hudson the build goal is the following: mvn -Pbuild-int clean deploy
> site
> Now for some reason, some builds always hang a long time (up to 40 Minutes)
> after
> the Dependencies Report is generated. Here a excerpt from the maven
> output...
> Why is it that the Repository Url is blacklisted?
>
> ______________________________________________________________________________
> POM
>
> ______________________________________________________________________________
> <profile>
> <id>build-int</id>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> <encoding>ISO-8859-1</encoding>
> <debug>false</debug>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <repositories>
> <repository>
> <!-- Repository Group with all Artifacts -->
> <id>repositories.all</id>
> <name>All Artifacts Repository Group</name>
> <url>
> dav:http://archiva:8080/archiva/repository/repositories.all
> </url>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <!-- Repository Group with all Plugins -->
> <id>plugin-repositories.all</id>
> <name>All Plugins Repository Group</name>
> <url>
> dav:http://archiva:8080/archiva/repository/plugin-repositories.all
> </url>
> </pluginRepository>
> </pluginRepositories>
> <distributionManagement>
> <!-- snapshots deployed by CI Server -->
> <snapshotRepository>
> <id>archiva.snapshots</id>
> <name>snapshot repository</name>
> <url>
> dav:http://archiva:8080/archiva/repository/snapshots
> </url>
> </snapshotRepository>
> </distributionManagement>
> </profile>
>
> ______________________________________________________________________________
> Maven OUTPUT, the session: Opened Message go one like forever
>
> ______________________________________________________________________________
>
> [INFO] Generating "Dependencies" report.
> [DEBUG] .....
> [DEBUG] .....
> [DEBUG] .....
> [DEBUG] .....
> [DEBUG] .....
> [WARNING] The repository url 'dav:
> http://archiva:8080/archiva/repository/repositories.all'<http://archiva:8080/archiva/repository/repositories.all%27>is invalid - Repository 'repositories.all' will be blacklisted.
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session: Opened
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnecting
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnected
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Opened
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnecting
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnected
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Opened
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnecting
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnected
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session: Opened
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnecting
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnected
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Opened
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnecting
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnected
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Opened
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnecting
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnected
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session: Opened
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnecting
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnected
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Opened
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnecting
> *http://people.apache.org/maven-snapshot-repository/*<http://people.apache.org/maven-snapshot-repository/>- Session: Disconnected
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Opened
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnecting
> *http://repo1.maven.org/maven2* <http://repo1.maven.org/maven2> - Session:
> Disconnected
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session: Opened
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnecting
> *http://dist.codehaus.org/* <http://dist.codehaus.org/> - Session:
> Disconnected
> ......
> .....
> ......
>
> ______________________________________________________________________________
> Help would be really appreciated. Thanks a lot,
> Simon.
>
Re: Problem with Maven, Hudson, Archiva - Builds take very long
Posted by belial <di...@gmail.com>.
Hi,
I had the same problem and I was getting crazy. I have setup Artifactory
instead of Archiva, but I think we have the same problem.
If you have set up a maven repository in your intranet, your access to the
internet is restricted in your PC, and then maven cannot download fromt the
internet the artifacts maybe this can help you.
The maven-project-info-reports when generating dependencies needs to connect
to the remote repositories to figure out which repository hosts each
artifact. But it seems this plugin ignores the intranet repository
configuration and connects directly to the internet to perform this
operation.
I have tried to disable it with the parameter
'dependencyLocationsEnabled=false'. You can check it here:
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies-mojo.html
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies-mojo.html
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.1</version>
<configuration>
<dependencyLocationEnabled>false</dependencyLocationEnabled>
</configuration>
<plugin>
...
</plugins>
Now it works like a breeze. I don't know if this is a bug or it should work
this way, but I guess it should be better documented.
Regards
Diego Parrilla SantamarĂa
Senior Consultant
The Server Labs S.L.
C/Pinar, 5
28006 Madrid
Spain
Tel: +34 91 745 6877
Fax: +34 91 745 6699
http://www.theserverlabs.com
mailto: dparrilla@theserverlabs.com
von Janowsky, Simon wrote:
>
> Hello,
> I am having a Problem with a CI-System. We use Maven with Hudson and
> Archiva.
> The Archiva is configured with two repository groups (both virtualize
> several proxy connectors and repositories).
> One is for dependencies, the other for plugins.
> In Hudson the build goal is the following: mvn -Pbuild-int clean deploy
> site
>
> Now for some reason, some builds always hang a long time (up to 40
> Minutes)
> after
> the Dependencies Report is generated. Here a excerpt from the maven
> output...
> Why is it that the Repository Url is blacklisted?
> ...
>
--
View this message in context: http://www.nabble.com/Problem-with-Maven%2C-Hudson%2C-Archiva---Builds-take-very-long-tp19158623p19218823.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org