wangwei 7 年之前
父节点
当前提交
2e3489d5aa
共有 2 个文件被更改,包括 12 次插入4 次删除
  1. 4 3
      examcloud-core-basic-starter/assembly.xml
  2. 8 1
      examcloud-core-basic-starter/pom.xml

+ 4 - 3
examcloud-core-basic-starter/assembly.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
 	<id>distribution</id>
 	<formats>
 		<format>zip</format>
@@ -7,11 +8,11 @@
 	<fileSets>
 		<fileSet>
 			<directory>${project.basedir}/src/main/resources</directory>
-			<outputDirectory>/</outputDirectory>
+			<outputDirectory>/config</outputDirectory>
 		</fileSet>
 		<fileSet>
 			<directory>${project.basedir}/shell</directory>
-			<outputDirectory>\</outputDirectory>
+			<outputDirectory>/</outputDirectory>
 		</fileSet>
 	</fileSets>
 	<dependencySets>

+ 8 - 1
examcloud-core-basic-starter/pom.xml

@@ -29,7 +29,14 @@
 							<addClasspath>true</addClasspath>
 							<classpathPrefix>./</classpathPrefix>
 						</manifest>
+						<manifestEntries>
+							<Class-Path>../config/</Class-Path>
+						</manifestEntries>
 					</archive>
+					<excludes>
+						<exclude>*.properties</exclude>
+						<exclude>*.xml </exclude>
+					</excludes>
 				</configuration>
 			</plugin>
 			<plugin>
@@ -46,7 +53,7 @@
 						<id>make-assembly</id>
 						<phase>package</phase>
 						<goals>
-							<goal>single</goal>
+							<goal>assembly</goal>
 						</goals>
 					</execution>
 				</executions>