<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@archiva.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/archiva-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/archiva-dev/</id>
<updated>2009-12-08T22:25:51Z</updated>
<entry>
<title>Re: [PROPOSAL] Audit Log Report</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3cE61B1E88-0834-45E4-A700-BB665D08B3E9@apache.org%3e"/>
<id>urn:uuid:%3cE61B1E88-0834-45E4-A700-BB665D08B3E9@apache-org%3e</id>
<updated>2009-12-08T13:52:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sounds good to me.

I would definitely have the default page as a "live" view of the latest info, with a one-line
form at the top to do restrictions by date / group / artifact / # rows as you suggested.

Cheers,
Brett

On 07/12/2009, at 10:00 PM, Deng Ching wrote:

&gt; Hi Everyone,
&gt; 
&gt; I'd like to work on MRM-1296 (Audit logging report) for 1.3. I started a
&gt; draft of my proposal here:
&gt; 
&gt; http://cwiki.apache.org/confluence/display/ARCHIVA/Audit+Log+Report
&gt; 
&gt; Comments /suggestions are much appreciated :)
&gt; 
&gt; Thanks,
&gt; Deng

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/






</pre>
</div>
</content>
</entry>
<entry>
<title>[PROPOSAL] Audit Log Report</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c8667b1bd0912070300qb33ed34wc5e60da06a50dbd0@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0912070300qb33ed34wc5e60da06a50dbd0@mail-gmail-com%3e</id>
<updated>2009-12-07T11:00:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Everyone,

I'd like to work on MRM-1296 (Audit logging report) for 1.3. I started a
draft of my proposal here:

http://cwiki.apache.org/confluence/display/ARCHIVA/Audit+Log+Report

Comments /suggestions are much appreciated :)

Thanks,
Deng


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Archiva has periodic load-peaks</title>
<author><name>Sylvain Avril &lt;avrils@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c26ce3de40912040456j4cd84fd7idbccbf2c8ec85f88@mail.gmail.com%3e"/>
<id>urn:uuid:%3c26ce3de40912040456j4cd84fd7idbccbf2c8ec85f88@mail-gmail-com%3e</id>
<updated>2009-12-04T12:56:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/12/1 Brett Porter &lt;brett@apache.org&gt;
&gt; These look to be on the hour, which would correlate with the default scanning interval.
You can reduce that period as long as you are not relying on detecting the arrival of files
on the filesystem from external sources and can wait for certain metadata to be populated.

Using inotify (for Linux) may be interesting.
Inotify is a linux kernel API which trigger events on filesystem changes :
    - file created.
    - file modified.
    - file renamed.
    - file deleted.

This way, Archiva could trigger a "mini-scan" only when it is usefull.

There are 2 projects providing bindings for Java :
http://code.google.com/p/inotify-java/
http://jnotify.sourceforge.net/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: LDAP Connection Leaks</title>
<author><name>Emmanuel Venisse &lt;emmanuel.venisse@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3cf345f3480912010431l19c6f43at2427c7ebb2a2c48d@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf345f3480912010431l19c6f43at2427c7ebb2a2c48d@mail-gmail-com%3e</id>
<updated>2009-12-01T12:31:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1 to include it in 1.2.3

Emmanuel

On Mon, Nov 30, 2009 at 11:46 PM, Brett Porter &lt;brett@porterclan.net&gt; wrote:

&gt; Hi Brent,
&gt;
&gt; Thanks for bringing this up. I spotted your comments yesterday and was
&gt; going to ask today if we could include it in 1.2.3.
&gt;
&gt; What do others think - I know it's close to release, but could we get this
&gt; fix in?
&gt;
&gt; - Brett
&gt;
&gt; On 01/12/2009, at 3:28 AM, Brent Atkinson wrote:
&gt;
&gt; &gt; Hi,
&gt; &gt;
&gt; &gt; I'm extremely interested in better LDAP support in archiva. My major
&gt; concern is the characteristics of
&gt; &gt; archiva's repository security, specifically with the LDAP connection
&gt; count when downloading a large
&gt; &gt; number of artifacts. Due to the connection leaks described in
&gt; http://jira.codehaus.org/browse/REDBACK-185
&gt; &gt; it overwhelms my OpenLDAP server with 100s of active connections during a
&gt; large build. Worse,
&gt; &gt; the connections are persistent, eventually monopolizing the service.
&gt; &gt;
&gt; &gt; I've submitted a patch that I believe fixes the leaks. By patching my
&gt; 1.2-M1 server I've been able to
&gt; &gt; run those large builds with no problems. Using Sun's LDAP connection
&gt; pooling, those large builds
&gt; &gt; only ever allocate 1 connection per user concurrent user. I have ported
&gt; the patch to redback 1.2.2.
&gt; &gt; Olivier fixed some of the leaks I found in M1, but there were some
&gt; remaining in the ldap user
&gt; &gt; management code. Is there any chance that this could make it into a 1.2
&gt; bugfix release?
&gt; &gt;
&gt; &gt; Brent Atkinson
&gt; &gt; batkinson@usm.maine.edu
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Archiva has periodic load-peaks</title>
<author><name>Marc Lustig &lt;ml@marclustig.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c26590909.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26590909-post@talk-nabble-com%3e</id>
<updated>2009-12-01T12:25:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This pretty much sounds like a reasonable explanation - unfortunately it may
not be the (only) reason.

I forgot to mention that this "periodic peaks" load-pattern occurs only from
time to time.
I. e. when the pattern happens, the peaks occur periodically. But after
restarting Archiva, the pattern does not occur anymore for a couple of days
or weeks.

I can be sure about this because we have notifiers installed that warn when
a certain HTTP-request on Archiva exceeds a certain threshold value. 
We have not seen alarms between 3rd of november and 30th of november.
On the 30th out of a sudden the periodic load raised tremendously.

I doubt the RDBMS being slower could have an impact on the load.
It's a bit mysterious...




brettporter wrote:
&gt; 
&gt; These look to be on the hour, which would correlate with the default
&gt; scanning interval. You can reduce that period as long as you are not
&gt; relying on detecting the arrival of files on the filesystem from external
&gt; sources and can wait for certain metadata to be populated.
&gt; 
&gt; Archiva 1.2.3-SNAPSHOT should dramatically increase the performance of the
&gt; system during these periods, and we are discussing alternatives for
&gt; removing it for normal operation in future versions.
&gt; 
&gt; HTH,
&gt; Brett
&gt; 
&gt; On 01/12/2009, at 8:48 PM, Marc Lustig wrote:
&gt; 
&gt;&gt; 
&gt;&gt; Archiva causes periodically an increased system-load. (see MRM-1291 for
&gt;&gt; Munin-stats )
&gt;&gt; 
&gt;&gt; During these peaks calling the homepage takes around 6 secs, whereas
&gt;&gt; normally it is around 1 sec.
&gt;&gt; 
&gt;&gt; I could not identify corresponding messages in the logs.
&gt;&gt; 
&gt;&gt; Could somebody else observe this?
&gt;&gt; -- 
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Archiva-has-periodic-load-peaks-tp26588110p26588110.html
&gt;&gt; Sent from the archiva-dev mailing list archive at Nabble.com.
&gt;&gt; 
&gt; 
&gt; --
&gt; Brett Porter
&gt; brett@porterclan.net
&gt; http://brettporter.wordpress.com/
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Archiva-has-periodic-load-peaks-tp26588110p26590909.html
Sent from the archiva-dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Archiva has periodic load-peaks</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c6D875383-3AB3-4BD7-86A2-13DE95E1A1D4@apache.org%3e"/>
<id>urn:uuid:%3c6D875383-3AB3-4BD7-86A2-13DE95E1A1D4@apache-org%3e</id>
<updated>2009-12-01T11:01:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
These look to be on the hour, which would correlate with the default scanning interval. You
can reduce that period as long as you are not relying on detecting the arrival of files on
the filesystem from external sources and can wait for certain metadata to be populated.

Archiva 1.2.3-SNAPSHOT should dramatically increase the performance of the system during these
periods, and we are discussing alternatives for removing it for normal operation in future
versions.

HTH,
Brett

On 01/12/2009, at 8:48 PM, Marc Lustig wrote:

&gt; 
&gt; Archiva causes periodically an increased system-load. (see MRM-1291 for
&gt; Munin-stats )
&gt; 
&gt; During these peaks calling the homepage takes around 6 secs, whereas
&gt; normally it is around 1 sec.
&gt; 
&gt; I could not identify corresponding messages in the logs.
&gt; 
&gt; Could somebody else observe this?
&gt; -- 
&gt; View this message in context: http://old.nabble.com/Archiva-has-periodic-load-peaks-tp26588110p26588110.html
&gt; Sent from the archiva-dev mailing list archive at Nabble.com.
&gt; 

--
Brett Porter
brett@porterclan.net
http://brettporter.wordpress.com/





</pre>
</div>
</content>
</entry>
<entry>
<title>Archiva has periodic load-peaks</title>
<author><name>Marc Lustig &lt;ml@marclustig.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c26588110.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26588110-post@talk-nabble-com%3e</id>
<updated>2009-12-01T09:48:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Archiva causes periodically an increased system-load. (see MRM-1291 for
Munin-stats )

During these peaks calling the homepage takes around 6 secs, whereas
normally it is around 1 sec.

I could not identify corresponding messages in the logs.

Could somebody else observe this?
-- 
View this message in context: http://old.nabble.com/Archiva-has-periodic-load-peaks-tp26588110p26588110.html
Sent from the archiva-dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: LDAP Connection Leaks</title>
<author><name>Deng Ching &lt;odeaching@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200912.mbox/%3c8667b1bd0911301802v3793422bg863340279af958da@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0911301802v3793422bg863340279af958da@mail-gmail-com%3e</id>
<updated>2009-12-01T02:02:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1 in including this in 1.2.3

Thanks,
Deng

On Tue, Dec 1, 2009 at 6:46 AM, Brett Porter &lt;brett@porterclan.net&gt; wrote:

&gt; Hi Brent,
&gt;
&gt; Thanks for bringing this up. I spotted your comments yesterday and was
&gt; going to ask today if we could include it in 1.2.3.
&gt;
&gt; What do others think - I know it's close to release, but could we get this
&gt; fix in?
&gt;
&gt; - Brett
&gt;
&gt; On 01/12/2009, at 3:28 AM, Brent Atkinson wrote:
&gt;
&gt; &gt; Hi,
&gt; &gt;
&gt; &gt; I'm extremely interested in better LDAP support in archiva. My major
&gt; concern is the characteristics of
&gt; &gt; archiva's repository security, specifically with the LDAP connection
&gt; count when downloading a large
&gt; &gt; number of artifacts. Due to the connection leaks described in
&gt; http://jira.codehaus.org/browse/REDBACK-185
&gt; &gt; it overwhelms my OpenLDAP server with 100s of active connections during a
&gt; large build. Worse,
&gt; &gt; the connections are persistent, eventually monopolizing the service.
&gt; &gt;
&gt; &gt; I've submitted a patch that I believe fixes the leaks. By patching my
&gt; 1.2-M1 server I've been able to
&gt; &gt; run those large builds with no problems. Using Sun's LDAP connection
&gt; pooling, those large builds
&gt; &gt; only ever allocate 1 connection per user concurrent user. I have ported
&gt; the patch to redback 1.2.2.
&gt; &gt; Olivier fixed some of the leaks I found in M1, but there were some
&gt; remaining in the ldap user
&gt; &gt; management code. Is there any chance that this could make it into a 1.2
&gt; bugfix release?
&gt; &gt;
&gt; &gt; Brent Atkinson
&gt; &gt; batkinson@usm.maine.edu
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: LDAP Connection Leaks</title>
<author><name>Brett Porter &lt;brett@porterclan.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c408421C6-8F58-4B1D-99A0-415869EB071E@porterclan.net%3e"/>
<id>urn:uuid:%3c408421C6-8F58-4B1D-99A0-415869EB071E@porterclan-net%3e</id>
<updated>2009-11-30T22:46:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Brent,

Thanks for bringing this up. I spotted your comments yesterday and was going to ask today
if we could include it in 1.2.3.

What do others think - I know it's close to release, but could we get this fix in?

- Brett

On 01/12/2009, at 3:28 AM, Brent Atkinson wrote:

&gt; Hi,
&gt; 
&gt; I'm extremely interested in better LDAP support in archiva. My major concern is the characteristics
of 
&gt; archiva's repository security, specifically with the LDAP connection count when downloading
a large 
&gt; number of artifacts. Due to the connection leaks described in http://jira.codehaus.org/browse/REDBACK-185
&gt; it overwhelms my OpenLDAP server with 100s of active connections during a large build.
Worse,
&gt; the connections are persistent, eventually monopolizing the service.
&gt; 
&gt; I've submitted a patch that I believe fixes the leaks. By patching my 1.2-M1 server I've
been able to 
&gt; run those large builds with no problems. Using Sun's LDAP connection pooling, those large
builds 
&gt; only ever allocate 1 connection per user concurrent user. I have ported the patch to
redback 1.2.2. 
&gt; Olivier fixed some of the leaks I found in M1, but there were some remaining in the ldap
user 
&gt; management code. Is there any chance that this could make it into a 1.2 bugfix release?
&gt; 
&gt; Brent Atkinson
&gt; batkinson@usm.maine.edu



