Skip to content

Commit

Permalink
Fix SpotBugs processing.
Browse files Browse the repository at this point in the history
Reuse the same activation ID as in parent POM.
Deactivate flattening when tests are ignored.
  • Loading branch information
uhafner committed May 20, 2024
1 parent a792879 commit d097266
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@
<includeTests>false</includeTests>
<language>javascript</language>
<compileSourceRoots>
<compileSourceRoot>${basedir}/src/main/resources</compileSourceRoot>
<compileSourceRoot>${basedir}/src/main/webapp/js</compileSourceRoot>
<compileSourceRoot>src/main/resources</compileSourceRoot>
<compileSourceRoot>src/main/webapp/js</compileSourceRoot>
</compileSourceRoots>
<includes>
<include>**/*.js</include>
Expand Down Expand Up @@ -592,7 +592,7 @@
</dependencies>
<executions>
<execution>
<id>run-spotbugs</id>
<id>spotbugs</id>
<goals>
<goal>check</goal>
</goals>
Expand Down Expand Up @@ -736,11 +736,18 @@
</profile>
<profile>
<id>ci</id>
<activation>
<property>
<name>maven.test.failure.ignore</name>
<value>true</value>
</property>
</activation>
<properties>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<checkstyle.failOnViolation>false</checkstyle.failOnViolation>
<pmd.failOnViolation>false</pmd.failOnViolation>
<spotbugs.failOnError>false</spotbugs.failOnError>
<flatten.flatten.skip>true</flatten.flatten.skip>
</properties>
</profile>
<profile>
Expand Down

0 comments on commit d097266

Please sign in to comment.