Skip to content

Commit 108d1a0

Browse files
try to fix build
1 parent 6238fd8 commit 108d1a0

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
</resource>
5454
</resources>
5555
<plugins>
56+
<plugin>
57+
<groupId>org.apache.maven.plugins</groupId>
58+
<artifactId>maven-compiler-plugin</artifactId>
59+
<version>3.13.0</version>
60+
</plugin>
5661
<plugin>
5762
<groupId>org.apache.maven.plugins</groupId>
5863
<artifactId>maven-jar-plugin</artifactId>
@@ -201,6 +206,31 @@
201206
<artifactId>versions-maven-plugin</artifactId>
202207
<version>2.18.0</version>
203208
</plugin>
209+
<plugin>
210+
<groupId>org.codehaus.mojo</groupId>
211+
<artifactId>exec-maven-plugin</artifactId>
212+
<version>3.5.0</version>
213+
<executions>
214+
<!-- Smoke-test the shaded JAR after `mvn package`. Minimization can silently
215+
drop reflection-loaded classes; running the version flag exercises App.main,
216+
commons-cli, the version-properties resource, and logback bootstrap. -->
217+
<execution>
218+
<id>shaded-jar-smoke-test</id>
219+
<phase>verify</phase>
220+
<goals>
221+
<goal>exec</goal>
222+
</goals>
223+
<configuration>
224+
<executable>java</executable>
225+
<arguments>
226+
<argument>-jar</argument>
227+
<argument>${project.build.directory}/${project.build.finalName}.jar</argument>
228+
<argument>--version</argument>
229+
</arguments>
230+
</configuration>
231+
</execution>
232+
</executions>
233+
</plugin>
204234
<plugin>
205235
<groupId>org.jacoco</groupId>
206236
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)