Skip to content

Commit a5fe126

Browse files
author
Rajeev Kumar Singh
committed
project encoding and maven shade plugin example
1 parent d404267 commit a5fe126

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

Diff for: pom.xml

+30-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
<artifactId>excel-utils</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
14+
<java.version>1.8</java.version>
15+
</properties>
1116

1217
<dependencies>
1318
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
@@ -30,11 +35,34 @@
3035
<plugin>
3136
<groupId>org.apache.maven.plugins</groupId>
3237
<artifactId>maven-compiler-plugin</artifactId>
38+
<version>3.7.0</version>
3339
<configuration>
34-
<source>1.8</source>
35-
<target>1.8</target>
40+
<source>${java.version}</source>
41+
<target>${java.version}</target>
3642
</configuration>
3743
</plugin>
44+
<!--
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-shade-plugin</artifactId>
48+
<version>3.1.0</version>
49+
<configuration>
50+
<transformers>
51+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
52+
<mainClass>ExcelReader</mainClass>
53+
</transformer>
54+
</transformers>
55+
</configuration>
56+
<executions>
57+
<execution>
58+
<phase>package</phase>
59+
<goals>
60+
<goal>shade</goal>
61+
</goals>
62+
</execution>
63+
</executions>
64+
</plugin>
65+
-->
3866
</plugins>
3967
</build>
4068
</project>

0 commit comments

Comments
 (0)