Created
July 6, 2014 21:10
-
-
Save IngmarBoddington/dd28693f6d108df15ac1 to your computer and use it in GitHub Desktop.
Apache Maven pom for (basic + junit + sonar requirements)
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mycompany.app</groupId> | |
<artifactId>my-app</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>NAME</name> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.8.2</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<profiles> | |
<profile> | |
<id>sonar</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<!-- Example for MySQL--> | |
<sonar.jdbc.url> | |
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 | |
</sonar.jdbc.url> | |
<sonar.jdbc.username>sonar</sonar.jdbc.username> | |
<sonar.jdbc.password>sonar</sonar.jdbc.password> | |
<!-- Optional URL to server. Default value is http://localhost:9000 --> | |
<sonar.host.url> | |
http://myserver:9000 | |
</sonar.host.url> | |
</properties> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment