From 6a673ca73ba8fbb6851cb070db2b92035cbde52a Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 26 三月 2025 16:32:08 +0800 Subject: [PATCH] httpCollectorForAsde --- iailab-plat-sdk/pom.xml | 62 +++++++++++++++++++++++++------ 1 files changed, 50 insertions(+), 12 deletions(-) diff --git a/iailab-plat-sdk/pom.xml b/iailab-plat-sdk/pom.xml index a5d8030..372b7eb 100644 --- a/iailab-plat-sdk/pom.xml +++ b/iailab-plat-sdk/pom.xml @@ -13,7 +13,7 @@ <name>${project.artifactId}</name> <description> - sdk + 工业互联网提供的授权sdk </description> <dependencies> @@ -42,8 +42,14 @@ <artifactId>hibernate-validator</artifactId> </dependency> <dependency> - <groupId>com.iailab</groupId> - <artifactId>iailab-common-test</artifactId> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13.2</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> @@ -55,17 +61,49 @@ <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>3.3.0</version> - <configuration> - <archive> - <manifest> - <addClasspath>true</addClasspath> - </manifest> - </archive> - </configuration> + <artifactId>maven-assembly-plugin</artifactId> + <version>3.6.0</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptorRefs> + <!-- 使用预定义的打包方式:将所有内容合并到 JAR 中 --> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + <!-- 指定主类 --> + <archive> + <manifest> + <mainClass>com.iailab.sdk.IailabPlatSdkMain</mainClass> + </manifest> + </archive> + </configuration> + </execution> + </executions> </plugin> </plugins> </build> +<!-- <build>--> +<!-- <plugins>--> +<!-- <plugin>--> +<!-- <groupId>org.apache.maven.plugins</groupId>--> +<!-- <artifactId>maven-jar-plugin</artifactId>--> +<!-- <version>3.3.0</version>--> +<!-- <configuration>--> +<!-- <archive>--> +<!-- <manifest>--> +<!-- <addClasspath>true</addClasspath>--> +<!-- <classpathPrefix>lib/</classpathPrefix>--> +<!-- <mainClass>com.iailab.sdk.IailabPlatSdkMain</mainClass>--> +<!-- </manifest>--> +<!-- </archive>--> +<!-- </configuration>--> +<!-- </plugin>--> +<!-- </plugins>--> +<!-- </build>--> + </project> -- Gitblit v1.9.3