You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by "von Janowsky, Simon" <vo...@consist.de> on 2008/08/26 11:18:25 UTC

Problem with Archiva, Hudson, Maven - 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 Archiva, Hudson, Maven - Builds take very long

Posted by Maria Odea Ching <oc...@apache.org>.
Hi,

I think you need to remove the 'dav:' at the beginning of the <repository> &
<pluginRepository> urls, that's probably the reason why it's invalid :)
Also, make sure that the appropriate credentials are specified in your
settings.xml for each repository (if they require authentication) under the
'repositories.all' and 'plugin-repositories.all' groups so Maven/Hudson
would be able to get the artifacts.

Thanks,
Deng

On Tue, Aug 26, 2008 at 5:18 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.
>