Commit Graph

174 Commits

Author SHA1 Message Date
Maria Odea B. Ching 124fe26ea9 [MRM-453]
- Added tests for metadata driven snapshots in DaysOldRepositoryPurgeTest
- Added test data

Changes made in DaysOldRepositoryPurge:
- Added functionality to consider the metadata driven snapshots (check the timestamp in the filename first before the last modified date of the 
file if it is a unique versioned snapshot)



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@570089 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 12:27:13 +00:00
Maria Odea B. Ching 51e10b3364 Added plexus-slf4j-logging as dependency to fix test failure in MetadataToolsTest.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@570085 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 11:59:14 +00:00
Maria Odea B. Ching a19fe2147a Added TIMESTAMP_PATTERN variable to fix build error in archiva-repository-layer.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@570083 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 11:58:14 +00:00
Maria Odea B. Ching dd76a49078 [MRM-453]
- Added tests for RepositoryConsumer and CleanupReleasedSnapshotsRepositoryPurge
- Added test data for the new tests
- Refactored AbstractRepositoryPurgeTest, DaysOldRepositoryPurgeTest and RetentionCountRepositoryPurgeTest



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@569789 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 09:42:27 +00:00
Joakim Erdfelt 8887f9cbe9 [MRM-463] Metadata merging doesn't work.
Baseline Components for metadata merging.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@569760 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 03:26:00 +00:00
Joakim Erdfelt 05d0e9e6f5 Fixing subtle bug in PathUtil.toRelative() encountered during Metadata work.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@569758 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 03:16:11 +00:00
Brett Porter b525d2423a fix the test cases - we should be synchronizing on the current class, not the configuration object itself
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568618 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 14:15:38 +00:00
Maria Odea B. Ching 4ca6b3fe22 Synchronized save() and afterConfigurationChange() in DefaultArchivaConfiguration.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568531 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 09:44:38 +00:00
Maria Odea B. Ching e1a2228627 Added test for the changes in DefaultArchivaConfiguration (escape character '\' showing up in repositories.jsp)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568382 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 02:30:55 +00:00
Maria Odea B. Ching d00a9c7e1b - Updated the code for escaping/unescaping cron expressions in DefaultArchivaConfiguration as the escape character '\' is displayed in the
repositories.jsp 



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568146 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 14:35:15 +00:00
Maria Odea B. Ching 6cc476e103 [MRM-436]
- Added tests for the cron expression comma(',') fix



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566973 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 08:54:27 +00:00
Brett Porter c8571f77e2 [MRM-436] configuration tests don't always set database scanning fields, so add some null guards
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566959 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 07:47:06 +00:00
Maria Odea B. Ching db8685f9dd Added null check before closing the searcher.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566949 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 07:11:12 +00:00
Maria Odea B. Ching 2666b91c1b [MRM-436]
- Added '\' for the snapshots cron expression in default-archiva.xml to escape the ',' 
- (DefaultArchivaConfiguration) Added method for adding '\' to the cron expression if ',' exists before saving the configuration and method for 
removing '\' after the configuration is read from the configuration file



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566945 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 06:59:41 +00:00
Maria Odea B. Ching fb626a92e5 Moved searcher.close() in DefaultCrossRepositorySearch.searchAll(...) inside finally block.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566059 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 08:22:08 +00:00
Maria Odea B. Ching a3305c920a - MultiSearcher for index is not being closed causing too many files open error, added line for close searcher
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@565709 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 11:34:04 +00:00
Joakim Erdfelt f86d4d90d1 Correcting cache name.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@565485 13f79535-47bb-0310-9956-ffa450edef68
2007-08-13 19:42:05 +00:00
Joakim Erdfelt da086173f7 [MRM-465] (Load Testing) When asking for pages that require the effective-pom in high load, app becomes unresponsive.
Added an ehcache around the effective-pom resolution process.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@565484 13f79535-47bb-0310-9956-ffa450edef68
2007-08-13 19:40:06 +00:00
Brett Porter a658609b5c [MRM-456] permit having configuration in both sources as long as it doesn't contain any elements that might not save properly (lists)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@564135 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 08:24:40 +00:00
Maria Odea B. Ching d9ff71462a [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563101 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 10:38:34 +00:00
Maria Odea B. Ching 72c28b496c [maven-release-plugin] prepare release 1.0-beta-1
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563098 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 10:35:55 +00:00
Maria Odea B. Ching bdf4db75a9 Commented out tests due to test failures (needed for release).
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563095 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 10:21:29 +00:00
Maria Odea B. Ching 26df7922cd Commented assert in MavenProjectInfoReportsPluginDependencyGraphTest because of test failure.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563082 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 09:59:05 +00:00
Maria Odea B. Ching 7db1bd8f9d [MRM-294]
- Changed DefaultCleanupReleasedSnapshots to CleanupReleasedSnapshotsRepositoryPurge
- Removed unneeded fields in RepositoryPurgeConsumer
- Added constructor for DaysOldRepositoryPurge, RetentionCountRepositoryPurge and CleanupReleasedSnapshotsRepositoryPurge
- Updated test classes and test resources



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563064 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 08:22:35 +00:00
Maria Odea B. Ching 45ad3a396b [MRM-275]
- Added days older, retention count and delete released snapshots fields in repository page.
- Updated RepositoryPurgeConsumer



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@563030 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 05:45:38 +00:00
Maria Odea B. Ching 1a7b107c06 [MRM-294] and [MRM-275]
- Added the test cases which were left out during the initial commit
- Added DefaultCleanupReleasedSnapshots (m2 implementation for cleaning up snapshots that were already released)
- Updated the following files: archiva-core-consumers/pom.xml, RepositoryPurgeConsumer, DaysOldRepositoryPurge, RetentionCountRepositoryPurge and 
AbstractRepositoryPurge



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562882 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 15:08:44 +00:00
Maria Odea B. Ching 9dda4d03d3 [MRM-294] Repository purge
- Added RepositoryPurgeConsumer
- Added these other classes used in repo purge: DaysOldRepositoryPurge, RetentionCountRepositoryPurge, ArtifactFilenameFilter and 
RepositoryPurgeException
- Added tests and test data
- Added new fields in configuration.mdo (daysOlder and retentionCount)
- Added repository-purge as a consumer in default-archiva.xml (but currently commented out)



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562766 13f79535-47bb-0310-9956-ffa450edef68
2007-08-04 21:46:32 +00:00
Brett Porter 498d33c645 [MRM-451] correct regression in the change listener handling of the default configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562681 13f79535-47bb-0310-9956-ffa450edef68
2007-08-04 10:11:33 +00:00
Brett Porter 0dc2c29c92 [MRM-329] revised reporting actions
Submitted by: Teodoro Cue

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562511 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 16:02:00 +00:00
Brett Porter 19800f99da [MRM-430] revert configuration if it failed to save
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562488 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:48:18 +00:00
Joakim Erdfelt ad906608b7 * Updating my email address from joakim@erdfelt.com to my apache side email address at joakime@apache.org
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562485 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:44:15 +00:00
Joakim Erdfelt 419b6bd007 Fixing license header and adding statis serialVersionUID.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562482 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:37:47 +00:00
Joakim Erdfelt 480a2b7872 Correcting whitelist handling.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562477 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:33:35 +00:00
Joakim Erdfelt ded6d2666e Correcting whitelist handling.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562476 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:33:32 +00:00
Brett Porter 01350dc303 [MRM-430] configuration adjustments and tests
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562474 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:16:58 +00:00
Brett Porter b3f3de4a98 [MRM-347] locate the repositories under the data directory
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562370 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 07:39:18 +00:00
Brett Porter af94415b0e [MRM-347] prevent creating /${appserver.home} directory which is not populated under the appserver for some reason. The base directory is the appropriate location for data anyway - so these are the values that should have been used.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562369 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 07:36:53 +00:00
Brett Porter f8e12362f6 [MRM-412] support legacy layout requests
Submitted by: nicolas de loof

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562356 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 06:54:05 +00:00
Joakim Erdfelt 59cd555432 [MRM-329] The Reports link gives an HTTP 500
Patch by: Teodoro Cue Jr



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562233 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 20:02:27 +00:00
Maria Odea B. Ching 488303a9e8 [MRM-425 and MRM-426]
- Added and modified code for handling snapshots (if the versions of a specific artifact snapshot are only timestamped versions, add a 
generic snapshot which is pointing to the latest timestamp version) in DefaultRepositoryBrowsing and ProjectModelToDatabaseConsumer.
- Updated pom validations in ProjectModelToDatabaseConsumer - handling of timestamped versions were considered
- Added isUniqueSnapshot(..) and isGenericSnapshot(..) in VersionUtil
- Added new attribute 'modelVersion' in DependencyTreeTag to get the in-pom version. Did not use the version attribute so as to retain the 
actual version being browsed. Also updated DependencyTree
- Updated the ff. pages for the version to be displayed: artifactInfo.jspf, showArtifact.jsp, dependencyTree.jsp and artifactDecorator.jsp
- Updated the version in SearchResultHit



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@558795 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 16:48:30 +00:00
Fabrice Bellingard b1652e7034 Various <version> fixes in POMs after 1.0-alpha-2 release
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@550447 13f79535-47bb-0310-9956-ffa450edef68
2007-06-25 10:37:47 +00:00
Wendy Smoak c1ef06e2ab [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@550128 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 22:22:30 +00:00
Wendy Smoak 2023b7ee64 [maven-release-plugin] prepare release archiva-parent-1.0-alpha-2
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@550126 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 22:21:50 +00:00
Wendy Smoak 35123fcd01 MRM-421 Added a whitelist entry of '*' to the pre-configured internal -> central proxy connector so it will actually proxy. Without this, requests result in 'Failed pre-download policies' log messages.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@550008 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 04:07:39 +00:00
Wendy Smoak d0f4612596 MRM-422 Fix the directory name for the snapshots repository in the default config
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@550007 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 03:41:48 +00:00
Fabrice Bellingard 0d205a2db8 [MRM-418] Remove the network proxy example from default archiva.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@549497 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 14:37:48 +00:00
Maria Odea B. Ching 0c068d1f83 [MRM-409] Updated validation of poms.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@549048 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 10:21:47 +00:00
Joakim Erdfelt 0c58a1c253 Turning down the noise in the log.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548828 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 19:14:37 +00:00
Brett Porter ce3bd90a4a couple of small syntax fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548354 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 13:28:59 +00:00
Joakim Erdfelt 6405f2be6b [MRM-388] Unable to configure archiva if configuration file did not already exist
Correcting DatabaseUpgrade process that was causing the problem.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548151 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 00:54:16 +00:00