Commit 6650cebf authored by 以墨为白's avatar 以墨为白 🎧

1

parent 3799343b
...@@ -175,6 +175,43 @@ ...@@ -175,6 +175,43 @@
</dependencies> </dependencies>
</plugin> </plugin>
<!-- 需要有主函数才行,这里测试的没有因此注释不用 -->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-jar-plugin</artifactId>-->
<!-- <version>3.2.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>test-jar</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- <archive>-->
<!-- <manifest>-->
<!-- <mainClass>com.zksy.szpt.TestAppStore</mainClass>-->
<!-- </manifest>-->
<!-- </archive>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- 如果你编译了一个包含单元测试的单独的JAR文件,这个JAR文件通常不会包含main方法,因此无法直接通过Java命令运行。但是,你可以使用Maven来运行这些测试。如果你确实需要将测试代码打包成一个可执行的JAR文件,-->
<!-- 并且希望它能够运行,你需要确保在<configuration>部分指定一个mainClass,这个类中需要有一个main方法来启动测试。-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-jar-plugin</artifactId>-->
<!-- <version>3.2.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>test-jar</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins> </plugins>
<resources> <resources>
<resource> <resource>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment