Skip to content

Commit

Permalink
Add : add check profile (#2283)
Browse files Browse the repository at this point in the history
* Add : add check profile

* Add : add check profile

* Add : add back the removed plugins

* Add : add back the removed plugins
  • Loading branch information
taojintianxia authored Oct 14, 2023
1 parent 680533d commit 977e1ec
Showing 1 changed file with 132 additions and 0 deletions.
132 changes: 132 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,138 @@
</pluginManagement>
</build>
</profile>
<profile>
<id>check</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${apache-rat-plugin.version}</version>
<configuration>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/logs/**</exclude>
<exclude>**/*.log</exclude>
<!-- IDE files -->
<exclude>**/*.iml</exclude>
<exclude>**/.idea/**</exclude>
<exclude>**/*.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<!-- git files -->
<exclude>**/.gitignore</exclude>
<exclude>**/.gitmodules</exclude>
<exclude>**/.git/**</exclude>
<!-- CI files -->
<exclude>**/.travis.yml</exclude>
<exclude>**/.mvn/jvm.config</exclude>
<exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude>
<!-- GitHub files -->
<exclude>**/.github/**</exclude>
<!-- document files -->
<exclude>**/*.md</exclude>
<excldue>**/*.MD</excldue>
<exclude>**/*.txt</exclude>
<exclude>**/docs/**</exclude>
<!-- UI files -->
<exclude>**/.babelrc</exclude>
<exclude>**/.editorconfig</exclude>
<exclude>**/.eslintignore</exclude>
<exclude>**/package.json</exclude>
<exclude>**/assets/**</exclude>
<exclude>**/dist/**</exclude>
<exclude>**/etc/**</exclude>
<exclude>**/node/**</exclude>
<exclude>**/node_modules/**</exclude>
<exclude>**/test/coverage/**</exclude>
<exclude>**/package-lock.json</exclude>
<!-- example files -->
<exclude>/examples/**</exclude>
<!-- to be determined -->
<exclude>**/AdminLTE/**</exclude>
<exclude>**/bootstrap/**</exclude>
<exclude>**/bootstrap-table/**</exclude>
<exclude>**/daterangepicker/**</exclude>
<exclude>**/font-awesome-4.5.0/**</exclude>
<exclude>**/input-mask/**</exclude>
<exclude>**/finput-mask/**</exclude>
<exclude>**/jquery/**</exclude>
<exclude>**/jQuery/**</exclude>
<exclude>**/highcharts/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>src/resources/checkstyle.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<executions>
<execution>
<id>validate</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version>
<configuration>
<java>
<eclipse>
<!--suppress MavenModelInspection -->
<file>${maven.multiModuleProjectDirectory}/src/resources/spotless/java.xml</file>
</eclipse>
<licenseHeader>
<!--suppress MavenModelInspection -->
<file>${maven.multiModuleProjectDirectory}/src/resources/spotless/copyright.txt</file>
</licenseHeader>
</java>
<pom>
<sortPom>
<encoding>UTF-8</encoding>
<nrOfIndentSpace>4</nrOfIndentSpace>
<keepBlankLines>true</keepBlankLines>
<indentBlankLines>true</indentBlankLines>
<indentSchemaLocation>false</indentSchemaLocation>
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
<sortModules>false</sortModules>
<sortExecutions>false</sortExecutions>
<predefinedSortOrder>custom_1</predefinedSortOrder>
<expandEmptyElements>false</expandEmptyElements>
<sortProperties>false</sortProperties>
</sortPom>
<replace>
<name>Leading blank line</name>
<search>--&gt;
&lt;project</search>
<replacement>--&gt;

&lt;project</replacement>
</replace>
</pom>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 977e1ec

Please sign in to comment.