forked from thehyve/transmartApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom_sonar.xml
129 lines (124 loc) · 5.55 KB
/
pom_sonar.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!-- vim: set ts=4 et ts=4 : -->
<!--
This POM is only here for the purpose of allowing data to be uploaded to sonar.
In particular, tranSMART has not been converted to a Maven project.
You cannot use grails maven goals to build or run the application.
-->
<!-- You also need to change your settings.xml.
See http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven
Before running the sonar:sonar goal, generate test & coverage reports with:
grails test-app - -coverage - -xml (remove space between consecutive -)
Finally:
mvn -f pom_sonar.xml \
pl.project13.maven:git-commit-id-plugin:revision \
nl.thehyve:change-project-properties-plugin:setProperties \
sonar:sonar
-->
<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>org.transmartproject</groupId>
<artifactId>transmartApp</artifactId>
<packaging>war</packaging>
<version>1.0</version><!-- but see profile ciUpdateVersion -->
<name>Transmart Application</name><!-- idem -->
<build>
<sourceDirectory>src/groovy</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/java</source>
<source>grails-app/controllers</source>
<source>grails-app/domain</source>
<source>grails-app/jobs</source>
<source>grails-app/services</source>
<source>grails-app/taglib</source>
<source>grails-app/utils</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- these plugins should not be bound and instead they should
be run manually on the command line BEFORE sonar:sonar.
By the time sonar:sonar is run, these plugins should
already have run.
On the other hand the sonar plugin will run the
process-resources phase by itself, so if these plugins
had executions bound to the validate phase, they would
be run twice. Yes, it sucks.
-->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.5-pull67</version>
<configuration>
<prefix>git</prefix>
<dateFormat>yyyy.MM.dd HH:mm:ss z</dateFormat>
<verbose>false</verbose>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<skipPoms>false</skipPoms>
<generateGitPropertiesFile>false</generateGitPropertiesFile>
<failOnNoGitDirectory>true</failOnNoGitDirectory>
<gitDescribe>
<skip>false</skip>
<always>false</always>
<abbrev>7</abbrev>
<dirty>-dirty</dirty>
<forceLongFormat>false</forceLongFormat>
</gitDescribe>
</configuration>
</plugin>
<plugin>
<groupId>nl.thehyve</groupId>
<artifactId>change-project-properties-plugin</artifactId>
<version>1.0</version>
<configuration>
<properties>
<property>
<key>sonar.branch</key>
<value>${git.branch}</value>
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>repo.thehyve.nl-releases</id>
<url>http://repo.thehyve.nl/content/repositories/releases/</url>
</pluginRepository>
</pluginRepositories>
<properties>
<sonar.language>grvy</sonar.language>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.surefire.reportsPath>target/test-reports</sonar.surefire.reportsPath>
<sonar.cobertura.reportPath>target/test-reports/cobertura/coverage.xml</sonar.cobertura.reportPath>
<sonar.phase>generate-sources</sonar.phase>
</properties>
</project>