88 lines
2.9 KiB
XML
88 lines
2.9 KiB
XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.adminframework.boot</groupId>
|
|
<artifactId>luqj-plugin-demo</artifactId>
|
|
<version>1.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>luqj-plugin-demo</name>
|
|
<url>http://maven.apache.org</url>
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>maven-releases</id>
|
|
<url>http://gitlab.chatshop.com.cn:8081/repository/maven-releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>snapshots</id>
|
|
<url>http://gitlab.chatshop.com.cn:8081/repository/maven-snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<plugin.dir>D:\luqj-plugins\plugin-demo\1.0.0</plugin.dir>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.adminframework.boot</groupId>
|
|
<artifactId>luqj-plugin-interface</artifactId>
|
|
<version>2.3.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ruoyi</groupId>
|
|
<artifactId>luqj-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>1.0b3</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
|
|
<!-- antcontrib 支持 -->
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
|
|
classpathref="maven.runtime.classpath"/>
|
|
|
|
<if>
|
|
<contains string="${os.name}" substring="Windows"/>
|
|
<then>
|
|
<echo>copying handler.jar to plugin dir ...</echo>
|
|
<sleep seconds="5"/>
|
|
<copy
|
|
tofile="${plugin.dir}/${project.artifactId}-${project.version}.jar"
|
|
file="${project.basedir}/target/${project.artifactId}-${project.version}.jar"/>
|
|
</then>
|
|
<else>
|
|
<echo>current os is ${os.name}, will not copy handler.jar to plugin dir</echo>
|
|
</else>
|
|
</if>
|
|
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|