[MRM-1792] Integrate Apache Sirona Monitoring

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1540597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-11-11 03:58:39 +00:00
parent 4b5e0379a5
commit 1f5321ce2a
5 changed files with 76 additions and 1 deletions

View File

@ -40,6 +40,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
@ -55,9 +56,12 @@ public class DownloadMergedIndexTest
@BeforeClass
public static void setAppServerBase()
throws IOException
{
previousAppServerBase = System.getProperty( "appserver.base" );
System.setProperty( "appserver.base", "target/" + DownloadMergedIndexTest.class.getName() );
System.setProperty( "appserver.base",
new File( System.getProperty( "java.io.tmpdir" ) ).getCanonicalPath() + "/target/"
+ DownloadMergedIndexTest.class.getName() );
}
@AfterClass

View File

@ -33,6 +33,8 @@
<logger name="org.apache.commons.configuration" level="error"/>
<logger name="org.apache.archiva.scheduler.indexing" level="debug"/>
<root level="info">
<appender-ref ref="console"/>
</root>

View File

@ -594,6 +594,31 @@
</exclusions>
</dependency>
<!-- sirona -->
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-web</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-spring</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-reporting</artifactId>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
@ -1001,6 +1026,7 @@
<path>${tomcatRunPath}</path>
<contextFile>${tomcatContextXml}</contextFile>
<useTestClasspath>false</useTestClasspath>
<systemProperties>
<plexus.home>${archivaAppServerBase}</plexus.home>
<appserver.base>${archivaAppServerBase}</appserver.base>

View File

@ -31,6 +31,17 @@
</param-value>
</context-param>
<!-- to activate sirona -->
<context-param>
<param-name>org.apache.sirona.reporting.activated</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.sirona.reporting.mapping</param-name>
<param-value>/sirona-monitoring</param-value>
</context-param>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>

32
pom.xml
View File

@ -85,6 +85,8 @@
<lucene.version>3.6.2</lucene.version>
<jackrabbit.version>2.6.3</jackrabbit.version>
<sirona.version>0.1-incubating-SNAPSHOT</sirona.version>
<cxfVersion>2.6.10</cxfVersion>
<derbyVersion>10.10.1.1</derbyVersion>
<httpclient.version>4.3.1</httpclient.version>
@ -910,6 +912,36 @@
<artifactId>ant</artifactId>
<version>1.8.3</version>
</dependency>
<!-- sirona -->
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-core</artifactId>
<version>${sirona.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-jdbc</artifactId>
<version>${sirona.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-spring</artifactId>
<version>${sirona.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-web</artifactId>
<version>${sirona.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sirona</groupId>
<artifactId>sirona-reporting</artifactId>
<version>${sirona.version}</version>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>