</pre>
</div>
</content>
</entry>
<entry>
<title>LDAP Connection Leaks</title>
<author><name>&quot;Brent Atkinson&quot; &lt;batkinson@usm.maine.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c4B13AC590200009D00035B92@uct5.uct.usm.maine.edu%3e"/>
<id>urn:uuid:%3c4B13AC590200009D00035B92@uct5-uct-usm-maine-edu%3e</id>
<updated>2009-11-30T16:28:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 
I'm extremely interested in better LDAP support in archiva. My major concern is the characteristics
of 
archiva's repository security, specifically with the LDAP connection count when downloading
a large 
number of artifacts. Due to the connection leaks described in http://jira.codehaus.org/browse/REDBACK-185
it overwhelms my OpenLDAP server with 100s of active connections during a large build. Worse,
the connections are persistent, eventually monopolizing the service.
 
I've submitted a patch that I believe fixes the leaks. By patching my 1.2-M1 server I've been
able to 
run those large builds with no problems. Using Sun's LDAP connection pooling, those large
builds 
only ever allocate 1 connection per user concurrent user. I have ported the patch to redback
1.2.2. 
Olivier fixed some of the leaks I found in M1, but there were some remaining in the ldap user

management code. Is there any chance that this could make it into a 1.2 bugfix release?
 
Brent Atkinson
batkinson@usm.maine.edu


</pre>
</div>
</content>
</entry>
<entry>
<title>explanation for ClassNotFoundException : RepositoryMetadataBuilder (and others)</title>
<author><name>Brett Porter &lt;brett@porterclan.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c4CA1D2F0-AC24-4AA0-90DB-BCCC5A6F6A91@porterclan.net%3e"/>
<id>urn:uuid:%3c4CA1D2F0-AC24-4AA0-90DB-BCCC5A6F6A91@porterclan-net%3e</id>
<updated>2009-11-30T14:27:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

We've come across this error multiple times before, and I hit it again this evening and wanted
to document what was going on in case it became an issue again in the future.

It looks something like this:

jvm 1    | Caused by: java.lang.IllegalArgumentException: Cannot find class [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
jvm 1    | 	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:233)
jvm 1    | 	at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63)
jvm 1    | 	at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
jvm 1    | 	at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
jvm 1    | 	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
jvm 1    | 	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
jvm 1    | 	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
jvm 1    | 	... 89 more
jvm 1    | Caused by: java.lang.ClassNotFoundException: org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder
jvm 1    | 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
jvm 1    | 
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
jvm 1    | 	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
jvm 1    | 	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
jvm 1    | 	at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
jvm 1    | 	at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:230)
jvm 1    | 	... 95 more

The reason this is occurring is because we are leaving some components that are declared in
a bundled components.xml out of the distribution. Normally, they wouldn't be needed, but it
seems that in certain circumstances Spring decides to load some classes that otherwise wouldn't
be loaded. So far, I've only seen this occur when an error appears somewhere else first -
perhaps in trying to resolve the error it keeps searching. The case above is because of differing
versions of the Maven library dependencies. If we align those versions, other errors will
then pop up for classes in plexus-container-default (eg ComponentConfigurator) which is also
in some component definitions but not bundled.

We could make them go away by shipping the latest Maven and including the corresponding plexus-container-default.
However, since they only seem to be appearing when something else goes wrong, I don't think
it's worth making the change immediately.

Just wanted to document this for others that might see it again in the future :)

Cheers,
Brett

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Archiva Connection Refused Error</title>
<author><name>Brett Porter &lt;brett@porterclan.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cA496912B-7902-4368-90DC-D9816C6E871A@porterclan.net%3e"/>
<id>urn:uuid:%3cA496912B-7902-4368-90DC-D9816C6E871A@porterclan-net%3e</id>
<updated>2009-11-30T12:45:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
These would be better asked on users@archiva.apache.org.

For problem 1, please inspect your archiva.log and post there with anything you notice that
might be a problem.

For problem 2, please look at the whitelists set for the proxy connectors that are used, and
make sure that there are no proxy connectors set on the release repositories that you don't
want requests to go outside for.

Cheers,
Brett

On 30/11/2009, at 11:34 PM, Soumen Trivedi wrote:

&gt; Hi all,
&gt; I am using Archiva 2.2.1
&gt; Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
&gt; Java version: 1.5.0_06
&gt; Java home: /usr/java/jdk1.5.0_06/jre
&gt; OS name: "linux" version: "2.6.18-92.el5xen" arch: "i386" Family: "unix"
&gt; 
&gt; *Problem 1:*
&gt; I have recently moved my standalone Archiva Instance into a new server with
&gt; improved speed and capacity, and have observed number of "Connection
&gt; refused" problems in my Continuous Integration instances due to Archiva
&gt; dropping the connection. Here is the log which I am getting:
&gt; 
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [ERROR] BUILD ERROR
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [INFO] Error retrieving previous build number for artifact
&gt; 'com.specsavers.ott:hub-data-repository-service-unit:jbi-service-unit':
&gt; repository metadata for: 'snapshot
&gt; com.specsavers.ott:hub-data-repository-service-unit:1.4.3-SNAPSHOT' could
&gt; not be retrieved from repository: srs-snapshot due to an error: Error
&gt; transferring file: Connection refused
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [INFO] For more information, run Maven with the -e switch
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [INFO] Total time: 25 minutes 50 seconds
&gt; [INFO] Finished at: Mon Nov 30 10:01:41 GMT 2009
&gt; [INFO] Final Memory: 77M/373M
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; 
&gt; My old archiva instance was running on a similar server and in the same
&gt; network.
&gt; 
&gt; 
&gt; Can anyone please comment about this behavior and provide me any kind of
&gt; pointers to get this resolved.
&gt; 
&gt; I am also working with my network team to see if there are any problems due
&gt; to network, (haven't noticed anything yet since 2 weeks, network looks to be
&gt; normal and working fine)
&gt; 
&gt; 
&gt; Problem 2:
&gt; When build projects, Archiva is doing a lookup in INTERNET for project
&gt; generated Artifacts FROM Remote repository defined. I think there is
&gt; something wrong with the archiva configuration. Also we are using "master"
&gt; as mirror of all repositories. Could that be a problem?
&gt; 
&gt; 
&gt; These problems are of critical importance to our projects and it would be
&gt; really helpful if you could please provide me with your
&gt; inputs/pointers/comments/resolution upon the same.
&gt; 
&gt; Thanks in advance!!
&gt; 
&gt; -- 
&gt; Thanks &amp; Regards,
&gt; Soumen Trivedi
&gt; +44 (0) 751 544 6779
&gt; Email: Soumen.Trivedi@gmail.com



</pre>
</div>
</content>
</entry>
<entry>
<title>Archiva Connection Refused Error</title>
<author><name>Soumen Trivedi &lt;soumen.trivedi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c29fabcbf0911300434w419ed2b5ra6439a257583faec@mail.gmail.com%3e"/>
<id>urn:uuid:%3c29fabcbf0911300434w419ed2b5ra6439a257583faec@mail-gmail-com%3e</id>
<updated>2009-11-30T12:34:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,
I am using Archiva 2.2.1
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.5.0_06
Java home: /usr/java/jdk1.5.0_06/jre
OS name: "linux" version: "2.6.18-92.el5xen" arch: "i386" Family: "unix"

*Problem 1:*
I have recently moved my standalone Archiva Instance into a new server with
improved speed and capacity, and have observed number of "Connection
refused" problems in my Continuous Integration instances due to Archiva
dropping the connection. Here is the log which I am getting:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error retrieving previous build number for artifact
'com.specsavers.ott:hub-data-repository-service-unit:jbi-service-unit':
repository metadata for: 'snapshot
com.specsavers.ott:hub-data-repository-service-unit:1.4.3-SNAPSHOT' could
not be retrieved from repository: srs-snapshot due to an error: Error
transferring file: Connection refused
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 minutes 50 seconds
[INFO] Finished at: Mon Nov 30 10:01:41 GMT 2009
[INFO] Final Memory: 77M/373M
[INFO]
------------------------------------------------------------------------

My old archiva instance was running on a similar server and in the same
network.


Can anyone please comment about this behavior and provide me any kind of
pointers to get this resolved.

I am also working with my network team to see if there are any problems due
to network, (haven't noticed anything yet since 2 weeks, network looks to be
normal and working fine)


Problem 2:
When build projects, Archiva is doing a lookup in INTERNET for project
generated Artifacts FROM Remote repository defined. I think there is
something wrong with the archiva configuration. Also we are using "master"
as mirror of all repositories. Could that be a problem?


These problems are of critical importance to our projects and it would be
really helpful if you could please provide me with your
inputs/pointers/comments/resolution upon the same.

Thanks in advance!!

-- 
Thanks &amp; Regards,
Soumen Trivedi
+44 (0) 751 544 6779
Email: Soumen.Trivedi@gmail.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: seeking review on plan/work for MRM-1025</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cB10869AF-74CF-4230-B441-074F58DB3939@apache.org%3e"/>
<id>urn:uuid:%3cB10869AF-74CF-4230-B441-074F58DB3939@apache-org%3e</id>
<updated>2009-11-20T09:47:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In addition, this is the content model I was thinking of: http://svn.apache.org/repos/asf/archiva/branches/MRM-1025/archiva-modules/metadata/content-model.txt
(represented as a tree structure, and can be rendered in XML, json, etc.)

Somewhat simpler but still as flexible as the one previously on the wiki.

- Brett

On 20/11/2009, at 12:38 PM, Brett Porter wrote:

&gt; Hi,
&gt; 
&gt; I have again picked up the task of removing the requirement of the database from Archiva
(seeking to push it over to either an optional add-on, or replace it with an alternative).
We use very little of the data in there for core functionality at the moment.
&gt; 
&gt; The main reasoning is to clean up the architecture though and remove a certain classification
of bugs that we get on a regular basis.
&gt; 
&gt; I'd like to make sure the work I'm doing is reviewed though, even though it's on a branch.
If you get time to review the code, please do. Short of that, please sanity check the current
plan: http://jira.codehaus.org/browse/MRM-1025
&gt; 
&gt; If you have any questions, comments, or would like to help, just shout!
&gt; 
&gt; - Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>seeking review on plan/work for MRM-1025</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c1EB11C1E-5CDD-47FB-8876-41F8F43D3EFF@apache.org%3e"/>
<id>urn:uuid:%3c1EB11C1E-5CDD-47FB-8876-41F8F43D3EFF@apache-org%3e</id>
<updated>2009-11-20T01:38:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I have again picked up the task of removing the requirement of the database from Archiva (seeking
to push it over to either an optional add-on, or replace it with an alternative). We use very
little of the data in there for core functionality at the moment.

The main reasoning is to clean up the architecture though and remove a certain classification
of bugs that we get on a regular basis.

I'd like to make sure the work I'm doing is reviewed though, even though it's on a branch.
If you get time to review the code, please do. Short of that, please sanity check the current
plan: http://jira.codehaus.org/browse/MRM-1025

If you have any questions, comments, or would like to help, just shout!

- Brett

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r882207 [1/3] - in /archiva/branches/MRM-1025: ./	archiva-modules/ archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/	archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apac</title>
<author><name>Wendy Smoak &lt;wsmoak@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cadba96190911191517m4ffe5bd1mcedafd7174ac62ea@mail.gmail.com%3e"/>
<id>urn:uuid:%3cadba96190911191517m4ffe5bd1mcedafd7174ac62ea@mail-gmail-com%3e</id>
<updated>2009-11-19T23:17:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sorry, I didn't see that the issue key was in the path!  Just a knee
jerk reaction to big commit without an issue. :)  -Wendy

On Thu, Nov 19, 2009 at 4:05 PM, Brett Porter &lt;brett@apache.org&gt; wrote:
&gt; Thanks for the reminder - I'll put the issue tag in all the commit messages.
&gt;
&gt; This all falls under the branch issue (MRM-1025). This particular change could actually
be ported back to the mainline as it stands alone - but I don't want to disturb the 1.2.3
work. To some extent, I'm still playing around with what will work before proposing anything
more formal :)
&gt;
&gt; Cheers,
&gt; Brett
&gt;
&gt; On 20/11/2009, at 4:24 AM, Wendy Smoak wrote:
&gt;
&gt;&gt; Seems like a big change, is there a JIRA issue with details?  -Wendy
&gt;&gt;
&gt;&gt; On Thu, Nov 19, 2009 at 10:16 AM,  &lt;brett@apache.org&gt; wrote:
&gt;&gt;&gt; Author: brett
&gt;&gt;&gt; Date: Thu Nov 19 17:16:20 2009
&gt;&gt;&gt; New Revision: 882207
&gt;&gt;&gt;
&gt;&gt;&gt; URL: http://svn.apache.org/viewvc?rev=882207&amp;view=rev
&gt;&gt;&gt; Log:
&gt;&gt;&gt; split the scheduler into modules to isolate database and indexer dependent code
&gt;&gt; ...
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r882207 [1/3] - in /archiva/branches/MRM-1025: ./  archiva-modules/ archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/  archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apac</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cD9783C16-08B5-4C0C-A0F9-CC0632415C08@apache.org%3e"/>
<id>urn:uuid:%3cD9783C16-08B5-4C0C-A0F9-CC0632415C08@apache-org%3e</id>
<updated>2009-11-19T23:12:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Actually, to provide more detail...

There was no functional change here, just a move to reduce the complexity of the transitive
closure. I do think in other instances where functionality is enhanced / modified to remove
the database, it is important to create separate issues (the next steps are to flesh out the
metadata repository, which is probably a candidate for this).

Hope that makes sense!

- Brett

On 20/11/2009, at 10:05 AM, Brett Porter wrote:

