|
113 | 113 | <target>8</target> |
114 | 114 | </configuration> |
115 | 115 | </plugin> |
116 | | - <plugin> |
117 | | - <groupId>org.apache.maven.plugins</groupId> |
118 | | - <artifactId>maven-surefire-plugin</artifactId> |
119 | | - <configuration> |
120 | | - <argLine>@{argLine} -Xms512m -Xmx1500m</argLine> |
121 | | - <parallel>methods</parallel> |
122 | | - <perCoreThreadCount>false</perCoreThreadCount> |
123 | | - <threadCount>1</threadCount> |
124 | | - <forkCount>1</forkCount> |
125 | | - <reuseForks>false</reuseForks> |
126 | | - </configuration> |
127 | | - </plugin> |
128 | 116 | </plugins> |
129 | 117 | </build> |
130 | | - |
| 118 | + <profiles> |
| 119 | + <profile> |
| 120 | + <id>surefire-newerJava</id> |
| 121 | + <activation> |
| 122 | + <jdk>(1.8,)</jdk> |
| 123 | + </activation> |
| 124 | + <build> |
| 125 | + <plugins> |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-surefire-plugin</artifactId> |
| 129 | + <configuration> |
| 130 | + <argLine> |
| 131 | + @{argLine} -Xms512m -Xmx1500m --illegal-access=warn --add-opens java.base/java.util,java.time=ALL-UNNAMED |
| 132 | + </argLine> |
| 133 | + <parallel>methods</parallel> |
| 134 | + <perCoreThreadCount>false</perCoreThreadCount> |
| 135 | + <threadCount>1</threadCount> |
| 136 | + <forkCount>1</forkCount> |
| 137 | + <reuseForks>false</reuseForks> |
| 138 | + </configuration> |
| 139 | + </plugin> |
| 140 | + </plugins> |
| 141 | + </build> |
| 142 | + </profile> |
| 143 | + <profile> |
| 144 | + <id>surefire-java8</id> |
| 145 | + <activation> |
| 146 | + <jdk>1.8</jdk> |
| 147 | + </activation> |
| 148 | + <build> |
| 149 | + <plugins> |
| 150 | + <plugin> |
| 151 | + <groupId>org.apache.maven.plugins</groupId> |
| 152 | + <artifactId>maven-surefire-plugin</artifactId> |
| 153 | + <configuration> |
| 154 | + <argLine>@{argLine} -Xms512m -Xmx1500m</argLine> |
| 155 | + <parallel>methods</parallel> |
| 156 | + <perCoreThreadCount>false</perCoreThreadCount> |
| 157 | + <threadCount>1</threadCount> |
| 158 | + <forkCount>1</forkCount> |
| 159 | + <reuseForks>false</reuseForks> |
| 160 | + </configuration> |
| 161 | + </plugin> |
| 162 | + </plugins> |
| 163 | + </build> |
| 164 | + </profile> |
| 165 | + </profiles> |
131 | 166 | </project> |
0 commit comments