</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-conf</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/sonar-dev-home</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/dev/${jdbcDialect}</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<profile>
<id>postgresql</id>
+ <properties>
+ <jdbcDialect>postgresql</jdbcDialect>
+ </properties>
<build>
<plugins>
<plugin>
<profile>
<id>mysql</id>
+ <properties>
+ <jdbcDialect>mysql</jdbcDialect>
+ </properties>
<build>
<plugins>
<plugin>
<profile>
<id>derby</id>
+ <properties>
+ <jdbcDialect>derby</jdbcDialect>
+ </properties>
<build>
<plugins>
<plugin>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<configuration>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.hibernate.SQL">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.ReadWriteCache">
+ <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.EhCacheProvider">
+ <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.sonar.DBSTATISTICS">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="org.sonar.INFO">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="net.sf.ehcache">
+ <level value="INFO"/>
+ </logger>
+
+
+ <logger name="rails.sonar">
+ <level value="INFO"/>
+ </logger>
+
+ <root>
+ <level value="INFO"/>
+ <appender-ref ref="STDOUT"/>
+ </root>
+
+</configuration>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<configuration>
-
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <layout class="ch.qos.logback.classic.PatternLayout">
- <pattern>
- %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
- </pattern>
- </layout>
- </appender>
-
- <logger name="org.hibernate.SQL">
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.ReadWriteCache">
- <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.EhCacheProvider">
- <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.sonar.DBSTATISTICS">
- <level value="INFO"/>
- </logger>
-
- <logger name="org.sonar.INFO">
- <level value="INFO"/>
- </logger>
-
- <logger name="net.sf.ehcache">
- <level value="INFO"/>
- </logger>
-
-
- <logger name="rails.sonar">
- <level value="INFO"/>
- </logger>
-
- <root>
- <level value="INFO"/>
- <appender-ref ref="STDOUT"/>
- </root>
-
-</configuration>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.hibernate.SQL">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.ReadWriteCache">
+ <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.EhCacheProvider">
+ <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.sonar.DBSTATISTICS">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="org.sonar.INFO">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="net.sf.ehcache">
+ <level value="INFO"/>
+ </logger>
+
+
+ <logger name="rails.sonar">
+ <level value="INFO"/>
+ </logger>
+
+ <root>
+ <level value="INFO"/>
+ <appender-ref ref="STDOUT"/>
+ </root>
+
+</configuration>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<configuration>
-
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <layout class="ch.qos.logback.classic.PatternLayout">
- <pattern>
- %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
- </pattern>
- </layout>
- </appender>
-
- <logger name="org.hibernate.SQL">
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.ReadWriteCache">
- <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.EhCacheProvider">
- <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.sonar.DBSTATISTICS">
- <level value="INFO"/>
- </logger>
-
- <logger name="org.sonar.INFO">
- <level value="INFO"/>
- </logger>
-
- <logger name="net.sf.ehcache">
- <level value="INFO"/>
- </logger>
-
-
- <logger name="rails.sonar">
- <level value="INFO"/>
- </logger>
-
- <root>
- <level value="INFO"/>
- <appender-ref ref="STDOUT"/>
- </root>
-
-</configuration>
+++ /dev/null
-# Oracle
-sonar.jdbc.url: jdbc:oracle:thin:@192.168.1.99/XE
-sonar.jdbc.driverClassName: oracle.jdbc.OracleDriver
-sonar.jdbc.username: sonar
-sonar.jdbc.password: sonar
-sonar.jdbc.maxActive: 30
-sonar.jdbc.maxIdle: 10
-sonar.jdbc.minIdle: 2
-sonar.jdbc.maxWait: 5000
-sonar.jdbc.minEvictableIdleTimeMillis: 600000
-sonar.jdbc.timeBetweenEvictionRunsMillis: 30000
-
-sonar.runtime.mode: development
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.hibernate.SQL">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.ReadWriteCache">
+ <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.hibernate.cache.EhCacheProvider">
+ <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.sonar.DBSTATISTICS">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="org.sonar.INFO">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="net.sf.ehcache">
+ <level value="INFO"/>
+ </logger>
+
+
+ <logger name="rails.sonar">
+ <level value="INFO"/>
+ </logger>
+
+ <root>
+ <level value="INFO"/>
+ <appender-ref ref="STDOUT"/>
+ </root>
+
+</configuration>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<configuration>
-
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <layout class="ch.qos.logback.classic.PatternLayout">
- <pattern>
- %d{HH:mm:ss.SSS} %-5level %logger{15} %X - %msg%n
- </pattern>
- </layout>
- </appender>
-
- <logger name="org.hibernate.SQL">
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.ReadWriteCache">
- <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.hibernate.cache.EhCacheProvider">
- <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.sonar.DBSTATISTICS">
- <level value="INFO"/>
- </logger>
-
- <logger name="org.sonar.INFO">
- <level value="INFO"/>
- </logger>
-
- <logger name="net.sf.ehcache">
- <level value="INFO"/>
- </logger>
-
-
- <logger name="rails.sonar">
- <level value="INFO"/>
- </logger>
-
- <root>
- <level value="INFO"/>
- <appender-ref ref="STDOUT"/>
- </root>
-
-</configuration>
<param-value>3</param-value>
</context-param>
- <env-entry>
- <description>JNDI logback context</description>
- <env-entry-name>logback/context-name</env-entry-name>
- <env-entry-type>java.lang.String</env-entry-type>
- <env-entry-value>Sonar</env-entry-value>
- </env-entry>
-
<filter>
<filter-name>DatabaseSessionFilter</filter-name>
<filter-class>org.sonar.server.ui.DatabaseSessionFilter</filter-class>
<listener>
<listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
</listener>
- <listener>
- <listener-class>ch.qos.logback.classic.selector.servlet.ContextDetachingSCL</listener-class>
- </listener>
</web-app>