Skip to content

Commit 8422249

Browse files
committed
Fixed #183
1 parent 5f29122 commit 8422249

File tree

1 file changed

+138
-119
lines changed

1 file changed

+138
-119
lines changed

pom.xml

Lines changed: 138 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@
561561

562562
<build>
563563
<finalName>${project.artifactId}</finalName>
564+
<defaultGoal>clean dependency:list install spring-boot:run</defaultGoal>
564565
<pluginManagement>
565566
<plugins>
566567
<plugin>
@@ -573,7 +574,6 @@
573574
<artifactId>docker-compose-maven-plugin</artifactId>
574575
<version>${version.docker-compose-maven-plugin}</version>
575576
</plugin>
576-
577577
<plugin>
578578
<groupId>org.apache.maven.plugins</groupId>
579579
<artifactId>maven-project-info-reports-plugin</artifactId>
@@ -672,6 +672,77 @@
672672
<detachedMode>true</detachedMode>
673673
</configuration>
674674
</plugin>
675+
<plugin>
676+
<groupId>org.apache.maven.plugins</groupId>
677+
<artifactId>maven-clean-plugin</artifactId>
678+
</plugin>
679+
<plugin>
680+
<groupId>org.apache.maven.plugins</groupId>
681+
<artifactId>maven-install-plugin</artifactId>
682+
</plugin>
683+
<plugin>
684+
<groupId>org.apache.maven.plugins</groupId>
685+
<artifactId>maven-help-plugin</artifactId>
686+
</plugin>
687+
<plugin>
688+
<groupId>org.apache.maven.plugins</groupId>
689+
<artifactId>maven-source-plugin</artifactId>
690+
</plugin>
691+
<plugin>
692+
<groupId>org.apache.maven.plugins</groupId>
693+
<artifactId>maven-javadoc-plugin</artifactId>
694+
<configuration>
695+
<linksource>true</linksource>
696+
<maxmemory>1024m</maxmemory>
697+
<source>${java.version}</source>
698+
</configuration>
699+
</plugin>
700+
<plugin>
701+
<groupId>org.springframework.boot</groupId>
702+
<artifactId>spring-boot-maven-plugin</artifactId>
703+
<configuration>
704+
<addResources>true</addResources>
705+
<profiles>
706+
<profile>default</profile>
707+
</profiles>
708+
</configuration>
709+
<executions>
710+
<!--
711+
<execution>
712+
<id>pre-integration-test</id>
713+
<goals>
714+
<goal>start</goal>
715+
</goals>
716+
<configuration>
717+
<skip>${skipTests}</skip>
718+
</configuration>
719+
</execution>
720+
<execution>
721+
<id>post-integration-test</id>
722+
<goals>
723+
<goal>stop</goal>
724+
</goals>
725+
<configuration>
726+
<skip>${skipTests}</skip>
727+
</configuration>
728+
</execution>
729+
-->
730+
<execution>
731+
<id>id-build-info</id>
732+
<goals>
733+
<goal>build-info</goal>
734+
</goals>
735+
<configuration>
736+
<additionalProperties>
737+
<encoding.source>${project.build.sourceEncoding}</encoding.source>
738+
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
739+
<java.source>${maven.compiler.source}</java.source>
740+
<java.target>${maven.compiler.target}</java.target>
741+
</additionalProperties>
742+
</configuration>
743+
</execution>
744+
</executions>
745+
</plugin>
675746
<plugin>
676747
<groupId>org.apache.maven.plugins</groupId>
677748
<artifactId>maven-dependency-plugin</artifactId>
@@ -791,6 +862,32 @@
791862
<showDeprecation>true</showDeprecation>
792863
</configuration>
793864
</plugin>
865+
<plugin>
866+
<groupId>org.apache.maven.plugins</groupId>
867+
<artifactId>maven-surefire-plugin</artifactId>
868+
<configuration>
869+
<skipTests>${skipTests}</skipTests>
870+
<systemPropertyVariables>
871+
<spring.profiles.active>default</spring.profiles.active>
872+
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
873+
</systemPropertyVariables>
874+
</configuration>
875+
</plugin>
876+
<plugin>
877+
<groupId>org.apache.maven.plugins</groupId>
878+
<artifactId>maven-failsafe-plugin</artifactId>
879+
<configuration>
880+
<skipTests>${skipTests}</skipTests>
881+
<systemPropertyVariables>
882+
<spring.profiles.active>default</spring.profiles.active>
883+
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
884+
</systemPropertyVariables>
885+
</configuration>
886+
</plugin>
887+
<plugin>
888+
<groupId>org.apache.maven.plugins</groupId>
889+
<artifactId>maven-site-plugin</artifactId>
890+
</plugin>
794891
</plugins>
795892
</build>
796893