&gt; Thanks for the reminder - I'll put the issue tag in all the commit messages.
&gt; 
&gt; This all falls under the branch issue (MRM-1025). This particular change could actually
be ported back to the mainline as it stands alone - but I don't want to disturb the 1.2.3
work. To some extent, I'm still playing around with what will work before proposing anything
more formal :)
&gt; 
&gt; Cheers,
&gt; Brett
&gt; 
&gt; On 20/11/2009, at 4:24 AM, Wendy Smoak wrote:
&gt; 
&gt;&gt; Seems like a big change, is there a JIRA issue with details?  -Wendy
&gt;&gt; 
&gt;&gt; On Thu, Nov 19, 2009 at 10:16 AM,  &lt;brett@apache.org&gt; wrote:
&gt;&gt;&gt; Author: brett
&gt;&gt;&gt; Date: Thu Nov 19 17:16:20 2009
&gt;&gt;&gt; New Revision: 882207
&gt;&gt;&gt; 
&gt;&gt;&gt; URL: http://svn.apache.org/viewvc?rev=882207&amp;view=rev
&gt;&gt;&gt; Log:
&gt;&gt;&gt; split the scheduler into modules to isolate database and indexer dependent code
&gt;&gt; ...
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r882207 [1/3] - in /archiva/branches/MRM-1025: ./  archiva-modules/ archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/  archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apac</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c69A33FBF-F0AA-4132-84B5-34459AAD06C7@apache.org%3e"/>
<id>urn:uuid:%3c69A33FBF-F0AA-4132-84B5-34459AAD06C7@apache-org%3e</id>
<updated>2009-11-19T23:05:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the reminder - I'll put the issue tag in all the commit messages.

This all falls under the branch issue (MRM-1025). This particular change could actually be
ported back to the mainline as it stands alone - but I don't want to disturb the 1.2.3 work.
To some extent, I'm still playing around with what will work before proposing anything more
formal :)

Cheers,
Brett

On 20/11/2009, at 4:24 AM, Wendy Smoak wrote:

&gt; Seems like a big change, is there a JIRA issue with details?  -Wendy
&gt; 
&gt; On Thu, Nov 19, 2009 at 10:16 AM,  &lt;brett@apache.org&gt; wrote:
&gt;&gt; Author: brett
&gt;&gt; Date: Thu Nov 19 17:16:20 2009
&gt;&gt; New Revision: 882207
&gt;&gt; 
&gt;&gt; URL: http://svn.apache.org/viewvc?rev=882207&amp;view=rev
&gt;&gt; Log:
&gt;&gt; split the scheduler into modules to isolate database and indexer dependent code
&gt; ...



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r882207 [1/3] - in /archiva/branches/MRM-1025: ./	archiva-modules/ archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/	archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apac</title>
<author><name>Wendy Smoak &lt;wsmoak@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cadba96190911190924r753ca265h81d7e6884d07c2ac@mail.gmail.com%3e"/>
<id>urn:uuid:%3cadba96190911190924r753ca265h81d7e6884d07c2ac@mail-gmail-com%3e</id>
<updated>2009-11-19T17:24:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Seems like a big change, is there a JIRA issue with details?  -Wendy

On Thu, Nov 19, 2009 at 10:16 AM,  &lt;brett@apache.org&gt; wrote:
&gt; Author: brett
&gt; Date: Thu Nov 19 17:16:20 2009
&gt; New Revision: 882207
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=882207&amp;view=rev
&gt; Log:
&gt; split the scheduler into modules to isolate database and indexer dependent code
...


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r834415 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test:  ./ ReadMe.txt pom.xml</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3cB092DD17-7A94-46E9-9614-57DF6121A607@apache.org%3e"/>
<id>urn:uuid:%3cB092DD17-7A94-46E9-9614-57DF6121A607@apache-org%3e</id>
<updated>2009-11-11T23:09:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks, sorry about that!

- Brett

On 11/11/2009, at 5:02 PM, Deng Ching wrote:

&gt; Fixed now, it just needed the ${basedir} in the path :)
&gt;
&gt; On Wed, Nov 11, 2009 at 11:52 AM, Deng Ching &lt;oching@apache.org&gt;  
&gt; wrote:
&gt;
&gt;&gt; Hi Brett,
&gt;&gt;
&gt;&gt; This fails when running the webapp-tests as part of the build (e.g.  
&gt;&gt; mvn
&gt;&gt; clean install -Pit from the root), it looks like the Tomcat  
&gt;&gt; installation
&gt;&gt; isn't unzipped in the correct path..
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Deng
&gt;&gt;
&gt;&gt;
&gt;&gt; On Tue, Nov 10, 2009 at 6:26 PM, &lt;brett@apache.org&gt; wrote:
&gt;&gt;
&gt;&gt;&gt; Author: brett
&gt;&gt;&gt; Date: Tue Nov 10 10:26:23 2009
&gt;&gt;&gt; New Revision: 834415
&gt;&gt;&gt;
&gt;&gt;&gt; URL: http://svn.apache.org/viewvc?rev=834415&amp;view=rev
&gt;&gt;&gt; Log:
&gt;&gt;&gt; store cargo installations outside target to avoid re-downloading
&gt;&gt;&gt;
&gt;&gt;&gt; Modified:
&gt;&gt;&gt;   archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/    
&gt;&gt;&gt; (props
&gt;&gt;&gt; changed)
&gt;&gt;&gt;
&gt;&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; ReadMe.txt
&gt;&gt;&gt;   archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; pom.xml
&gt;&gt;&gt;
&gt;&gt;&gt; Propchange: archiva/trunk/archiva-modules/archiva-web/archiva- 
&gt;&gt;&gt; webapp-test/
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------------------------------------------------------
&gt;&gt;&gt; --- svn:ignore (original)
&gt;&gt;&gt; +++ svn:ignore Tue Nov 10 10:26:23 2009
&gt;&gt;&gt; @@ -6,3 +6,4 @@
&gt;&gt;&gt; .settings
&gt;&gt;&gt; .classpath
&gt;&gt;&gt; .project
&gt;&gt;&gt; +cargo-installs
&gt;&gt;&gt;
&gt;&gt;&gt; Modified:
&gt;&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; ReadMe.txt
&gt;&gt;&gt; URL:
&gt;&gt;&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;&gt;&gt;
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; ====================================================================
&gt;&gt;&gt; ---
&gt;&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; ReadMe.txt
&gt;&gt;&gt; (original)
&gt;&gt;&gt; +++
&gt;&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; ReadMe.txt Tue
&gt;&gt;&gt; Nov 10 10:26:23 2009
&gt;&gt;&gt; @@ -9,7 +9,11 @@
&gt;&gt;&gt;  - modify src/test/resources/testng.properties as needed
&gt;&gt;&gt;  - mvn clean install -Dcontainer-existing
&gt;&gt;&gt;
&gt;&gt;&gt; +The Cargo installations are stored outside of target to avoid  
&gt;&gt;&gt; multiple
&gt;&gt;&gt; downloads.
&gt;&gt;&gt; +To remove the Cargo installations and re-download them next run,  
&gt;&gt;&gt; use:
&gt;&gt;&gt; +  - mvn -Pclean-cargo clean
&gt;&gt;&gt; +
&gt;&gt;&gt; For the default values in the scripts, to pass all the tests, you  
&gt;&gt;&gt; need to
&gt;&gt;&gt; add an artifact in internal repository.
&gt;&gt;&gt;
&gt;&gt;&gt; Run Selenium tests in src/test/it with Maven and JUnit
&gt;&gt;&gt; -  - mvn clean install -f junit-pom.xml
&gt;&gt;&gt; \ No newline at end of file
&gt;&gt;&gt; +  - mvn clean install -f junit-pom.xml
&gt;&gt;&gt;
&gt;&gt;&gt; Modified:
&gt;&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; pom.xml
&gt;&gt;&gt; URL:
&gt;&gt;&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;&gt;&gt;
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; = 
&gt;&gt;&gt; ====================================================================
&gt;&gt;&gt; --- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; pom.xml
&gt;&gt;&gt; (original)
&gt;&gt;&gt; +++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ 
&gt;&gt;&gt; pom.xml
&gt;&gt;&gt; Tue Nov 10 10:26:23 2009
&gt;&gt;&gt; @@ -265,7 +265,7 @@
&gt;&gt;&gt;                      &lt;fileset dir="src/test/${container.name}" /&gt;
&gt;&gt;&gt;                    &lt;/copy&gt;
&gt;&gt;&gt;                    &lt;copy
&gt;&gt;&gt; -                      todir="${project.build.directory}/installs/${
&gt;&gt;&gt; container.name
&gt;&gt;&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-$ 
&gt;&gt;&gt; {tomcat5x.version}/common/lib"&gt;
&gt;&gt;&gt; +                      todir="${cargo.install.dir}/${container.name
&gt;&gt;&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-$ 
&gt;&gt;&gt; {tomcat5x.version}/common/lib"&gt;
&gt;&gt;&gt;                      &lt;fileset
&gt;&gt;&gt; dir="${project.build.directory}/providedDependencies"&gt;
&gt;&gt;&gt;                        &lt;include name="**/*.jar" /&gt;
&gt;&gt;&gt;                      &lt;/fileset&gt;
&gt;&gt;&gt; @@ -317,7 +317,7 @@
&gt;&gt;&gt;                &lt;containerId&gt;${container.name}&lt;/containerId&gt;
&gt;&gt;&gt;                &lt;zipUrlInstaller&gt;
&gt;&gt;&gt;                  &lt;url&gt;${container.url}&lt;/url&gt;
&gt;&gt;&gt; -                  &lt;installDir&gt;${project.build.directory}/installs/ 
&gt;&gt;&gt; ${
&gt;&gt;&gt; container.name}&lt;/installDir&gt;
&gt;&gt;&gt; +                  &lt;installDir&gt;${cargo.install.dir}/${container.name
&gt;&gt;&gt; }&lt;/installDir&gt;
&gt;&gt;&gt;                &lt;/zipUrlInstaller&gt;
&gt;&gt;&gt;                &lt;log&gt;${project.build.directory}/logs/${container.name
&gt;&gt;&gt; }.log&lt;/log&gt;
&gt;&gt;&gt;                &lt;output&gt;${project.build.directory}/logs/$ 
&gt;&gt;&gt; {container.name
&gt;&gt;&gt; }.out&lt;/output&gt;
&gt;&gt;&gt; @@ -443,6 +443,24 @@
&gt;&gt;&gt;      &lt;/properties&gt;
&gt;&gt;&gt;    &lt;/profile&gt;
&gt;&gt;&gt;    &lt;profile&gt;
&gt;&gt;&gt; +      &lt;id&gt;clean-cargo&lt;/id&gt;
&gt;&gt;&gt; +      &lt;build&gt;
&gt;&gt;&gt; +        &lt;plugins&gt;
&gt;&gt;&gt; +          &lt;plugin&gt;
&gt;&gt;&gt; +            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&gt;&gt;&gt; +            &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
&gt;&gt;&gt; +            &lt;configuration&gt;
&gt;&gt;&gt; +              &lt;filesets&gt;
&gt;&gt;&gt; +                &lt;fileset&gt;
&gt;&gt;&gt; +                  &lt;directory&gt;${cargo.install.dir}&lt;/directory&gt;
&gt;&gt;&gt; +                &lt;/fileset&gt;
&gt;&gt;&gt; +              &lt;/filesets&gt;
&gt;&gt;&gt; +            &lt;/configuration&gt;
&gt;&gt;&gt; +          &lt;/plugin&gt;
&gt;&gt;&gt; +        &lt;/plugins&gt;
&gt;&gt;&gt; +      &lt;/build&gt;
&gt;&gt;&gt; +    &lt;/profile&gt;
&gt;&gt;&gt; +    &lt;profile&gt;
&gt;&gt;&gt;      &lt;id&gt;headless&lt;/id&gt;
&gt;&gt;&gt;      &lt;build&gt;
&gt;&gt;&gt;        &lt;plugins&gt;
&gt;&gt;&gt; @@ -466,5 +484,6 @@
&gt;&gt;&gt;  &lt;properties&gt;
&gt;&gt;&gt;    &lt;tomcat5x.version&gt;5.5.27&lt;/tomcat5x.version&gt;
&gt;&gt;&gt;    &lt;cargo.wait&gt;false&lt;/cargo.wait&gt;
&gt;&gt;&gt; +    &lt;cargo.install.dir&gt;cargo-installs&lt;/cargo.install.dir&gt;
&gt;&gt;&gt;  &lt;/properties&gt;
&gt;&gt;&gt; &lt;/project&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r834415 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test:	./ ReadMe.txt pom.xml</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c8667b1bd0911102202w48840702l74ec3219016b0f39@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0911102202w48840702l74ec3219016b0f39@mail-gmail-com%3e</id>
<updated>2009-11-11T06:02:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Fixed now, it just needed the ${basedir} in the path :)

On Wed, Nov 11, 2009 at 11:52 AM, Deng Ching &lt;oching@apache.org&gt; wrote:

