Browse Source

打成一个大包

menglu 3 years ago
parent
commit
66ac67f2fc
1 changed files with 7 additions and 33 deletions
  1. 7 33
      ibms-data-sdk/pom.xml

+ 7 - 33
ibms-data-sdk/pom.xml

@@ -216,21 +216,17 @@
 	</dependencies>
 
 	<build>
-		<resources>
-			<resource>
-				<directory>src/main/resources</directory>
-				<targetPath>${project.build.directory}/classes</targetPath>
-			</resource>
-		</resources>
+		<finalName>${project.artifactId}</finalName>
 		<plugins>
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-compiler-plugin</artifactId>
-				<version>2.4</version>
+				<version>3.8.1</version>
 				<configuration>
 					<source>1.8</source>
 					<target>1.8</target>
-					<encoding>utf-8</encoding>
+					<encoding>UTF-8</encoding>
+					<skip>true</skip>
 				</configuration>
 			</plugin>
 			<plugin>
@@ -242,6 +238,7 @@
 						<exclude>*.properties</exclude>
 						<exclude>*.xml</exclude>
 						<exclude>*.json</exclude>
+						<exclude>*.xlsx</exclude>
 					</excludes>
 					<archive>
 						<manifest>
@@ -252,31 +249,8 @@
 				</configuration>
 			</plugin>
 			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-dependency-plugin</artifactId>
-				<version>2.4</version>
-				<executions>
-					<execution>
-						<id>copy</id>
-						<phase>package</phase>
-						<goals>
-							<goal>copy-dependencies</goal>
-						</goals>
-						<configuration>
-							<outputDirectory>
-								${project.build.directory}
-							</outputDirectory>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-resources-plugin</artifactId>
-				<version>2.4</version>
-				<configuration>
-					<encoding>UTF-8</encoding>
-				</configuration>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
 			</plugin>
 		</plugins>
 	</build>