Skip to content

Commit

Permalink
Fix project site build
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Sep 30, 2022
1 parent 028a626 commit 02056a1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@
<junit.version>5.9.1</junit.version>
<mockito.version>4.8.0</mockito.version>
<assertj.version>3.23.1</assertj.version>

<sonar.coverage.exclusions>**/slf4jmock/SimpleLogger.java</sonar.coverage.exclusions>
<sonar.projectName>SLF4J mock</sonar.projectName>
<sonar.coverage.jacoco.xmlReportPaths>../target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>

<!-- repo name for GitHub site ribbon -->
<github.repo>slf4j-mock</github.repo>
<project.build.outputTimestamp>2022-09-30T16:06:47Z</project.build.outputTimestamp>
</properties>

Expand Down Expand Up @@ -140,8 +144,20 @@
<skipLocalStaging>true</skipLocalStaging>
</configuration>
</plugin>
<plugin>
<!-- by default disable scm-publish -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<executions>
<execution>
<id>scm-publish</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.simplify4u.plugins</groupId>
Expand Down Expand Up @@ -177,6 +193,19 @@
<excludePackageNames>org.slf4j.simple</excludePackageNames>
</configuration>
</plugin>
<plugin>
<!-- enable scm-publish only in root module -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<executions>
<execution>
<inherited>false</inherited>
<id>scm-publish</id>
<phase>site-deploy</phase>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
4 changes: 4 additions & 0 deletions slf4j-mock-coverage-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<packaging>pom</packaging>
<name>SLF4J mock coverage report</name>

<properties>
<maven.site.skip>true</maven.site.skip>
</properties>

<dependencyManagement>
<dependencies>
<!-- only for dependency coverage -->
Expand Down

0 comments on commit 02056a1

Please # to comment.