&gt; Hi Brett,
&gt;
&gt; This fails when running the webapp-tests as part of the build (e.g. mvn
&gt; clean install -Pit from the root), it looks like the Tomcat installation
&gt; isn't unzipped in the correct path..
&gt;
&gt; Thanks,
&gt; Deng
&gt;
&gt;
&gt; On Tue, Nov 10, 2009 at 6:26 PM, &lt;brett@apache.org&gt; wrote:
&gt;
&gt;&gt; Author: brett
&gt;&gt; Date: Tue Nov 10 10:26:23 2009
&gt;&gt; New Revision: 834415
&gt;&gt;
&gt;&gt; URL: http://svn.apache.org/viewvc?rev=834415&amp;view=rev
&gt;&gt; Log:
&gt;&gt; store cargo installations outside target to avoid re-downloading
&gt;&gt;
&gt;&gt; Modified:
&gt;&gt;    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/   (props
&gt;&gt; changed)
&gt;&gt;
&gt;&gt;  archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt;&gt;    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt;&gt;
&gt;&gt; Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/
&gt;&gt;
&gt;&gt; ------------------------------------------------------------------------------
&gt;&gt; --- svn:ignore (original)
&gt;&gt; +++ svn:ignore Tue Nov 10 10:26:23 2009
&gt;&gt; @@ -6,3 +6,4 @@
&gt;&gt;  .settings
&gt;&gt;  .classpath
&gt;&gt;  .project
&gt;&gt; +cargo-installs
&gt;&gt;
&gt;&gt; Modified:
&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt;&gt; URL:
&gt;&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;&gt;
&gt;&gt; ==============================================================================
&gt;&gt; ---
&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt;&gt; (original)
&gt;&gt; +++
&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt Tue
&gt;&gt; Nov 10 10:26:23 2009
&gt;&gt; @@ -9,7 +9,11 @@
&gt;&gt;   - modify src/test/resources/testng.properties as needed
&gt;&gt;   - mvn clean install -Dcontainer-existing
&gt;&gt;
&gt;&gt; +The Cargo installations are stored outside of target to avoid multiple
&gt;&gt; downloads.
&gt;&gt; +To remove the Cargo installations and re-download them next run, use:
&gt;&gt; +  - mvn -Pclean-cargo clean
&gt;&gt; +
&gt;&gt;  For the default values in the scripts, to pass all the tests, you need to
&gt;&gt; add an artifact in internal repository.
&gt;&gt;
&gt;&gt;  Run Selenium tests in src/test/it with Maven and JUnit
&gt;&gt; -  - mvn clean install -f junit-pom.xml
&gt;&gt; \ No newline at end of file
&gt;&gt; +  - mvn clean install -f junit-pom.xml
&gt;&gt;
&gt;&gt; Modified:
&gt;&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt;&gt; URL:
&gt;&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;&gt;
&gt;&gt; ==============================================================================
&gt;&gt; --- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt;&gt; (original)
&gt;&gt; +++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt;&gt; Tue Nov 10 10:26:23 2009
&gt;&gt; @@ -265,7 +265,7 @@
&gt;&gt;                       &lt;fileset dir="src/test/${container.name}" /&gt;
&gt;&gt;                     &lt;/copy&gt;
&gt;&gt;                     &lt;copy
&gt;&gt; -                      todir="${project.build.directory}/installs/${
&gt;&gt; container.name
&gt;&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib"&gt;
&gt;&gt; +                      todir="${cargo.install.dir}/${container.name
&gt;&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib"&gt;
&gt;&gt;                       &lt;fileset
&gt;&gt; dir="${project.build.directory}/providedDependencies"&gt;
&gt;&gt;                         &lt;include name="**/*.jar" /&gt;
&gt;&gt;                       &lt;/fileset&gt;
&gt;&gt; @@ -317,7 +317,7 @@
&gt;&gt;                 &lt;containerId&gt;${container.name}&lt;/containerId&gt;
&gt;&gt;                 &lt;zipUrlInstaller&gt;
&gt;&gt;                   &lt;url&gt;${container.url}&lt;/url&gt;
&gt;&gt; -                  &lt;installDir&gt;${project.build.directory}/installs/${
&gt;&gt; container.name}&lt;/installDir&gt;
&gt;&gt; +                  &lt;installDir&gt;${cargo.install.dir}/${container.name
&gt;&gt; }&lt;/installDir&gt;
&gt;&gt;                 &lt;/zipUrlInstaller&gt;
&gt;&gt;                 &lt;log&gt;${project.build.directory}/logs/${container.name
&gt;&gt; }.log&lt;/log&gt;
&gt;&gt;                 &lt;output&gt;${project.build.directory}/logs/${container.name
&gt;&gt; }.out&lt;/output&gt;
&gt;&gt; @@ -443,6 +443,24 @@
&gt;&gt;       &lt;/properties&gt;
&gt;&gt;     &lt;/profile&gt;
&gt;&gt;     &lt;profile&gt;
&gt;&gt; +      &lt;id&gt;clean-cargo&lt;/id&gt;
&gt;&gt; +      &lt;build&gt;
&gt;&gt; +        &lt;plugins&gt;
&gt;&gt; +          &lt;plugin&gt;
&gt;&gt; +            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&gt;&gt; +            &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
&gt;&gt; +            &lt;configuration&gt;
&gt;&gt; +              &lt;filesets&gt;
&gt;&gt; +                &lt;fileset&gt;
&gt;&gt; +                  &lt;directory&gt;${cargo.install.dir}&lt;/directory&gt;
&gt;&gt; +                &lt;/fileset&gt;
&gt;&gt; +              &lt;/filesets&gt;
&gt;&gt; +            &lt;/configuration&gt;
&gt;&gt; +          &lt;/plugin&gt;
&gt;&gt; +        &lt;/plugins&gt;
&gt;&gt; +      &lt;/build&gt;
&gt;&gt; +    &lt;/profile&gt;
&gt;&gt; +    &lt;profile&gt;
&gt;&gt;       &lt;id&gt;headless&lt;/id&gt;
&gt;&gt;       &lt;build&gt;
&gt;&gt;         &lt;plugins&gt;
&gt;&gt; @@ -466,5 +484,6 @@
&gt;&gt;   &lt;properties&gt;
&gt;&gt;     &lt;tomcat5x.version&gt;5.5.27&lt;/tomcat5x.version&gt;
&gt;&gt;     &lt;cargo.wait&gt;false&lt;/cargo.wait&gt;
&gt;&gt; +    &lt;cargo.install.dir&gt;cargo-installs&lt;/cargo.install.dir&gt;
&gt;&gt;   &lt;/properties&gt;
&gt;&gt;  &lt;/project&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r834415 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test:	./ ReadMe.txt pom.xml</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c8667b1bd0911101952s6ae356fam497e571f36f14f6b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0911101952s6ae356fam497e571f36f14f6b@mail-gmail-com%3e</id>
<updated>2009-11-11T03:52:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Brett,

This fails when running the webapp-tests as part of the build (e.g. mvn
clean install -Pit from the root), it looks like the Tomcat installation
isn't unzipped in the correct path..

Thanks,
Deng

On Tue, Nov 10, 2009 at 6:26 PM, &lt;brett@apache.org&gt; wrote:

&gt; Author: brett
&gt; Date: Tue Nov 10 10:26:23 2009
&gt; New Revision: 834415
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=834415&amp;view=rev
&gt; Log:
&gt; store cargo installations outside target to avoid re-downloading
&gt;
&gt; Modified:
&gt;    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/   (props
&gt; changed)
&gt;    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt;    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt;
&gt; Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/
&gt;
&gt; ------------------------------------------------------------------------------
&gt; --- svn:ignore (original)
&gt; +++ svn:ignore Tue Nov 10 10:26:23 2009
&gt; @@ -6,3 +6,4 @@
&gt;  .settings
&gt;  .classpath
&gt;  .project
&gt; +cargo-installs
&gt;
&gt; Modified:
&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt; URL:
&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;
&gt; ==============================================================================
&gt; ---
&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt
&gt; (original)
&gt; +++
&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/ReadMe.txt Tue
&gt; Nov 10 10:26:23 2009
&gt; @@ -9,7 +9,11 @@
&gt;   - modify src/test/resources/testng.properties as needed
&gt;   - mvn clean install -Dcontainer-existing
&gt;
&gt; +The Cargo installations are stored outside of target to avoid multiple
&gt; downloads.
&gt; +To remove the Cargo installations and re-download them next run, use:
&gt; +  - mvn -Pclean-cargo clean
&gt; +
&gt;  For the default values in the scripts, to pass all the tests, you need to
&gt; add an artifact in internal repository.
&gt;
&gt;  Run Selenium tests in src/test/it with Maven and JUnit
&gt; -  - mvn clean install -f junit-pom.xml
&gt; \ No newline at end of file
&gt; +  - mvn clean install -f junit-pom.xml
&gt;
&gt; Modified:
&gt; archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt; URL:
&gt; http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml?rev=834415&amp;r1=834414&amp;r2=834415&amp;view=diff
&gt;
&gt; ==============================================================================
&gt; --- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt; (original)
&gt; +++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/pom.xml
&gt; Tue Nov 10 10:26:23 2009
&gt; @@ -265,7 +265,7 @@
&gt;                       &lt;fileset dir="src/test/${container.name}" /&gt;
&gt;                     &lt;/copy&gt;
&gt;                     &lt;copy
&gt; -                      todir="${project.build.directory}/installs/${
&gt; container.name
&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib"&gt;
&gt; +                      todir="${cargo.install.dir}/${container.name
&gt; }/apache-tomcat-${tomcat5x.version}/apache-tomcat-${tomcat5x.version}/common/lib"&gt;
&gt;                       &lt;fileset
&gt; dir="${project.build.directory}/providedDependencies"&gt;
&gt;                         &lt;include name="**/*.jar" /&gt;
&gt;                       &lt;/fileset&gt;
&gt; @@ -317,7 +317,7 @@
&gt;                 &lt;containerId&gt;${container.name}&lt;/containerId&gt;
&gt;                 &lt;zipUrlInstaller&gt;
&gt;                   &lt;url&gt;${container.url}&lt;/url&gt;
&gt; -                  &lt;installDir&gt;${project.build.directory}/installs/${
&gt; container.name}&lt;/installDir&gt;
&gt; +                  &lt;installDir&gt;${cargo.install.dir}/${container.name
&gt; }&lt;/installDir&gt;
&gt;                 &lt;/zipUrlInstaller&gt;
&gt;                 &lt;log&gt;${project.build.directory}/logs/${container.name
&gt; }.log&lt;/log&gt;
&gt;                 &lt;output&gt;${project.build.directory}/logs/${container.name
&gt; }.out&lt;/output&gt;
&gt; @@ -443,6 +443,24 @@
&gt;       &lt;/properties&gt;
&gt;     &lt;/profile&gt;
&gt;     &lt;profile&gt;
&gt; +      &lt;id&gt;clean-cargo&lt;/id&gt;
&gt; +      &lt;build&gt;
&gt; +        &lt;plugins&gt;
&gt; +          &lt;plugin&gt;
&gt; +            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&gt; +            &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
&gt; +            &lt;configuration&gt;
&gt; +              &lt;filesets&gt;
&gt; +                &lt;fileset&gt;
&gt; +                  &lt;directory&gt;${cargo.install.dir}&lt;/directory&gt;
&gt; +                &lt;/fileset&gt;
&gt; +              &lt;/filesets&gt;
&gt; +            &lt;/configuration&gt;
&gt; +          &lt;/plugin&gt;
&gt; +        &lt;/plugins&gt;
&gt; +      &lt;/build&gt;
&gt; +    &lt;/profile&gt;
&gt; +    &lt;profile&gt;
&gt;       &lt;id&gt;headless&lt;/id&gt;
&gt;       &lt;build&gt;
&gt;         &lt;plugins&gt;
&gt; @@ -466,5 +484,6 @@
&gt;   &lt;properties&gt;
&gt;     &lt;tomcat5x.version&gt;5.5.27&lt;/tomcat5x.version&gt;
&gt;     &lt;cargo.wait&gt;false&lt;/cargo.wait&gt;
&gt; +    &lt;cargo.install.dir&gt;cargo-installs&lt;/cargo.install.dir&gt;
&gt;   &lt;/properties&gt;
&gt;  &lt;/project&gt;
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing unit tests on Windows</title>
<author><name>Martin Cooper &lt;martinc@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c16d6c6200911021755l7b39a5e9tac7d556d4036248d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c16d6c6200911021755l7b39a5e9tac7d556d4036248d@mail-gmail-com%3e</id>
<updated>2009-11-03T01:55:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Nov 2, 2009 at 5:45 PM, Deng Ching &lt;oching@apache.org&gt; wrote:
&gt; Hi Martin,
&gt;
&gt; I'll look into these failing tests.

Thanks!

&gt; Do you know which module who's tests are
&gt; failing due to checking for the day of the month?

The problem is in AbstractUpdatePolicy, in the DAILY section of
applyPolicy. There's an adjustment subtracting 1 from DAY_OF_MONTH
that seems to do strange things on the 1st of the month.

&gt; (I think this calls for a Windows build agent in our CI server (Continuum)
&gt; in vmbuild so we could keep track of these..)

Funny - that's what Brett said a few minutes ago. :-)

&gt; Thanks for the heads up! :)

You're welcome. :-)

--
Martin Cooper


