Commit Graph

88 Commits

Author SHA1 Message Date
Maria Odea B. Ching 68ec920cd9 [maven-release-plugin] prepare release archiva-1.0-beta-4
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593449 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 08:30:01 +00:00
Maria Odea B. Ching 352479d4c9 - Updated repository purge tests to reflect the changes made in r592297 as suggested in the dev list
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593081 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 09:03:44 +00:00
Maria Odea B. Ching c7cd97bf16 [MRM-576]
- modified logic for deleting released snapshots, delete only if there exists a released version of that snapshot not when there is a 
higher released/snapshot version
- adjusted tests


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@592657 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 09:02:58 +00:00
Maria Odea B. Ching 293bd8e2f2 [MRM-556]
- respect set retention count when purging by number of days old (used same logic for purging by retention count)
- updated edit managed repository validation for the number of days old minimum range
- adjusted DaysOldRepositoryPurgeTest for the changes


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@592297 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 06:16:12 +00:00
Joakim Erdfelt baf4c89435 [MRM-547] proxy connectors: cache failures options are confusing
[MRM-549] proxy connectors: no "always" option for releases and snapshots policies
Applying changes to policy naming per decisions made in dev@archiva mailing list.
Updating DefaultArchivaConfiguration.load() to automatically adjust old configuration settings to new values.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@590908 13f79535-47bb-0310-9956-ffa450edef68
2007-11-01 06:21:26 +00:00
Maria Odea B. Ching 0561ccc53d [MRM-544]
- remove artifact in index if artifact no longer exists in the file system
- added tests


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@590622 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 11:07:24 +00:00
Maria Odea B. Ching 76ca3a6797 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589972 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 06:18:56 +00:00
Maria Odea B. Ching 7cde1cdf00 [maven-release-plugin] prepare release archiva-1.0-beta-3
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589970 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 06:16:21 +00:00
Brett Porter 5445c18888 update TODO
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589528 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 07:10:39 +00:00
Maria Odea B. Ching 2395fea5f0 [MRM-454]
-synchronized the index operations in LuceneRepositoryContentIndex (used 'repository' as the lock) to avoid index locking
-added method for deleting artifacts from the index during repository purge
-updated repository purge tests


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588598 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 10:36:48 +00:00
Maria Odea B. Ching c5f4e5079b -Reverted version to 1.0-beta-3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588567 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 08:54:24 +00:00
Brett Porter 19afbc4ac8 [MRM-546] restore correct test data and fix configuration modifications
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587071 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 12:37:25 +00:00
Maria Odea B. Ching d2ceac7b0b [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586989 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 02:56:59 +00:00
Maria Odea B. Ching 44c44aa4f1 [maven-release-plugin] prepare release archiva-1.0-beta-3
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586987 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 02:54:10 +00:00
Maria Odea B. Ching 21a61ab5f9 [MRM-265]
- added method for deleting the artifacts in the db when a repo is deleted
- also deleted repo scan statistics when the repo is deleted
- created DAO that does retrieving, deleting and adding of RepositoryContentStatistics to the db
- added and updated tests



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586919 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 17:30:07 +00:00
Brett Porter d271660cc6 [MRM-555] scanner checks timestamps, but some consumers will want to consume artifacts regardless
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586827 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 02:43:26 +00:00
Joakim Erdfelt aa9ef1d3e6 Re-enabling tests now that MRM-535 is fixed.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586636 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 22:53:53 +00:00
Joakim Erdfelt 5242d36ec9 Cleaning up potential multi-threading issues with use of static SimpleDateFormat.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586472 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:21:13 +00:00
Joakim Erdfelt 766b613044 Removing unused pieces.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585586 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:28:01 +00:00
Joakim Erdfelt cd2c55d5c3 Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585579 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:14:25 +00:00
Joakim Erdfelt 84731f48bc Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585576 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:01:25 +00:00
Joakim Erdfelt b8ec325b49 Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585574 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:56:51 +00:00
Maria Odea B. Ching 657b328e5d removed usage of BidirectionalRepositoryLayout in database cleanup consumers, made use of the ManagedRepositoryContent instead
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585068 13f79535-47bb-0310-9956-ffa450edef68
2007-10-16 07:45:27 +00:00
Maria Odea B. Ching bc7e954a49 - removed print stack trace in DatabaseCleanupRemoveProjectConsumer
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585014 13f79535-47bb-0310-9956-ffa450edef68
2007-10-16 03:13:03 +00:00
Maria Odea B. Ching c577bbbaba [MRM-527]
- added test/conf/repository-manager.xml which was left out from previous commit (database cleanup)


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584745 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 11:35:35 +00:00
Maria Odea B. Ching 88e4896ee9 [MRM-37 and MRM-527]
- added code for cleaning up the database of artifacts that are no longer existing in the repository 
(DatabaseCleanupRemoveArtifactConsumer and DatabaseCleanupRemoveProjectConsumer)
- created tests for database cleanup of removed artifacts
- updated some of the test cases (in archiva-database and archiva-scheduled modules) to reflect the changes in thedb cleanup consumers 


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584735 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 11:16:38 +00:00
Joakim Erdfelt 78084521ec Removing BidirectionalRepositoryLayoutFactory usage.
Replacing with more reliable ManagedRepositoryContent operations.
Cleaning up logging output.
Using new ManagedRepositoryContent.toFile( ArchivaArtifact ) method.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584216 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 17:56:29 +00:00
Joakim Erdfelt 46f7d825da Fixed unit tests for RepositoryPurge as they were non-repeatable in an IDE environment.
Corrected the assumption that a Managed Repository is the same as a Local Repository. (re: maven-metadata-local.xml)
Streamlined asserts to be more clear .assertExists() .assertDeleted() when reading code and when error message is created.
Removed jdom direct usage in unit tests in favor of XMLUnit.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584213 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 17:49:40 +00:00
Joakim Erdfelt e799f29dc2 Removing usage of old layout objects.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@583625 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 21:42:03 +00:00
Joakim Erdfelt e6bf512368 [MRM-432] Proxy Connectors are unable to download artifacts with alpha numerical version numbers
[MRM-519] fail to resolve artifactId for libs that contain versionKeyword in artifactId, like "maven-test-plugin"
[MRM-518] Changing the internal repository directory has no effect
[MRM-512] Unable to convert null repository config to archiva repository.
[MRM-533] metadata-updater is changing lastUpdating timestamp when it shouldn't
[MRM-493] Downloaded artifacts are stored in incorrect archiva-managed repository
- Work against proposal in mailing list http://www.nabble.com/-Proposal--Repository-Layout-Detection-Interaction-Changes.-tf4577852.html
- Creation of package org.apache.maven.archiva.repository.content
- Creation of RepositoryContent alternative as outlined in proposal.
- Have not swung all code over to new repositorycontent object yet.
- Left old BidirectionalRepositoryLayout classes in place temporarily.
- Migrated the following over to new RepositoryContent objects...
  * the /repository/ url
  * proxying
  * metadata updating
  * repository purge classes
- Unit testing. Lots and lots of unit testing.
- Correcting bad template email address.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@583412 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 09:47:20 +00:00
Joakim Erdfelt 8af86cd884 Finishing the Repository split work that brett started.
ArchivaRepository has been removed from model.
This work was needed before repository layout/detection proposal work is started.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@582987 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 22:07:39 +00:00
Brett Porter e50371591d [MRM-528] run the correct consumers
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@580205 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 03:17:11 +00:00
Brett Porter bc5df1bd8a [MRM-528] run consumers as artifacts arrive via proxy
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@580187 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 00:12:03 +00:00
Joakim Erdfelt 0aa3e955ea [MRM-510] In Repository Browse, the first unique snapshot version clicked is getting persisted in the request resulting to 'version does not match' error
Fixing EffectiveProjectModelFilter caching to cache project model, not the parent model.
Adding unit tests to prevent this from occuring again.
Updating ProjectModelToDatabaseConsumer to adjust model version on unique snapshot after reading from disk, and before the effective project filter.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@579856 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 00:30:37 +00:00
Joakim Erdfelt d539506103 Updating all consumers with JDK5 Generics for Collections.
Correcting report output on model details in ProjectModelToDatabaseConsumer.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@579799 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 21:13:25 +00:00
Joakim Erdfelt 7f570c94b5 Fixing bad decision to use "<" and ">" in report messages, as they are currently filtered out as HTML.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@579679 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 14:47:50 +00:00
Joakim Erdfelt 3b339dd073 Cleaning up error message from ProjectModelToDatabaseConsumer on bad/unexpected models.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@579332 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 18:02:43 +00:00
Joakim Erdfelt 4ba1367132 Eliminating debug message from logs.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@578242 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 19:44:55 +00:00
Maria Odea B. Ching 55baa9dff8 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576050 13f79535-47bb-0310-9956-ffa450edef68
2007-09-16 06:42:14 +00:00
Maria Odea B. Ching ffb8b570c3 [maven-release-plugin] prepare release archiva-1.0-beta-2
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576048 13f79535-47bb-0310-9956-ffa450edef68
2007-09-16 06:39:24 +00:00
Brett Porter 17f229020f [MRM-462] separate configuration of managed and remote repositories
Merged from branches/MRM-462

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574859 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 09:33:41 +00:00
Joakim Erdfelt 047ec47c8b [MRM-463] Metadata merging doesn't work.
Adding new Metadata Updater Consumer.
Updating archiva-configuration default for new consumer.
Updating archiva-proxy for new Metadata Tools approach.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574121 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 03:01:25 +00:00
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 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
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 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