diff options
Diffstat (limited to 'server/sonar-web/pom.xml')
-rw-r--r-- | server/sonar-web/pom.xml | 284 |
1 files changed, 284 insertions, 0 deletions
diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml index 98ecf83d8d9..ef74b2cd81d 100644 --- a/server/sonar-web/pom.xml +++ b/server/sonar-web/pom.xml @@ -235,6 +235,290 @@ </dependency> </dependencies> </profile> + <profile> + <id>h2</id> + <properties> + <sonar.jdbc.url>jdbc:h2:tcp://localhost:9092/sonar</sonar.jdbc.url> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-jdbc-driver</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteIfNewer>false</overWriteIfNewer> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <includeArtifactIds>h2</includeArtifactIds> + <outputDirectory>${project.build.directory}/dev/extensions/jdbc-driver/h2</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>start-dev-server</id> + <properties> + <gruntTask>dev</gruntTask> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-plugins</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteIfNewer>false</overWriteIfNewer> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <includeTypes>sonar-plugin</includeTypes> + <outputDirectory>${project.build.directory}/dev/lib/core-plugins</outputDirectory> + </configuration> + </execution> + <execution> + <id>copy-server</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteIfNewer>false</overWriteIfNewer> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <executions> + <execution> + <id>copy-conf</id> + <phase>process-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/dev/conf</outputDirectory> + <overwrite>false</overwrite> + <resources> + <resource> + <directory>src/dev</directory> + <includes> + <include>sonar.properties</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.tomcat.maven</groupId> + <artifactId>tomcat7-maven-plugin</artifactId> + <version>2.1</version> + <configuration> + <port>9000</port> + <path>/dev</path> + <contextFile>${project.basedir}/src/main/webapp/META-INF/context.xml</contextFile> + <useNaming>false</useNaming> + <systemProperties> + <SONAR_HOME>${project.build.directory}/dev</SONAR_HOME> + <jruby.max.runtimes>3</jruby.max.runtimes> + <sonar.jdbc.url>${sonar.jdbc.url}</sonar.jdbc.url> + <sonar.es.http.host>127.0.0.1</sonar.es.http.host> + <sonar.es.http.port>9200</sonar.es.http.port> + <sonar.log.console>true</sonar.log.console> + <sonar.log.profilingLevel>BASIC</sonar.log.profilingLevel> + <sonar.web.context>/dev</sonar.web.context> + </systemProperties> + </configuration> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-server</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + <!-- core plugins --> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-core-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-design-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-findbugs-plugin</artifactId> + <version>${sonarJava.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-dbcleaner-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-squid-java-plugin</artifactId> + <version>${sonarJava.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-surefire-plugin</artifactId> + <version>${sonarJava.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-cpd-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-l10n-en-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-email-notifications-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-jacoco-plugin</artifactId> + <version>${sonarJava.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-java-plugin</artifactId> + <version>${sonarJava.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + </dependencies> + </profile> + <profile> + <id>postgresql</id> + <properties> + <sonar.jdbc.url>jdbc:postgresql://localhost:15432/sonar</sonar.jdbc.url> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-jdbc-driver</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteIfNewer>false</overWriteIfNewer> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <includeArtifactIds>postgresql</includeArtifactIds> + <outputDirectory>${project.build.directory}/dev/extensions/jdbc-driver/postgresql</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + </dependency> + </dependencies> + </profile> + + <profile> + <id>mysql</id> + <properties> + <sonar.jdbc.url>jdbc:mysql://localhost:13306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true</sonar.jdbc.url> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-jdbc-driver</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteIfNewer>false</overWriteIfNewer> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <includeArtifactIds>mysql-connector-java</includeArtifactIds> + <outputDirectory>${project.build.directory}/dev/extensions/jdbc-driver/mysql</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + </dependency> + </dependencies> + </profile> </profiles> </project> |