@@ -804,121 +901,8 @@
804901
<value>default</value>
805902
</property>
806903
</activation>
807-
<build>
808-
<finalName>simpleworklist</finalName>
809-
<defaultGoal>clean dependency:list install spring-boot:run</defaultGoal>
810-
<plugins>
811-
<plugin>
812-
<groupId>org.springframework.boot</groupId>
813-
<artifactId>spring-boot-maven-plugin</artifactId>
814-
<configuration>
815-
<addResources>true</addResources>
816-
<profiles>
817-
<profile>default</profile>
818-
</profiles>
819-
</configuration>
820-
<executions>
821-
<execution>
822-
<id>pre-integration-test</id>
823-
<goals>
824-
<goal>start</goal>
825-
</goals>
826-
<configuration>
827-
<skip>${skipTests}</skip>
828-
</configuration>
829-
</execution>
830-
<execution>
831-
<id>post-integration-test</id>
832-
<goals>
833-
<goal>stop</goal>
834-
</goals>
835-
<configuration>
836-
<skip>${skipTests}</skip>
837-
</configuration>
838-
</execution>
839-
<execution>
840-
<id>id-build-info</id>
841-
<goals>
842-
<goal>build-info</goal>
843-
</goals>
844-
<configuration>
845-
<additionalProperties>
846-
<encoding.source>${project.build.sourceEncoding}</encoding.source>
847-
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
848-
<java.source>${maven.compiler.source}</java.source>
849-
<java.target>${maven.compiler.target}</java.target>
850-
</additionalProperties>
851-
</configuration>
852-
</execution>
853-
</executions>
854-
</plugin>
855-
<plugin>
856-
<groupId>org.apache.maven.plugins</groupId>
857-
<artifactId>maven-surefire-plugin</artifactId>
858-
<configuration>
859-
<skipTests>${skipTests}</skipTests>
860-
<systemPropertyVariables>
861-
<spring.profiles.active>default</spring.profiles.active>
862-
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
863-
</systemPropertyVariables>
864-
</configuration>
865-
</plugin>
866-
<plugin>
867-
<groupId>org.apache.maven.plugins</groupId>
868-
<artifactId>maven-failsafe-plugin</artifactId>
869-
<configuration>
870-
<skipTests>${skipTests}</skipTests>
871-
<systemPropertyVariables>
872-
<spring.profiles.active>default</spring.profiles.active>
873-
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
874-
</systemPropertyVariables>
875-
</configuration>
876-
</plugin>
877-
</plugins>
878-
</build>
879904
</profile>
880905

881-
<profile>
882-
<id>testing</id>
883-
<build>
884-
<plugins>
885-
<plugin>
886-
<groupId>org.springframework.boot</groupId>
887-
<artifactId>spring-boot-maven-plugin</artifactId>
888-
<configuration>
889-
<addResources>true</addResources>
890-
<profiles>
891-
<profile>testing</profile>
892-
</profiles>
893-
</configuration>
894-
<executions>
895-
<execution>
896-
<id>pre-integration-test</id>
897-
<goals>
898-
<goal>start</goal>
899-
</goals>
900-
</execution>
901-
<execution>
902-
<id>post-integration-test</id>
903-
<goals>
904-
<goal>stop</goal>
905-
</goals>
906-
</execution>
907-
</executions>
908-
</plugin>
909-
<plugin>
910-
<groupId>org.apache.maven.plugins</groupId>
911-
<artifactId>maven-surefire-plugin</artifactId>
912-
<configuration>
913-
<systemPropertyVariables>
914-
<spring.profiles.active>testing</spring.profiles.active>
915-
</systemPropertyVariables>
916-
<skipTests>false</skipTests>
917-
</configuration>
918-
</plugin>
919-
</plugins>
920-
</build>
921-
</profile>
922906
</profiles>
923907

