Pārlūkot izejas kodu

modify '修改入口'

tangs 3 gadi atpakaļ
vecāks
revīzija
b5c08736fb
1 mainītis faili ar 20 papildinājumiem un 4 dzēšanām
  1. 20 4
      pom.xml

+ 20 - 4
pom.xml

@@ -55,14 +55,30 @@
     </dependencies>
 
     <build>
+        <!--使用Maven编译可执行的jar -->
         <plugins>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
+                <artifactId/>
                 <configuration>
-                    <source>11</source>
-                    <target>11</target>
+                    <appendAssemblyId>false</appendAssemblyId>
+                    <descriptorRefs>
+                        <descriptorRef>jar-with-dependencies</descriptorRef>
+                    </descriptorRefs>
+                    <archive>
+                        <manifest>
+                            <mainClass>com.wzkj.zhai.contact.Application</mainClass>
+                        </manifest>
+                    </archive>
                 </configuration>
+                <executions>
+                    <execution>
+                        <id>make-assembly</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>assembly</goal>
+                        </goals>
+                    </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>