fix: 移除 antrun 插件
This commit is contained in:
46
pom.xml
46
pom.xml
@@ -42,54 +42,8 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>copy-to-test-server</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<!-- 仅在 test-server 目录存在时执行 -->
|
|
||||||
<available file="${test.server.path}" property="test.server.exists"/>
|
|
||||||
<antcall target="copy-if-exists"/>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<!-- Ant 目标定义 -->
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<target name="copy-if-exists" if="test.server.exists">
|
|
||||||
<echo message="Cleaning old plugin files..."/>
|
|
||||||
<delete>
|
|
||||||
<fileset dir="${test.server.path}" includes="essentialsc-*.jar"/>
|
|
||||||
</delete>
|
|
||||||
<echo message="Copying plugin to test server..."/>
|
|
||||||
<copy file="${project.build.directory}/${project.build.finalName}.jar"
|
|
||||||
tofile="${test.server.path}/${project.build.finalName}.jar"
|
|
||||||
overwrite="true"/>
|
|
||||||
<echo message="Plugin copied successfully!"/>
|
|
||||||
</target>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
|
|||||||
Reference in New Issue
Block a user