924908
<reporting>
@@ -987,16 +971,28 @@
987971
<plugin>
988972
<groupId>org.apache.maven.plugins</groupId>
989973
<artifactId>maven-jxr-plugin</artifactId>
974+
<configuration>
975+
<linkJavadoc>true</linkJavadoc>
976+
</configuration>
990977
</plugin>
991978
<plugin>
992979
<groupId>org.apache.maven.plugins</groupId>
993980
<artifactId>maven-checkstyle-plugin</artifactId>
981+
<configuration>
982+
<enableRulesSummary>true</enableRulesSummary>
983+
<enableSeveritySummary>true</enableSeveritySummary>
984+
<enableFilesSummary>true</enableFilesSummary>
985+
<failOnViolation>false</failOnViolation>
986+
<failsOnError>false</failsOnError>
987+
</configuration>
994988
</plugin>
995989
<plugin>
996990
<groupId>com.github.spotbugs</groupId>
997991
<artifactId>spotbugs-maven-plugin</artifactId>
998-
<configuration>
999-
<!-- Optional directory to put spotbugs xml report -->
992+
<configuration>
993+
<failOnError>false</failOnError>
994+
<detail>true</detail>
995+
<relaxed>true</relaxed>
1000996
</configuration>
1001997
</plugin>
1002998
<plugin>
@@ -1014,24 +1010,47 @@
10141010
<groupId>org.apache.maven.plugins</groupId>
10151011
<artifactId>maven-surefire-plugin</artifactId>
10161012
<configuration>
1017-
<skipTests>false</skipTests>
1013+
<skipTests>${skipTests}</skipTests>
10181014
<includes>
10191015
<include>**/*Tests.java</include>
10201016
<include>**/*Test.java</include>
10211017
</includes>
10221018
<excludes>
10231019
<exclude>**/Abstract*.java</exclude>
10241020
</excludes>
1021+
<systemPropertyVariables>
1022+
<spring.profiles.active>default</spring.profiles.active>
1023+
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
1024+
</systemPropertyVariables>
10251025
</configuration>
10261026
</plugin>
1027+
<plugin>
1028+
<groupId>org.apache.maven.plugins</groupId>
1029+
<artifactId>maven-failsafe-plugin</artifactId>
1030+
<configuration>
1031+
<skipTests>${skipTests}</skipTests>
1032+
<systemPropertyVariables>
1033+
<spring.profiles.active>default</spring.profiles.active>
1034+
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
1035+
</systemPropertyVariables>
1036+
</configuration>
1037+
</plugin>
1038+
<plugin>
1039+
<groupId>org.apache.maven.plugins</groupId>
1040+
<artifactId>maven-site-plugin</artifactId>
1041+
</plugin>
1042+
1043+
10271044
<plugin>
10281045
<groupId>org.apache.maven.plugins</groupId>
10291046
<artifactId>maven-surefire-report-plugin</artifactId>
10301047
<configuration>
1031-
<skipFailsafeReport>true</skipFailsafeReport>
1032-
<skipSurefireReport>true</skipSurefireReport>
1048+
<skipFailsafeReport>${skipTests}</skipFailsafeReport>
1049+
<skipSurefireReport>${skipTests}</skipSurefireReport>
10331050
</configuration>
10341051
</plugin>
1052+
1053+
10351054
</plugins>
10361055
</reporting>
10371056

0 commit comments

Comments
 (0)