&gt; -Deng
&gt;
&gt; On Tue, Nov 3, 2009 at 8:21 AM, Martin Cooper &lt;martinc@apache.org&gt; wrote:
&gt;
&gt;&gt; I'm trying to build Archiva for the first time in a long time, and am
&gt;&gt; running into some unit test failures that are quite probably Windows
&gt;&gt; only. The problem is that trying to track these down quickly leads
&gt;&gt; into Nexus code and thence into Lucene code, so I'm looking for ideas
&gt;&gt; from someone who knows the code better than I do (which is probably
&gt;&gt; pretty much everyone else here).
&gt;&gt;
&gt;&gt; The (first) problem occurs in ArchivaIndexingTaskExecutorTest, in the
&gt;&gt; tearDown method. Here's the relevant chunk of code:
&gt;&gt;
&gt;&gt;        context.close( false );
&gt;&gt;
&gt;&gt;        // delete created index in the repository
&gt;&gt;        File indexDir = new File( repositoryConfig.getLocation(), ".indexer"
&gt;&gt; );
&gt;&gt;        FileUtils.deleteDirectory( indexDir );
&gt;&gt;        assertFalse( indexDir.exists() );
&gt;&gt;
&gt;&gt; The deleteDirectory() call throws an exception because it cannot
&gt;&gt; delete a file (_1.cfs) in that directory, which would happen when the
&gt;&gt; file is still open. This means that either the context.close() method
&gt;&gt; didn't do its thing properly or something earlier on didn't clean up
&gt;&gt; after itself. Unfortunately, that context.close() call leads directly
&gt;&gt; into Nexus, and that in turn leads quickly into Lucene. I'm not about
&gt;&gt; to start debugging either of those. (Debugging this is hard enough
&gt;&gt; when I can't generate the IDEA project because I can't build Archiva
&gt;&gt; in the first place!)
&gt;&gt;
&gt;&gt; I'm not sure where to go from here. Skipping the deletion causes
&gt;&gt; subsequent failures, and since the problem is an unclosed file,
&gt;&gt; there's a bug somewhere that needs to be fixed. Almost certainly,
&gt;&gt; other people are not seeing it because *nix has different ideas about
&gt;&gt; deleting open files.
&gt;&gt;
&gt;&gt; Oh - there are other "nearby" tests that are failing, but I'm not sure
&gt;&gt; if they're related to this problem or not. Also, there are other
&gt;&gt; non-nearby test failures that I was trying to track down yesterday,
&gt;&gt; but those are not showing up today because it is no longer the 1st of
&gt;&gt; the month. (Yes, I'm serious.)
&gt;&gt;
&gt;&gt; Thoughts?
&gt;&gt;
&gt;&gt; --
&gt;&gt; Martin Cooper
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing unit tests on Windows</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c8667b1bd0911021745j3c347eb0n54addb64b2ba021a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0911021745j3c347eb0n54addb64b2ba021a@mail-gmail-com%3e</id>
<updated>2009-11-03T01:45:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Martin,

I'll look into these failing tests. Do you know which module who's tests are
failing due to checking for the day of the month?
(I think this calls for a Windows build agent in our CI server (Continuum)
in vmbuild so we could keep track of these..)

Thanks for the heads up! :)

-Deng

On Tue, Nov 3, 2009 at 8:21 AM, Martin Cooper &lt;martinc@apache.org&gt; wrote:

