Skip to content

Commit d42e634

Browse files
Update pom.xml
1 parent 3b96fa4 commit d42e634

File tree

1 file changed

+22
-68
lines changed

1 file changed

+22
-68
lines changed

pom.xml

+22-68
Original file line numberDiff line numberDiff line change
@@ -98,73 +98,27 @@
9898
</dependency>
9999
</dependencies>
100100

101-
<build>
102-
<plugins>
103-
<plugin>
104-
<groupId>org.apache.maven.plugins</groupId>
105-
<artifactId>maven-compiler-plugin</artifactId>
106-
<version>3.6.0</version>
107-
<configuration>
108-
<source>1.7</source>
109-
<target>1.7</target>
110-
</configuration>
111-
</plugin>
112-
113-
<plugin>
114-
<groupId>org.apache.maven.plugins</groupId>
115-
<artifactId>maven-pmd-plugin</artifactId>
116-
<version>3.8</version>
117-
</plugin>
118-
</plugins>
119-
</build>
120-
121-
<profiles>
122-
<profile>
123-
<id>sonar-coverage</id>
124-
<activation>
125-
<activeByDefault>true</activeByDefault>
126-
</activation>
127-
<build>
128-
<pluginManagement>
129-
<plugins>
130-
<plugin>
131-
<groupId>org.jacoco</groupId>
132-
<artifactId>jacoco-maven-plugin</artifactId>
133-
<version>0.7.8</version>
134-
</plugin>
135-
</plugins>
136-
</pluginManagement>
137-
<plugins>
138-
<plugin>
139-
<groupId>org.jacoco</groupId>
140-
<artifactId>jacoco-maven-plugin</artifactId>
141-
<configuration>
142-
<append>true</append>
143-
</configuration>
144-
<executions>
145-
<execution>
146-
<id>agent-for-ut</id>
147-
<goals>
148-
<goal>prepare-agent</goal>
149-
</goals>
150-
</execution>
151-
<execution>
152-
<id>agent-for-it</id>
153-
<goals>
154-
<goal>prepare-agent-integration</goal>
155-
</goals>
156-
</execution>
157-
<execution>
158-
<id>jacoco-site</id>
159-
<phase>verify</phase>
160-
<goals>
161-
<goal>report</goal>
162-
</goals>
163-
</execution>
164-
</executions>
165-
</plugin>
166-
</plugins>
167-
</build>
168-
</profile>
101+
<profiles>
102+
<profile>
103+
<id>sonar</id>
104+
<activation>
105+
<activeByDefault>true</activeByDefault>
106+
</activation>
107+
<properties>
108+
<sonar.host.url>http://localhost:9001/</sonar.host.url>
109+
<sonar-maven-plugin.version>3.3.0.603</sonar-maven-plugin.version>
110+
</properties>
111+
<build>
112+
<plugins>
113+
<plugin>
114+
<groupId>org.sonarsource.scanner.maven</groupId>
115+
<artifactId>sonar-maven-plugin</artifactId>
116+
<version>${sonar-maven-plugin.version}</version>
117+
</plugin>
118+
</plugins>
119+
</build>
120+
</profile>
169121
</profiles>
122+
123+
170124
</project>

0 commit comments

Comments
 (0)