diff options
5 files changed, 3 insertions, 30 deletions
diff --git a/archiva-docs/src/site/apt/userguide/virtual-repositories.apt b/archiva-docs/src/site/apt/userguide/virtual-repositories.apt index e0e3dfdff..dcd76279a 100644 --- a/archiva-docs/src/site/apt/userguide/virtual-repositories.apt +++ b/archiva-docs/src/site/apt/userguide/virtual-repositories.apt @@ -140,7 +140,7 @@ Virtual Repositories merging repositories index for which the current user has karma. This merged index is available in the path .indexer . - To not generate this merged index on each request, there is a ttl value for build merged index. - This ttl has a default value of 30 minutes. You can change it with modifying the sys props value <<<archiva.tmp.group.index.ttl>>> (see your <<<wrapper.conf>>> file) + To not generate this merged index on each request, there is a ttl (time to live) value for build merged index. It can be configured + in the repository group configuration. This ttl has a default value of 30 minutes. diff --git a/archiva-jetty/pom.xml b/archiva-jetty/pom.xml index d54deb81a..4c589fcf1 100644 --- a/archiva-jetty/pom.xml +++ b/archiva-jetty/pom.xml @@ -171,7 +171,6 @@ --> <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty> <systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty> - <systemProperty>archiva.tmp.group.index.ttl=30</systemProperty> <systemProperty>AsyncLogger.WaitStrategy=Sleep</systemProperty> </systemProperties> <extraArguments> diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/DefaultIndexMerger.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/DefaultIndexMerger.java index e97de6ff8..4a53182f8 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/DefaultIndexMerger.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/DefaultIndexMerger.java @@ -19,6 +19,7 @@ package org.apache.archiva.indexer.merger; */ import com.google.common.io.Files; + import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin; import org.apache.archiva.common.plexusbridge.MavenIndexerUtils; import org.apache.archiva.common.plexusbridge.PlexusSisuBridge; @@ -35,7 +36,6 @@ import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; -import javax.annotation.PostConstruct; import javax.inject.Inject; import java.io.File; import java.io.IOException; @@ -70,8 +70,6 @@ public class DefaultIndexMerger private List<TemporaryGroupIndex> temporaryGroupIndexes = new CopyOnWriteArrayList<TemporaryGroupIndex>(); - private int groupMergedIndexTtl; - @Inject public DefaultIndexMerger( PlexusSisuBridge plexusSisuBridge, MavenIndexerUtils mavenIndexerUtils ) throws PlexusSisuBridgeException @@ -81,12 +79,6 @@ public class DefaultIndexMerger indexPacker = plexusSisuBridge.lookup( IndexPacker.class, "default" ); } - @PostConstruct - public void intialize() - { - this.groupMergedIndexTtl = Integer.getInteger( IndexMerger.TMP_GROUP_INDEX_SYS_KEY, DEFAULT_GROUP_INDEX_TTL ); - } - public IndexingContext buildMergedIndex( IndexMergerRequest indexMergerRequest ) throws IndexMergerException { @@ -170,9 +162,4 @@ public class DefaultIndexMerger { return this.temporaryGroupIndexes; } - - public int getGroupMergedIndexTtl() - { - return this.groupMergedIndexTtl; - } } diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/IndexMerger.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/IndexMerger.java index 462c3e4a1..756819e4f 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/IndexMerger.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/IndexMerger.java @@ -28,12 +28,6 @@ import java.util.Collection; */ public interface IndexMerger { - - /** - * system property which contains the value in s for ttl of temporary index groups - */ - String TMP_GROUP_INDEX_SYS_KEY = "archiva.tmp.group.index.ttl"; - /** * @param indexMergerRequest * @return a temporary directory with a merge index (directory marked deleteOnExit) @@ -45,10 +39,4 @@ public interface IndexMerger void cleanTemporaryGroupIndex( TemporaryGroupIndex temporaryGroupIndex ); Collection<TemporaryGroupIndex> getTemporaryGroupIndexes(); - - /** - * @return ttl of temporay group index - */ - int getGroupMergedIndexTtl(); - } diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 4e201b764..8d54be18d 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -1013,7 +1013,6 @@ <archiva.devMode>${archiva.devMode}</archiva.devMode> <archiva.javascriptLog>${archiva.javascriptLog}</archiva.javascriptLog> <archiva.logMissingI18n>${archiva.logMissingI18n}</archiva.logMissingI18n> - <archiva.tmp.group.index.ttl>${archiva.groupIndexTtl}</archiva.tmp.group.index.ttl> <!-- not needed as we use asyncLogger in configuration <Log4jContextSelector>org.apache.logging.log4j.core.async.AsyncLoggerContextSelector</Log4jContextSelector> |