&gt; I'm trying to build Archiva for the first time in a long time, and am
&gt; running into some unit test failures that are quite probably Windows
&gt; only. The problem is that trying to track these down quickly leads
&gt; into Nexus code and thence into Lucene code, so I'm looking for ideas
&gt; from someone who knows the code better than I do (which is probably
&gt; pretty much everyone else here).
&gt;
&gt; The (first) problem occurs in ArchivaIndexingTaskExecutorTest, in the
&gt; tearDown method. Here's the relevant chunk of code:
&gt;
&gt;        context.close( false );
&gt;
&gt;        // delete created index in the repository
&gt;        File indexDir = new File( repositoryConfig.getLocation(), ".indexer"
&gt; );
&gt;        FileUtils.deleteDirectory( indexDir );
&gt;        assertFalse( indexDir.exists() );
&gt;
&gt; The deleteDirectory() call throws an exception because it cannot
&gt; delete a file (_1.cfs) in that directory, which would happen when the
&gt; file is still open. This means that either the context.close() method
&gt; didn't do its thing properly or something earlier on didn't clean up
&gt; after itself. Unfortunately, that context.close() call leads directly
&gt; into Nexus, and that in turn leads quickly into Lucene. I'm not about
&gt; to start debugging either of those. (Debugging this is hard enough
&gt; when I can't generate the IDEA project because I can't build Archiva
&gt; in the first place!)
&gt;
&gt; I'm not sure where to go from here. Skipping the deletion causes
&gt; subsequent failures, and since the problem is an unclosed file,
&gt; there's a bug somewhere that needs to be fixed. Almost certainly,
&gt; other people are not seeing it because *nix has different ideas about
&gt; deleting open files.
&gt;
&gt; Oh - there are other "nearby" tests that are failing, but I'm not sure
&gt; if they're related to this problem or not. Also, there are other
&gt; non-nearby test failures that I was trying to track down yesterday,
&gt; but those are not showing up today because it is no longer the 1st of
&gt; the month. (Yes, I'm serious.)
&gt;
&gt; Thoughts?
&gt;
&gt; --
&gt; Martin Cooper
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Failing unit tests on Windows</title>
<author><name>Martin Cooper &lt;martinc@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200911.mbox/%3c16d6c6200911021621r7fa30a33lb4f8e3ddba246deb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c16d6c6200911021621r7fa30a33lb4f8e3ddba246deb@mail-gmail-com%3e</id>
<updated>2009-11-03T00:21:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm trying to build Archiva for the first time in a long time, and am
running into some unit test failures that are quite probably Windows
only. The problem is that trying to track these down quickly leads
into Nexus code and thence into Lucene code, so I'm looking for ideas
from someone who knows the code better than I do (which is probably
pretty much everyone else here).

The (first) problem occurs in ArchivaIndexingTaskExecutorTest, in the
tearDown method. Here's the relevant chunk of code:

        context.close( false );

        // delete created index in the repository
        File indexDir = new File( repositoryConfig.getLocation(), ".indexer" );
        FileUtils.deleteDirectory( indexDir );
        assertFalse( indexDir.exists() );

The deleteDirectory() call throws an exception because it cannot
delete a file (_1.cfs) in that directory, which would happen when the
file is still open. This means that either the context.close() method
didn't do its thing properly or something earlier on didn't clean up
after itself. Unfortunately, that context.close() call leads directly
into Nexus, and that in turn leads quickly into Lucene. I'm not about
to start debugging either of those. (Debugging this is hard enough
when I can't generate the IDEA project because I can't build Archiva
in the first place!)

I'm not sure where to go from here. Skipping the deletion causes
subsequent failures, and since the problem is an unclosed file,
there's a bug somewhere that needs to be fixed. Almost certainly,
other people are not seeing it because *nix has different ideas about
deleting open files.

Oh - there are other "nearby" tests that are failing, but I'm not sure
if they're related to this problem or not. Also, there are other
non-nearby test failures that I was trying to track down yesterday,
but those are not showing up today because it is no longer the 1st of
the month. (Yes, I'm serious.)

Thoughts?

--
Martin Cooper


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proposal: concurrent remote-requests / &quot;ASF Certified Maven Repository&quot;</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3cA495FACE-5D22-4F75-A2AB-E3C2E2078A65@apache.org%3e"/>
<id>urn:uuid:%3cA495FACE-5D22-4F75-A2AB-E3C2E2078A65@apache-org%3e</id>
<updated>2009-10-19T06:43:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 15/10/2009, at 7:00 PM, Marc Lustig wrote:

&gt; For companies, this would be a compelling feature! I (working for  
&gt; insurances
&gt; and banks) often hear the argument "of boy - they are downloading  
&gt; software
&gt; from some obscure server from russia". Having the label "Certified  
&gt; Maven
&gt; Repository" would surely make those noises more silent :-)
&gt; The ASF could release a rule-set that the Maven-repo must conform to  
&gt; in
&gt; order to get the "certified" label.

This isn't really in the ASF's mission to provide. Everyone is going  
to have their own rules for what is certified - there are varying  
levels of trust, even if you verify it comes from the project itself  
(for example, see Eclipse's IP verification process).

In this case you are better off having a dedicated group of people  
approving third party artifacts to arrive into Archiva for use by  
others, and limiting proxy access outside. You can obviously do this  
manually in Archiva now, though ideally you want a "quarantine" area  
where they can be retrieved and await approval with a decent workflow  
for moving them into an accessible repository.

- Brett


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proposal: concurrent remote-requests / &quot;ASF Certified Maven Repository&quot;</title>
<author><name>Marc Lustig &lt;ml@marclustig.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c25904406.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25904406-post@talk-nabble-com%3e</id>
<updated>2009-10-15T08:00:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

thanks Brett for the input.
I can confirm that using black and white lists the case is rather rare when
all remote-repos are searched sequentially and the artifact is not found in
the end. However it is typical for some scenarios e. g. when you enable the
source-jars to get downloaded for a project. From 40 deps, maybe 5 will have
source-jars available. In that way a simple mvn-goal takes 30 minutes or
more.

I mentioned the timeout just to have a maximum value.  Of course usually the
requests don't run in a timeout (except when the repo is down) - the average
response time is maybe 3-4 secs (for our installation).

Also it is clear that the first-serve concept conflicts with the existing
concept of an (ordered) list of repos that is searched for.
Can we not assume that artifacts with a given spec. are identical from
whatever repo they come, provided the hash is matching?

Btw., this brings up another idea: could the ASF possibly grant "official"
certificates for remote-repos?
In that way, Archiva could distinguish between trusted and non-trusted
repos.
For companies, this would be a compelling feature! I (working for insurances
and banks) often hear the argument "of boy - they are downloading software
from some obscure server from russia". Having the label "Certified Maven
Repository" would surely make those noises more silent :-)
The ASF could release a rule-set that the Maven-repo must conform to in
order to get the "certified" label.
Or even better, the ASF could offer a VMware-image that includes all the
software ready to run the Maven-repo - including some logic to verify that
known artifacts are mirrored correctly. A total control of repos is not
possible, of course. But the contract between Archiva and the remote repo
could be tightened pretty much.


Back to the concurrent requests idea: sending the HEAD request before the
actual GET is surely a good idea. Archiva could decide to which repo to send
the GET based on the shortest response-time.
Anyway, this feature needs more brainstorming...




brettporter wrote:
&gt; 
&gt; On 15/10/2009, at 12:06 AM, Marc Lustig wrote:
&gt; 
&gt;&gt;
&gt;&gt; Hi all,
&gt;&gt;
&gt;&gt; we have configured about 25 remote-repos for our public-artifacts  
&gt;&gt; managed
&gt;&gt; repo.
&gt;&gt; In certain cases, black and white lists don't help and a request is  
&gt;&gt; proxied
&gt;&gt; to all the 20 remote-repos _sequentially_. Even thou we have  
&gt;&gt; configured a
&gt;&gt; short timeout of 5 secs, this takes 125 secs in case the artifacts  
&gt;&gt; doesn't
&gt;&gt; exist in any remote-repo - per artifact!
&gt;&gt;
&gt;&gt; So I was wondering if it would make sense to send requests to all of  
&gt;&gt; the
&gt;&gt; remote-repos _concurrently_.
&gt;&gt; The first thread that find the artifacts could cause all the other  
&gt;&gt; threads
&gt;&gt; to cancel the http-request.
&gt;&gt; The total request time would reduce from 100 secs++ to merely 5 secs.
&gt;&gt; Tremendous win or?
&gt;&gt;
&gt;&gt; Has this been discussed before?
&gt; 
&gt; I think this is a pretty unusual case. I don't quite understand why  
&gt; you are hitting the timeout limit on the remote repo - if they are up  
&gt; they should be fast. Also, "first that finds" is different to the  
&gt; current rule since it's first that appears in the list. I worry that  
&gt; in this set up you're not entirely sure which repository the artifacts  
&gt; are meant to be coming from, so maybe it points to another problem.
&gt; 
&gt;&gt; Is there an argument against this strategy?
&gt; 
&gt; Particularly if we turned on streaming of the proxied download to the  
&gt; client (which is intended) - we couldn't do so if they were pooled  
&gt; like this, unless we accepted the "first found rule".
&gt; 
&gt; That said, this might speed up requests with a long list of proxies,  
&gt; even if they are functioning properly. So it might be reasonable as an  
&gt; optional capability. One thing to consider would be doing a HEAD  
&gt; request instead of a GET for all the remotes first to select where to  
&gt; download from, then execute the GET from the desired one.
&gt; 
&gt; - Brett
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Proposal%3A-concurrent-remote-requests-tp25890731p25904406.html
Sent from the archiva-dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824677 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src:	main/java/org/apache/maven/archiva/webdav/ test/java/org/apache/maven/archiva/webdav/	test/resources/</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c8667b1bd0910150008x110dc2a7q782785d2b5b9a842@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0910150008x110dc2a7q782785d2b5b9a842@mail-gmail-com%3e</id>
<updated>2009-10-15T07:08:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Oct 14, 2009 at 11:40 PM, Brett Porter &lt;brett@apache.org&gt; wrote:

&gt;
&gt;
&gt;&gt;&gt;       // MRM-872 : merge all available metadata
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;      // merge metadata only when requested via the repo group
&gt;&gt;&gt;&gt; -        if ( ( repositoryRequest.isMetadata( requestedResource ) || (
&gt;&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) )
&gt;&gt;&gt;&gt; -            &amp;&amp; repoGroupConfig != null )
&gt;&gt;&gt;&gt; +        if ( ( repositoryRequest.isMetadata( requestedResource ) || (
&gt;&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) ) &amp;&amp;
&gt;&gt;&gt;&gt; +            repoGroupConfig != null )
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; Should this use "isSupportFile" like below? That will cover the two
&gt;&gt;&gt; metadata checksums
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; .. but it will also get the other non-metadata checksum files so I don't
&gt;&gt; think we can use isSupportFile(..) here
&gt;&gt;
&gt;&gt;
&gt; ok - could the check be moved to the repository request (eg,
&gt; isMetadataSupportFile), so that it is all in one spot?


ok, will move this one over..


&gt;
&gt;
&gt;
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; @@ -482,6 +496,35 @@
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;          if ( request.getMethod().equals( HTTP_PUT_METHOD ) )
&gt;&gt;&gt;&gt;          {
&gt;&gt;&gt;&gt; +                String resourcePath = logicalResource.getPath();
&gt;&gt;&gt;&gt; +
&gt;&gt;&gt;&gt; +                // check if target repo is enabled for releases
&gt;&gt;&gt;&gt; +                // we suppose that release-artifacts can deployed only
&gt;&gt;&gt;&gt; to
&gt;&gt;&gt;&gt; repos enabled for releases
&gt;&gt;&gt;&gt; +                if ( managedRepository.getRepository().isReleases() &amp;&amp;
&gt;&gt;&gt;&gt; !repositoryRequest.isMetadata( resourcePath ) &amp;&amp;
&gt;&gt;&gt;&gt; +                    !repositoryRequest.isSupportFile( resourcePath ) )
&gt;&gt;&gt;&gt; +                {
&gt;&gt;&gt;&gt; +                    ArtifactReference artifact = null;
&gt;&gt;&gt;&gt; +                    try
&gt;&gt;&gt;&gt; +                    {
&gt;&gt;&gt;&gt; +                        artifact =
&gt;&gt;&gt;&gt; managedRepository.toArtifactReference(
&gt;&gt;&gt;&gt; resourcePath );
&gt;&gt;&gt;&gt; +                    }
&gt;&gt;&gt;&gt; +                    catch ( LayoutException e )
&gt;&gt;&gt;&gt; +                    {
&gt;&gt;&gt;&gt; +                        throw new DavException(
&gt;&gt;&gt;&gt; HttpServletResponse.SC_BAD_REQUEST, e );
&gt;&gt;&gt;&gt; +                    }
&gt;&gt;&gt;&gt; +
&gt;&gt;&gt;&gt; +                    if ( !VersionUtil.isSnapshot( artifact.getVersion()
&gt;&gt;&gt;&gt; )
&gt;&gt;&gt;&gt; )
&gt;&gt;&gt;&gt; +                    {
&gt;&gt;&gt;&gt; +                        // check if artifact already exists
&gt;&gt;&gt;&gt; +                        if ( managedRepository.hasContent( artifact ) )
&gt;&gt;&gt;&gt; +                        {
&gt;&gt;&gt;&gt; +                            log.warn( "Overwriting released artifacts
&gt;&gt;&gt;&gt; is
&gt;&gt;&gt;&gt; not allowed." );
&gt;&gt;&gt;&gt; +                            throw new
&gt;&gt;&gt;&gt; ReleaseArtifactAlreadyExistsException( managedRepository.getId(),
&gt;&gt;&gt;&gt; +
&gt;&gt;&gt;&gt;   "Overwriting released artifacts is not allowed." );
&gt;&gt;&gt;&gt; +                        }
&gt;&gt;&gt;&gt; +                    }
&gt;&gt;&gt;&gt; +                }
&gt;&gt;&gt;&gt; +
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; Is it necessarily a bad request if the reference can't be derived, or
&gt;&gt;&gt; should the check just be skipped?
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; I don't think this is just a check though but it's for getting the
&gt;&gt; artifact
&gt;&gt; object and its coordinates. Maybe we could add a fall back for getting the
&gt;&gt; artifact obj &amp; its coordinates when a LayoutException is thrown instead of
&gt;&gt; immediately propagating it as a bad request error?
&gt;&gt;
&gt;
&gt; The check I meant was the VersionUtil bit.
&gt;
&gt; Say you are trying to store /foo.txt using webdav, which is not a valid
&gt; artifact. I believe this was still allowed previously (though I might be
&gt; wrong) - but now it will be a bad request because of the artifact path, when
&gt; all it needs that for is to check if it is a release. Does that make sense?


Ok, I get it now :) I think we still need to check if the version is a
SNAPSHOT or not though, and block deployment if it is a released artifact or
an invalid artifact (LayoutException is thrown) as long as it already exists
in the repository. We're also using the artifact reference to check if it is
in the repository so it's not just the version we're using. I'll see if
there's another way to do this.

Thanks,
Deng


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proposal: concurrent remote-requests</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3cDC09408F-63CB-44A7-A035-552AAE69AB05@apache.org%3e"/>
<id>urn:uuid:%3cDC09408F-63CB-44A7-A035-552AAE69AB05@apache-org%3e</id>
<updated>2009-10-14T23:02:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 15/10/2009, at 12:06 AM, Marc Lustig wrote:

&gt;
&gt; Hi all,
&gt;
&gt; we have configured about 25 remote-repos for our public-artifacts  
&gt; managed
&gt; repo.
&gt; In certain cases, black and white lists don't help and a request is  
&gt; proxied
&gt; to all the 20 remote-repos _sequentially_. Even thou we have  
&gt; configured a
&gt; short timeout of 5 secs, this takes 125 secs in case the artifacts  
&gt; doesn't
&gt; exist in any remote-repo - per artifact!
&gt;
&gt; So I was wondering if it would make sense to send requests to all of  
&gt; the
&gt; remote-repos _concurrently_.
&gt; The first thread that find the artifacts could cause all the other  
&gt; threads
&gt; to cancel the http-request.
&gt; The total request time would reduce from 100 secs++ to merely 5 secs.
&gt; Tremendous win or?
&gt;
&gt; Has this been discussed before?

I think this is a pretty unusual case. I don't quite understand why  
you are hitting the timeout limit on the remote repo - if they are up  
they should be fast. Also, "first that finds" is different to the  
current rule since it's first that appears in the list. I worry that  
in this set up you're not entirely sure which repository the artifacts  
are meant to be coming from, so maybe it points to another problem.

&gt; Is there an argument against this strategy?

Particularly if we turned on streaming of the proxied download to the  
client (which is intended) - we couldn't do so if they were pooled  
like this, unless we accepted the "first found rule".

That said, this might speed up requests with a long list of proxies,  
even if they are functioning properly. So it might be reasonable as an  
optional capability. One thing to consider would be doing a HEAD  
request instead of a GET for all the remotes first to select where to  
download from, then execute the GET from the desired one.

- Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824677 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src:  main/java/org/apache/maven/archiva/webdav/ test/java/org/apache/maven/archiva/webdav/  test/resources/</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c9EDE9FFD-8D14-4C79-829C-2B7E9C1F935A@apache.org%3e"/>
<id>urn:uuid:%3c9EDE9FFD-8D14-4C79-829C-2B7E9C1F935A@apache-org%3e</id>
<updated>2009-10-14T15:40:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 14/10/2009, at 7:03 PM, Deng Ching wrote:

&gt; Hi Brett,
&gt;
&gt; On Tue, Oct 13, 2009 at 8:49 PM, Brett Porter &lt;brett@apache.org&gt;  
&gt; wrote:
&gt;
&gt;&gt;
&gt;&gt; On 13/10/2009, at 9:36 PM, oching@apache.org wrote:
&gt;&gt;
&gt;&gt; -                resource =
&gt;&gt;&gt; -                    processRepositoryGroup( request,  
&gt;&gt;&gt; archivaLocator,
&gt;&gt;&gt; repoGroupConfig.getRepositories(),
&gt;&gt;&gt; -                                            activePrincipal,
&gt;&gt;&gt; resourcesInAbsolutePath );
&gt;&gt;&gt; +                try
&gt;&gt;&gt; +                {
&gt;&gt;&gt; +                    resource =
&gt;&gt;&gt; +                        processRepositoryGroup( request,  
&gt;&gt;&gt; archivaLocator,
&gt;&gt;&gt; repoGroupConfig.getRepositories(),
&gt;&gt;&gt; +                                                activePrincipal,
&gt;&gt;&gt; resourcesInAbsolutePath );
&gt;&gt;&gt; +                }
&gt;&gt;&gt; +                catch ( ReleaseArtifactAlreadyExistsException e )
&gt;&gt;&gt; +                {
&gt;&gt;&gt; +                    throw new DavException(
&gt;&gt;&gt; HttpServletResponse.SC_CONFLICT );
&gt;&gt;&gt; +                }
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; it might make more sense just to throw this at the source and  
&gt;&gt; eliminate the
&gt;&gt; exception, since the result is always the same?
&gt;
&gt;
&gt; agreed :)
&gt;
&gt;
&gt;&gt;
&gt;&gt;        // MRM-872 : merge all available metadata
&gt;&gt;&gt;       // merge metadata only when requested via the repo group
&gt;&gt;&gt; -        if ( ( repositoryRequest.isMetadata( requestedResource )  
&gt;&gt;&gt; || (
&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) )
&gt;&gt;&gt; -            &amp;&amp; repoGroupConfig != null )
&gt;&gt;&gt; +        if ( ( repositoryRequest.isMetadata( requestedResource )  
&gt;&gt;&gt; || (
&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) ) &amp;&amp;
&gt;&gt;&gt; +            repoGroupConfig != null )
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Should this use "isSupportFile" like below? That will cover the two
&gt;&gt; metadata checksums
&gt;
&gt;
&gt; .. but it will also get the other non-metadata checksum files so I  
&gt; don't
&gt; think we can use isSupportFile(..) here
&gt;

ok - could the check be moved to the repository request (eg,  
isMetadataSupportFile), so that it is all in one spot?

&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; @@ -482,6 +496,35 @@
&gt;&gt;&gt;
&gt;&gt;&gt;           if ( request.getMethod().equals( HTTP_PUT_METHOD ) )
&gt;&gt;&gt;           {
&gt;&gt;&gt; +                String resourcePath = logicalResource.getPath();
&gt;&gt;&gt; +
&gt;&gt;&gt; +                // check if target repo is enabled for releases
&gt;&gt;&gt; +                // we suppose that release-artifacts can deployed  
&gt;&gt;&gt; only to
&gt;&gt;&gt; repos enabled for releases
&gt;&gt;&gt; +                if ( managedRepository.getRepository().isReleases 
&gt;&gt;&gt; () &amp;&amp;
&gt;&gt;&gt; !repositoryRequest.isMetadata( resourcePath ) &amp;&amp;
&gt;&gt;&gt; +                    !repositoryRequest.isSupportFile 
&gt;&gt;&gt; ( resourcePath ) )
&gt;&gt;&gt; +                {
&gt;&gt;&gt; +                    ArtifactReference artifact = null;
&gt;&gt;&gt; +                    try
&gt;&gt;&gt; +                    {
&gt;&gt;&gt; +                        artifact =  
&gt;&gt;&gt; managedRepository.toArtifactReference(
&gt;&gt;&gt; resourcePath );
&gt;&gt;&gt; +                    }
&gt;&gt;&gt; +                    catch ( LayoutException e )
&gt;&gt;&gt; +                    {
&gt;&gt;&gt; +                        throw new DavException(
&gt;&gt;&gt; HttpServletResponse.SC_BAD_REQUEST, e );
&gt;&gt;&gt; +                    }
&gt;&gt;&gt; +
&gt;&gt;&gt; +                    if ( !VersionUtil.isSnapshot 
&gt;&gt;&gt; ( artifact.getVersion() )
&gt;&gt;&gt; )
&gt;&gt;&gt; +                    {
&gt;&gt;&gt; +                        // check if artifact already exists
&gt;&gt;&gt; +                        if ( managedRepository.hasContent 
&gt;&gt;&gt; ( artifact ) )
&gt;&gt;&gt; +                        {
&gt;&gt;&gt; +                            log.warn( "Overwriting released  
&gt;&gt;&gt; artifacts is
&gt;&gt;&gt; not allowed." );
&gt;&gt;&gt; +                            throw new
&gt;&gt;&gt; ReleaseArtifactAlreadyExistsException( managedRepository.getId(),
&gt;&gt;&gt; +
&gt;&gt;&gt;    "Overwriting released artifacts is not allowed." );
&gt;&gt;&gt; +                        }
&gt;&gt;&gt; +                    }
&gt;&gt;&gt; +                }
&gt;&gt;&gt; +
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Is it necessarily a bad request if the reference can't be derived, or
&gt;&gt; should the check just be skipped?
&gt;&gt;
&gt;
&gt; I don't think this is just a check though but it's for getting the  
&gt; artifact
&gt; object and its coordinates. Maybe we could add a fall back for  
&gt; getting the
&gt; artifact obj &amp; its coordinates when a LayoutException is thrown  
&gt; instead of
&gt; immediately propagating it as a bad request error?

The check I meant was the VersionUtil bit.

Say you are trying to store /foo.txt using webdav, which is not a  
valid artifact. I believe this was still allowed previously (though I  
might be wrong) - but now it will be a bad request because of the  
artifact path, when all it needs that for is to check if it is a  
release. Does that make sense?

&gt;
&gt;
&gt;&gt; Also, given this is a point release (1.2.3), I don't think this  
&gt;&gt; kind of
&gt;&gt; functionality change should be imposed on users - can we offer a
&gt;&gt; configuration option?
&gt;&gt;
&gt;
&gt; +1
&gt; I've left the issue open yesterday since this functionality also  
&gt; needs to be
&gt; applied to the web upload.
&gt;
&gt; Thanks,
&gt; Deng
&gt;

Thanks!

- Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>Proposal: concurrent remote-requests</title>
<author><name>Marc Lustig &lt;ml@marclustig.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c25890731.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25890731-post@talk-nabble-com%3e</id>
<updated>2009-10-14T13:06:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi all,

we have configured about 25 remote-repos for our public-artifacts managed
repo.
In certain cases, black and white lists don't help and a request is proxied
to all the 20 remote-repos _sequentially_. Even thou we have configured a
short timeout of 5 secs, this takes 125 secs in case the artifacts doesn't
exist in any remote-repo - per artifact!

So I was wondering if it would make sense to send requests to all of the
remote-repos _concurrently_.
The first thread that find the artifacts could cause all the other threads
to cancel the http-request.
The total request time would reduce from 100 secs++ to merely 5 secs.
Tremendous win or?

Has this been discussed before?
Is there an argument against this strategy?

The implementation could be based on a thread-pool, or rather a pool of
thread-pools.

greetings
Marc
-- 
View this message in context: http://www.nabble.com/Proposal%3A-concurrent-remote-requests-tp25890731p25890731.html
Sent from the archiva-dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824677 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src:	main/java/org/apache/maven/archiva/webdav/ test/java/org/apache/maven/archiva/webdav/	test/resources/</title>
<author><name>Deng Ching &lt;oching@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c8667b1bd0910140103m4a127c26g3f29d739f8c31458@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8667b1bd0910140103m4a127c26g3f29d739f8c31458@mail-gmail-com%3e</id>
<updated>2009-10-14T08:03:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Brett,

On Tue, Oct 13, 2009 at 8:49 PM, Brett Porter &lt;brett@apache.org&gt; wrote:

&gt;
&gt; On 13/10/2009, at 9:36 PM, oching@apache.org wrote:
&gt;
&gt;  -                resource =
&gt;&gt; -                    processRepositoryGroup( request, archivaLocator,
&gt;&gt; repoGroupConfig.getRepositories(),
&gt;&gt; -                                            activePrincipal,
&gt;&gt; resourcesInAbsolutePath );
&gt;&gt; +                try
&gt;&gt; +                {
&gt;&gt; +                    resource =
&gt;&gt; +                        processRepositoryGroup( request, archivaLocator,
&gt;&gt; repoGroupConfig.getRepositories(),
&gt;&gt; +                                                activePrincipal,
&gt;&gt; resourcesInAbsolutePath );
&gt;&gt; +                }
&gt;&gt; +                catch ( ReleaseArtifactAlreadyExistsException e )
&gt;&gt; +                {
&gt;&gt; +                    throw new DavException(
&gt;&gt; HttpServletResponse.SC_CONFLICT );
&gt;&gt; +                }
&gt;&gt;
&gt;
&gt;
&gt; it might make more sense just to throw this at the source and eliminate the
&gt; exception, since the result is always the same?


agreed :)


&gt;
&gt;         // MRM-872 : merge all available metadata
&gt;&gt;        // merge metadata only when requested via the repo group
&gt;&gt; -        if ( ( repositoryRequest.isMetadata( requestedResource ) || (
&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) )
&gt;&gt; -            &amp;&amp; repoGroupConfig != null )
&gt;&gt; +        if ( ( repositoryRequest.isMetadata( requestedResource ) || (
&gt;&gt; requestedResource.endsWith( "metadata.xml.sha1" ) ||
&gt;&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) ) &amp;&amp;
&gt;&gt; +            repoGroupConfig != null )
&gt;&gt;
&gt;
&gt; Should this use "isSupportFile" like below? That will cover the two
&gt; metadata checksums


.. but it will also get the other non-metadata checksum files so I don't
think we can use isSupportFile(..) here


&gt;
&gt;
&gt;  @@ -482,6 +496,35 @@
&gt;&gt;
&gt;&gt;            if ( request.getMethod().equals( HTTP_PUT_METHOD ) )
&gt;&gt;            {
&gt;&gt; +                String resourcePath = logicalResource.getPath();
&gt;&gt; +
&gt;&gt; +                // check if target repo is enabled for releases
&gt;&gt; +                // we suppose that release-artifacts can deployed only to
&gt;&gt; repos enabled for releases
&gt;&gt; +                if ( managedRepository.getRepository().isReleases() &amp;&amp;
&gt;&gt; !repositoryRequest.isMetadata( resourcePath ) &amp;&amp;
&gt;&gt; +                    !repositoryRequest.isSupportFile( resourcePath ) )
&gt;&gt; +                {
&gt;&gt; +                    ArtifactReference artifact = null;
&gt;&gt; +                    try
&gt;&gt; +                    {
&gt;&gt; +                        artifact = managedRepository.toArtifactReference(
&gt;&gt; resourcePath );
&gt;&gt; +                    }
&gt;&gt; +                    catch ( LayoutException e )
&gt;&gt; +                    {
&gt;&gt; +                        throw new DavException(
&gt;&gt; HttpServletResponse.SC_BAD_REQUEST, e );
&gt;&gt; +                    }
&gt;&gt; +
&gt;&gt; +                    if ( !VersionUtil.isSnapshot( artifact.getVersion() )
&gt;&gt; )
&gt;&gt; +                    {
&gt;&gt; +                        // check if artifact already exists
&gt;&gt; +                        if ( managedRepository.hasContent( artifact ) )
&gt;&gt; +                        {
&gt;&gt; +                            log.warn( "Overwriting released artifacts is
&gt;&gt; not allowed." );
&gt;&gt; +                            throw new
&gt;&gt; ReleaseArtifactAlreadyExistsException( managedRepository.getId(),
&gt;&gt; +
&gt;&gt;     "Overwriting released artifacts is not allowed." );
&gt;&gt; +                        }
&gt;&gt; +                    }
&gt;&gt; +                }
&gt;&gt; +
&gt;&gt;
&gt;
&gt; Is it necessarily a bad request if the reference can't be derived, or
&gt; should the check just be skipped?
&gt;

I don't think this is just a check though but it's for getting the artifact
object and its coordinates. Maybe we could add a fall back for getting the
artifact obj &amp; its coordinates when a LayoutException is thrown instead of
immediately propagating it as a bad request error?


&gt; Also, given this is a point release (1.2.3), I don't think this kind of
&gt; functionality change should be imposed on users - can we offer a
&gt; configuration option?
&gt;

+1
I've left the issue open yesterday since this functionality also needs to be
applied to the web upload.

Thanks,
Deng


&gt; Cheers,
&gt; Brett
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824677 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src: main/java/org/apache/maven/archiva/webdav/ test/java/org/apache/maven/archiva/webdav/ test/resources/</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c5D409FF3-84DF-4F8E-BA47-781D179D0E62@apache.org%3e"/>
<id>urn:uuid:%3c5D409FF3-84DF-4F8E-BA47-781D179D0E62@apache-org%3e</id>
<updated>2009-10-13T12:49:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 13/10/2009, at 9:36 PM, oching@apache.org wrote:

&gt; -                resource =
&gt; -                    processRepositoryGroup( request,  
&gt; archivaLocator, repoGroupConfig.getRepositories(),
&gt; -                                            activePrincipal,  
&gt; resourcesInAbsolutePath );
&gt; +                try
&gt; +                {
&gt; +                    resource =
&gt; +                        processRepositoryGroup( request,  
&gt; archivaLocator, repoGroupConfig.getRepositories(),
&gt; +                                                activePrincipal,  
&gt; resourcesInAbsolutePath );
&gt; +                }
&gt; +                catch ( ReleaseArtifactAlreadyExistsException e )
&gt; +                {
&gt; +                    throw new DavException 
&gt; ( HttpServletResponse.SC_CONFLICT );
&gt; +                }


it might make more sense just to throw this at the source and  
eliminate the exception, since the result is always the same?
&gt;         // MRM-872 : merge all available metadata
&gt;         // merge metadata only when requested via the repo group
&gt; -        if ( ( repositoryRequest.isMetadata( requestedResource ) ||  
&gt; ( requestedResource.endsWith( "metadata.xml.sha1" ) ||  
&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) )
&gt; -            &amp;&amp; repoGroupConfig != null )
&gt; +        if ( ( repositoryRequest.isMetadata( requestedResource ) ||  
&gt; ( requestedResource.endsWith( "metadata.xml.sha1" ) ||  
&gt; requestedResource.endsWith( "metadata.xml.md5" ) ) ) &amp;&amp;
&gt; +            repoGroupConfig != null )

Should this use "isSupportFile" like below? That will cover the two  
metadata checksums

&gt; @@ -482,6 +496,35 @@
&gt;
&gt;             if ( request.getMethod().equals( HTTP_PUT_METHOD ) )
&gt;             {
&gt; +                String resourcePath = logicalResource.getPath();
&gt; +
&gt; +                // check if target repo is enabled for releases
&gt; +                // we suppose that release-artifacts can deployed  
&gt; only to repos enabled for releases
&gt; +                if ( managedRepository.getRepository().isReleases()  
&gt; &amp;&amp; !repositoryRequest.isMetadata( resourcePath ) &amp;&amp;
&gt; +                    !repositoryRequest.isSupportFile 
&gt; ( resourcePath ) )
&gt; +                {
&gt; +                    ArtifactReference artifact = null;
&gt; +                    try
&gt; +                    {
&gt; +                        artifact =  
&gt; managedRepository.toArtifactReference( resourcePath );
&gt; +                    }
&gt; +                    catch ( LayoutException e )
&gt; +                    {
&gt; +                        throw new DavException 
&gt; ( HttpServletResponse.SC_BAD_REQUEST, e );
&gt; +                    }
&gt; +
&gt; +                    if ( !VersionUtil.isSnapshot 
&gt; ( artifact.getVersion() ) )
&gt; +                    {
&gt; +                        // check if artifact already exists
&gt; +                        if ( managedRepository.hasContent 
&gt; ( artifact ) )
&gt; +                        {
&gt; +                            log.warn( "Overwriting released  
&gt; artifacts is not allowed." );
&gt; +                            throw new  
&gt; ReleaseArtifactAlreadyExistsException( managedRepository.getId(),
&gt; + 
&gt;                                                                              "Overwriting

&gt;  released artifacts is not allowed." );
&gt; +                        }
&gt; +                    }
&gt; +                }
&gt; +

Is it necessarily a bad request if the reference can't be derived, or  
should the check just be skipped?

Also, given this is a point release (1.2.3), I don't think this kind  
of functionality change should be imposed on users - can we offer a  
configuration option?

Cheers,
Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: helping to implement MRM-1256</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3cF5621395-3FA3-4494-A6D5-C0D8F90E28FB@apache.org%3e"/>
<id>urn:uuid:%3cF5621395-3FA3-4494-A6D5-C0D8F90E28FB@apache-org%3e</id>
<updated>2009-10-13T12:31:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 13/10/2009, at 1:02 AM, Marc Lustig wrote:

&gt;
&gt;
&gt;
&gt; brettporter wrote:
&gt;&gt;
&gt;&gt;
&gt;&gt; On 13/10/2009, at 12:25 AM, Marc Lustig wrote:
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; can I help to implement this?
&gt;&gt;
&gt;&gt; of course!
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; What "event ideas for 1.3" was Brett refering to ?
&gt;&gt;&gt; any existing issue?
&gt;&gt;
&gt;&gt; http://cwiki.apache.org/confluence/display/ARCHIVA/Event+Framework
&gt;&gt; http://jira.codehaus.org/browse/MRM-976
&gt;&gt; http://svn.apache.org/viewvc/archiva/branches/MRM-976/branch-working-notes.txt?revision=706263&amp;view=markup
&gt;&gt;
&gt;&gt; Unfortunately work on this stalled some time back.
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I would prefer a generic solution to implement extension-point, in
&gt;&gt;&gt; the way I
&gt;&gt;&gt; proposed it.
&gt;&gt;&gt; One or another consumer may be used perhaps for one or another task.
&gt;&gt;&gt; But consumers run only on repo-scan, right?
&gt;&gt;&gt; Action events triggered on artifact-deployment are a different thing
&gt;&gt;&gt; and not
&gt;&gt;&gt; less important.
&gt;&gt;
&gt;&gt; I'd say if you've got an idea to go ahead with that - we can look at
&gt;&gt; it early and often and look to incorporate it. The above, if picked  
&gt;&gt; up
&gt;&gt; again, can still support it afterwards. Thanks!
&gt;&gt;
&gt;&gt; Cheers,
&gt;&gt; Brett
&gt;&gt;
&gt;
&gt; thanks Brett for the references.
&gt; So you mean the consumers-architecture could be and should be  
&gt; replaced by a
&gt; generic event-framework, that also provides other extension-points  
&gt; like the
&gt; ones I suggested?

That's my impression, yes.

&gt; That sounds pretty cool to me - but it's also a severe change -  
&gt; looks like a
&gt; bunch of work ;-)

Yes, and no. On the database refactoring branch I put in something  
very basic - I think if we start to introduce a central point to  
gather the handling, and introduce them in specific cases like the one  
you want, we can gradually introduce it.

&gt; Perhaps we can share the work load? Would you like to go ahead and
&gt; coordinate it?


I'm a bit swamped up until ApacheCon next month, but I'm happy to help  
you get started here, and I'm sure others are interested. If you  
wanted to share some ideas for how it might work I'm sure we can get  
something happening.

Cheers,
Brett





</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824220 - in /archiva/trunk/archiva-modules/archiva-base/archiva-repository-layer/src:  main/java/org/apache/maven/archiva/repository/scanner/functors/  test/java/org/apache/maven/archiva/repository/metadata/ test/java/org/apache/maven/</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3cFCC30761-41D4-407B-9FDB-73BB768C02BD@apache.org%3e"/>
<id>urn:uuid:%3cFCC30761-41D4-407B-9FDB-73BB768C02BD@apache-org%3e</id>
<updated>2009-10-13T04:08:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 13/10/2009, at 2:52 PM, Jevica Arianne Zurbano wrote:

&gt; On Tue, Oct 13, 2009 at 8:12 AM, Brett Porter &lt;brett@apache.org&gt;  
&gt; wrote:
&gt;
&gt;&gt;
&gt;&gt; On 12/10/2009, at 3:29 PM, jzurbano@apache.org wrote:
&gt;&gt;
&gt;&gt; -
&gt;&gt;&gt; /**
&gt;&gt;&gt; * ConsumerWantsFilePredicate
&gt;&gt;&gt; *
&gt;&gt;&gt; @@ -62,8 +63,19 @@
&gt;&gt;&gt;                   // Timestamp finished points to the last  
&gt;&gt;&gt; successful
&gt;&gt;&gt; scan, not this current one.
&gt;&gt;&gt;                   if ( basefile.lastModified() &lt; changesSince )
&gt;&gt;&gt;                   {
&gt;&gt;&gt; -                        // Skip file as no change has occured.
&gt;&gt;&gt; -                        satisfies = false;
&gt;&gt;&gt; +                        // MRM-1246
&gt;&gt;&gt; +                        // compares the lastModified of the  
&gt;&gt;&gt; version-level
&gt;&gt;&gt; (basefile) and the project-level (parent) metadata
&gt;&gt;&gt; +                        File parent =
&gt;&gt;&gt; basefile.getParentFile().getParentFile();
&gt;&gt;&gt; +
&gt;&gt;&gt; +                        if ( parent.lastModified() &gt;
&gt;&gt;&gt; basefile.lastModified() )
&gt;&gt;&gt; +                        {
&gt;&gt;&gt; +                            satisfies = true;
&gt;&gt;&gt; +                        }
&gt;&gt;&gt; +                        else
&gt;&gt;&gt; +                        {
&gt;&gt;&gt; +                            // Skip file as no change has occurred.
&gt;&gt;&gt; +                            satisfies = false;
&gt;&gt;&gt; +                        }
&gt;&gt;&gt;                   }
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; is this doing what it intends? It seems to be comparing the  
&gt;&gt; timestamp of
&gt;&gt; the parent directory, not the parent metadata file, and not all files
&gt;&gt; passing through the predicate are metadata files.
&gt;&gt;
&gt;
&gt; It does update the parent metadata file. But I missed that not all  
&gt; are of
&gt; metadata files.
&gt; Will make modifications for this to check the consumer type.

but basefile.getParentFile().getParentFile() is ".." for "maven- 
metadata.xml", ie a directory. I don't think it is checking the right  
timestamp. I also don't think building knowledge of the repository  
format into this level of abstraction is appropriate.

&gt;
&gt;
&gt;&gt;
&gt;&gt; Does disabling this change cause the tests to fail to verify they are
&gt;&gt; working?
&gt;&gt;
&gt;
&gt; I added a test to check the metadata before and after it has been  
&gt; updated.
&gt;
&gt; But I haven't added a test on the fix yet. I am still figuring out  
&gt; where to
&gt; put the test since
&gt; the test should include scanning with the consumer.
&gt;
&gt; However, the repo scanning tests are ran before the consumers are  
&gt; built.
&gt;
&gt; Any thoughts on this?

Usually you'd use a mock consumer to test whether it is called when  
expected.

- Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824220 - in /archiva/trunk/archiva-modules/archiva-base/archiva-repository-layer/src:	main/java/org/apache/maven/archiva/repository/scanner/functors/	test/java/org/apache/maven/archiva/repository/metadata/ test/java/org/apache/maven/</title>
<author><name>Jevica Arianne Zurbano &lt;jevica.arianne@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c535fdc8b0910122052l3450f058i3c3d2a8b1ca3d39@mail.gmail.com%3e"/>
<id>urn:uuid:%3c535fdc8b0910122052l3450f058i3c3d2a8b1ca3d39@mail-gmail-com%3e</id>
<updated>2009-10-13T03:52:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Oct 13, 2009 at 8:12 AM, Brett Porter &lt;brett@apache.org&gt; wrote:

&gt;
&gt; On 12/10/2009, at 3:29 PM, jzurbano@apache.org wrote:
&gt;
&gt;  -
&gt;&gt; /**
&gt;&gt;  * ConsumerWantsFilePredicate
&gt;&gt;  *
&gt;&gt; @@ -62,8 +63,19 @@
&gt;&gt;                    // Timestamp finished points to the last successful
&gt;&gt; scan, not this current one.
&gt;&gt;                    if ( basefile.lastModified() &lt; changesSince )
&gt;&gt;                    {
&gt;&gt; -                        // Skip file as no change has occured.
&gt;&gt; -                        satisfies = false;
&gt;&gt; +                        // MRM-1246
&gt;&gt; +                        // compares the lastModified of the version-level
&gt;&gt; (basefile) and the project-level (parent) metadata
&gt;&gt; +                        File parent =
&gt;&gt; basefile.getParentFile().getParentFile();
&gt;&gt; +
&gt;&gt; +                        if ( parent.lastModified() &gt;
&gt;&gt; basefile.lastModified() )
&gt;&gt; +                        {
&gt;&gt; +                            satisfies = true;
&gt;&gt; +                        }
&gt;&gt; +                        else
&gt;&gt; +                        {
&gt;&gt; +                            // Skip file as no change has occurred.
&gt;&gt; +                            satisfies = false;
&gt;&gt; +                        }
&gt;&gt;                    }
&gt;&gt;
&gt;
&gt; is this doing what it intends? It seems to be comparing the timestamp of
&gt; the parent directory, not the parent metadata file, and not all files
&gt; passing through the predicate are metadata files.
&gt;

It does update the parent metadata file. But I missed that not all are of
metadata files.
Will make modifications for this to check the consumer type.


&gt;
&gt; Does disabling this change cause the tests to fail to verify they are
&gt; working?
&gt;

I added a test to check the metadata before and after it has been updated.

But I haven't added a test on the fix yet. I am still figuring out where to
put the test since
the test should include scanning with the consumer.

However, the repo scanning tests are ran before the consumers are built.

Any thoughts on this?


&gt;
&gt; - Brett
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r824220 - in /archiva/trunk/archiva-modules/archiva-base/archiva-repository-layer/src: main/java/org/apache/maven/archiva/repository/scanner/functors/ test/java/org/apache/maven/archiva/repository/metadata/ test/java/org/apache/maven/archiv...</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3cD1502941-CE84-4100-98F2-481A54133484@apache.org%3e"/>
<id>urn:uuid:%3cD1502941-CE84-4100-98F2-481A54133484@apache-org%3e</id>
<updated>2009-10-13T00:12:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 12/10/2009, at 3:29 PM, jzurbano@apache.org wrote:

&gt; -
&gt; /**
&gt;  * ConsumerWantsFilePredicate
&gt;  *
&gt; @@ -62,8 +63,19 @@
&gt;                     // Timestamp finished points to the last  
&gt; successful scan, not this current one.
&gt;                     if ( basefile.lastModified() &lt; changesSince )
&gt;                     {
&gt; -                        // Skip file as no change has occured.
&gt; -                        satisfies = false;
&gt; +                        // MRM-1246
&gt; +                        // compares the lastModified of the version- 
&gt; level (basefile) and the project-level (parent) metadata
&gt; +                        File parent = basefile.getParentFile 
&gt; ().getParentFile();
&gt; +
&gt; +                        if ( parent.lastModified() &gt;  
&gt; basefile.lastModified() )
&gt; +                        {
&gt; +                            satisfies = true;
&gt; +                        }
&gt; +                        else
&gt; +                        {
&gt; +                            // Skip file as no change has occurred.
&gt; +                            satisfies = false;
&gt; +                        }
&gt;                     }

is this doing what it intends? It seems to be comparing the timestamp  
of the parent directory, not the parent metadata file, and not all  
files passing through the predicate are metadata files.

Does disabling this change cause the tests to fail to verify they are  
working?

- Brett



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: SvnPubSub websites -- need more volunteers</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c1C78BA9E-E973-4151-881B-73CAB4C8EF36@apache.org%3e"/>
<id>urn:uuid:%3c1C78BA9E-E973-4151-881B-73CAB4C8EF36@apache-org%3e</id>
<updated>2009-10-12T22:11:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Anyone?

On 01/10/2009, at 5:02 PM, Brett Porter wrote:

&gt; do we want to try this?
&gt;
&gt; Begin forwarded message:
&gt;
&gt;&gt; From: Paul Querna &lt;paul@querna.org&gt;
&gt;&gt; Date: 1 October 2009 4:46:17 PM AEST
&gt;&gt; To: infrastructure-dev@apache.org
&gt;&gt; Subject: SvnPubSub websites -- need more volunteers
&gt;&gt; Reply-To: infrastructure-dev@apache.org
&gt;&gt; list-id: &lt;infrastructure-dev.apache.org&gt;
&gt;&gt; message-id: &lt;4239a4320909302346m7d76c134j3efeea0ff816119e@mail.gmail.com 
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; apr.apache.org is now managed by SvnPubSub.
&gt;&gt;
&gt;&gt; I think we are ready to add more.
&gt;&gt;
&gt;&gt; Any volunteer TLPs?
&gt;&gt;
&gt;&gt; Once its done, any commit to your SVN repo for your site will be
&gt;&gt; automatically propagated to the live servers within seconds.
&gt;&gt;
&gt;&gt; Things i need to know:
&gt;&gt; - Path to Website Checkout
&gt;&gt; - If applicable, do you need a dev/dist directory
&gt;&gt; - Do you want a $tlp.staging.apache.org (Just maps to another SVN
&gt;&gt; url, like $tlp/site/branche/staging)
&gt;&gt;
&gt;&gt;
&gt;&gt; Notes to self current process:
&gt;&gt; - Add new paths to /etc/svnwcsub.conf
&gt;&gt; - Checkout svn paths to /x1/tmp
&gt;&gt; - mv /x1/www/$tlp  old-site &amp;&amp; mv /x1/tmp/$tlp /x1/www/$tlp
&gt;&gt; - chown -R svnwc /x1/www/$tlp
&gt;&gt; - /etc/init.d/svnwcsub restart
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: helping to implement MRM-1256</title>
<author><name>Marc Lustig &lt;ml@marclustig.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c25856366.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25856366-post@talk-nabble-com%3e</id>
<updated>2009-10-12T14:02:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>



brettporter wrote:
&gt; 
&gt; 
&gt; On 13/10/2009, at 12:25 AM, Marc Lustig wrote:
&gt; 
&gt;&gt;
&gt;&gt; can I help to implement this?
&gt; 
&gt; of course!
&gt; 
&gt;&gt;
&gt;&gt; What "event ideas for 1.3" was Brett refering to ?
&gt;&gt; any existing issue?
&gt; 
&gt; http://cwiki.apache.org/confluence/display/ARCHIVA/Event+Framework
&gt; http://jira.codehaus.org/browse/MRM-976
&gt; http://svn.apache.org/viewvc/archiva/branches/MRM-976/branch-working-notes.txt?revision=706263&amp;view=markup
&gt; 
&gt; Unfortunately work on this stalled some time back.
&gt; 
&gt;&gt;
&gt;&gt; I would prefer a generic solution to implement extension-point, in  
&gt;&gt; the way I
&gt;&gt; proposed it.
&gt;&gt; One or another consumer may be used perhaps for one or another task.
&gt;&gt; But consumers run only on repo-scan, right?
&gt;&gt; Action events triggered on artifact-deployment are a different thing  
&gt;&gt; and not
&gt;&gt; less important.
&gt; 
&gt; I'd say if you've got an idea to go ahead with that - we can look at  
&gt; it early and often and look to incorporate it. The above, if picked up  
&gt; again, can still support it afterwards. Thanks!
&gt; 
&gt; Cheers,
&gt; Brett
&gt; 

thanks Brett for the references. 
So you mean the consumers-architecture could be and should be replaced by a
generic event-framework, that also provides other extension-points like the
ones I suggested?
That sounds pretty cool to me - but it's also a severe change - looks like a
bunch of work ;-)
Perhaps we can share the work load? Would you like to go ahead and
coordinate it? 


-- 
View this message in context: http://www.nabble.com/helping-to-implement-MRM-1256-tp25855756p25856366.html
Sent from the archiva-dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: helping to implement MRM-1256</title>
<author><name>Brett Porter &lt;brett@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/archiva-dev/200910.mbox/%3c2D484467-F49E-4EE5-BB70-05CE646E6CC7@apache.org%3e"/>
<id>urn:uuid:%3c2D484467-F49E-4EE5-BB70-05CE646E6CC7@apache-org%3e</id>
<updated>2009-10-12T13:36:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On 13/10/2009, at 12:25 AM, Marc Lustig wrote:

&gt;
&gt; can I help to implement this?

of course!

&gt;
&gt; What "event ideas for 1.3" was Brett refering to ?
&gt; any existing issue?

http://cwiki.apache.org/confluence/display/ARCHIVA/Event+Framework
http://jira.codehaus.org/browse/MRM-976
http://svn.apache.org/viewvc/archiva/branches/MRM-976/branch-working-notes.txt?revision=706263&amp;view=markup

Unfortunately work on this stalled some time back.

&gt;
&gt; I would prefer a generic solution to implement extension-point, in  
&gt; the way I
&gt; proposed it.
&gt; One or another consumer may be used perhaps for one or another task.
&gt; But consumers run only on repo-scan, right?
&gt; Action events triggered on artifact-deployment are a different thing  
&gt; and not
&gt; less important.

I'd say if you've got an idea to go ahead with that - we can look at  
it early and often and look to incorporate it. The above, if picked up  
again, can still support it afterwards. Thanks!

Cheers,
Brett



</pre>
</div>
</content>
</entry>
</feed>
