Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow the maven indexer to be configured via config admin
- Loading branch information
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
hawtio-maven-indexer/src/main/resources/OSGI-INF/blueprint/osgi.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | ||
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0" | ||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"> | ||
|
||
<bean id="mavenIndexer" class="io.hawt.maven.indexer.AsyncMavenIndexerFacadeFactory" init-method="init" | ||
destroy-method="destroy" scope="singleton"> | ||
<property name="indexDirectory" value="${indexDir}"/> | ||
<!-- | ||
<property name="repositories" value="${hawtio.maven.index.repos}"/> | ||
--> | ||
</bean> | ||
|
||
<!-- OSGi specific Config Admin --> | ||
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]" /> | ||
|
||
<cm:property-placeholder persistent-id="io.hawt.hawtio-maven-indexer" update-strategy="reload"> | ||
<cm:default-properties> | ||
<cm:property name="indexDir" value="$[karaf.data]/mavenIndexer"/> | ||
</cm:default-properties> | ||
</cm:property-placeholder> | ||
|
||
</blueprint> |