|
@@ -11,45 +11,27 @@
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<packaging>jar</packaging>
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
- <artifactId>yudao-module-iot-demo-plugin</artifactId>
|
|
|
|
|
|
+ <artifactId>yudao-module-iot-plugin-http</artifactId>
|
|
|
|
+ <version>1.0.0</version>
|
|
|
|
|
|
<name>${project.artifactId}</name>
|
|
<name>${project.artifactId}</name>
|
|
<description>
|
|
<description>
|
|
- 物联网 插件模块 - demo 插件
|
|
|
|
|
|
+ 物联网 插件模块 - http 插件
|
|
</description>
|
|
</description>
|
|
|
|
|
|
<properties>
|
|
<properties>
|
|
<!-- 插件相关 -->
|
|
<!-- 插件相关 -->
|
|
- <plugin.id>demo-plugin</plugin.id>
|
|
|
|
- <plugin.class>cn.iocoder.yudao.module.iot.plugin.DemoPlugin</plugin.class>
|
|
|
|
- <plugin.version>0.0.1</plugin.version>
|
|
|
|
- <plugin.provider>ahh</plugin.provider>
|
|
|
|
|
|
+ <plugin.id>${project.artifactId}</plugin.id>
|
|
|
|
+ <plugin.class>cn.iocoder.yudao.module.iot.config.HttpVertxPlugin</plugin.class>
|
|
|
|
+ <plugin.version>${project.version}</plugin.version>
|
|
|
|
+ <plugin.provider>yudao</plugin.provider>
|
|
|
|
+ <plugin.description>${project.artifactId}-${project.version}</plugin.description>
|
|
<plugin.dependencies/>
|
|
<plugin.dependencies/>
|
|
</properties>
|
|
</properties>
|
|
|
|
|
|
<build>
|
|
<build>
|
|
<plugins>
|
|
<plugins>
|
|
- <!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section)
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
|
- <artifactId>properties-maven-plugin</artifactId>
|
|
|
|
- <version>1.0-alpha-2</version>
|
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>initialize</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>read-project-properties</goal>
|
|
|
|
- </goals>
|
|
|
|
- <configuration>
|
|
|
|
- <files>
|
|
|
|
- <file>plugin.properties</file>
|
|
|
|
- </files>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- -->
|
|
|
|
-
|
|
|
|
|
|
+ <!-- 插件模式 zip -->
|
|
<plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
@@ -60,7 +42,8 @@
|
|
<phase>package</phase>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<configuration>
|
|
<target>
|
|
<target>
|
|
- <unzip src="target/${project.artifactId}-${project.version}.${project.packaging}" dest="target/plugin-classes" />
|
|
|
|
|
|
+ <unzip src="target/${project.artifactId}-${project.version}.${project.packaging}"
|
|
|
|
+ dest="target/plugin-classes"/>
|
|
</target>
|
|
</target>
|
|
</configuration>
|
|
</configuration>
|
|
<goals>
|
|
<goals>
|
|
@@ -92,6 +75,7 @@
|
|
</executions>
|
|
</executions>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
|
|
|
+ <!-- 插件模式 jar -->
|
|
<plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
@@ -103,12 +87,30 @@
|
|
<Plugin-Class>${plugin.class}</Plugin-Class>
|
|
<Plugin-Class>${plugin.class}</Plugin-Class>
|
|
<Plugin-Version>${plugin.version}</Plugin-Version>
|
|
<Plugin-Version>${plugin.version}</Plugin-Version>
|
|
<Plugin-Provider>${plugin.provider}</Plugin-Provider>
|
|
<Plugin-Provider>${plugin.provider}</Plugin-Provider>
|
|
|
|
+ <Plugin-Description>${plugin.description}</Plugin-Description>
|
|
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
|
|
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
|
|
</manifestEntries>
|
|
</manifestEntries>
|
|
</archive>
|
|
</archive>
|
|
</configuration>
|
|
</configuration>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
|
|
|
+ <!-- 独立模式 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
+ <version>${spring.boot.version}</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <classifier>-standalone</classifier>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
<plugin>
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<configuration>
|
|
@@ -123,14 +125,11 @@
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
- <version>${spring.boot.version}</version>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
</dependency>
|
|
</dependency>
|
|
<!-- PF4J Spring 集成 -->
|
|
<!-- PF4J Spring 集成 -->
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.pf4j</groupId>
|
|
<groupId>org.pf4j</groupId>
|
|
<artifactId>pf4j-spring</artifactId>
|
|
<artifactId>pf4j-spring</artifactId>
|
|
- <scope>provided</scope>
|
|
|
|
</dependency>
|
|
</dependency>
|
|
<!-- 项目依赖 -->
|
|
<!-- 项目依赖 -->
|
|
<dependency>
|
|
<dependency>
|
|
@@ -141,8 +140,11 @@
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<artifactId>lombok</artifactId>
|
|
- <version>${lombok.version}</version>
|
|
|
|
- <scope>provided</scope>
|
|
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- Vert.x Web -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.vertx</groupId>
|
|
|
|
+ <artifactId>vertx-web</artifactId>
|
|
</dependency>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencies>
|
|
</project>
|
|
</project>
|