Skip to content

Commit 914c7d7

Browse files
committed
Move sonar plugin into affinity module (it's not a child of parent POM)
1 parent a024c60 commit 914c7d7

2 files changed

Lines changed: 33 additions & 35 deletions

File tree

affinity/pom.xml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
~ limitations under the License.
1616
-->
1717

18-
<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">
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1920
<modelVersion>4.0.0</modelVersion>
2021

2122
<parent>
2223
<groupId>net.openhft</groupId>
2324
<artifactId>java-parent-pom</artifactId>
2425
<version>1.1.26</version>
25-
<relativePath />
26+
<relativePath/>
2627
</parent>
2728

2829
<artifactId>affinity</artifactId>
@@ -126,6 +127,35 @@
126127
</plugins>
127128
</build>
128129
</profile>
130+
<profile>
131+
<id>sonar</id>
132+
<build>
133+
<plugins>
134+
<plugin>
135+
<groupId>org.sonarsource.scanner.maven</groupId>
136+
<artifactId>sonar-maven-plugin</artifactId>
137+
</plugin>
138+
<plugin>
139+
<groupId>org.jacoco</groupId>
140+
<artifactId>jacoco-maven-plugin</artifactId>
141+
<executions>
142+
<execution>
143+
<goals>
144+
<goal>prepare-agent</goal>
145+
</goals>
146+
</execution>
147+
<execution>
148+
<id>report</id>
149+
<phase>prepare-package</phase>
150+
<goals>
151+
<goal>report</goal>
152+
</goals>
153+
</execution>
154+
</executions>
155+
</plugin>
156+
</plugins>
157+
</build>
158+
</profile>
129159
</profiles>
130160

131161
<build>
@@ -224,7 +254,7 @@
224254
<connection>scm:git:[email protected]:OpenHFT/Java-Thread-Affinity.git</connection>
225255
<developerConnection>scm:git:[email protected]:OpenHFT/Java-Thread-Affinity.git
226256
</developerConnection>
227-
<tag>ea</tag>
257+
<tag>ea</tag>
228258
</scm>
229259

230260
</project>

pom.xml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,38 +38,6 @@
3838
<module>affinity-test</module>
3939
</modules>
4040

41-
<profiles>
42-
<profile>
43-
<id>sonar</id>
44-
<build>
45-
<plugins>
46-
<plugin>
47-
<groupId>org.sonarsource.scanner.maven</groupId>
48-
<artifactId>sonar-maven-plugin</artifactId>
49-
</plugin>
50-
<plugin>
51-
<groupId>org.jacoco</groupId>
52-
<artifactId>jacoco-maven-plugin</artifactId>
53-
<executions>
54-
<execution>
55-
<goals>
56-
<goal>prepare-agent</goal>
57-
</goals>
58-
</execution>
59-
<execution>
60-
<id>report</id>
61-
<phase>prepare-package</phase>
62-
<goals>
63-
<goal>report</goal>
64-
</goals>
65-
</execution>
66-
</executions>
67-
</plugin>
68-
</plugins>
69-
</build>
70-
</profile>
71-
</profiles>
72-
7341
<scm>
7442
<url>scm:git:[email protected]:OpenHFT/Java-Thread-Affinity.git</url>
7543
<connection>scm:git:[email protected]:OpenHFT/Java-Thread-Affinity.git</connection>

0 commit comments

Comments
 (0)