|
49 | 49 | <compile.version>8</compile.version> |
50 | 50 | </properties> |
51 | 51 | <dependencies> |
52 | | - <dependency> |
53 | | - <groupId>com.fasterxml.jackson.core</groupId> |
54 | | - <artifactId>jackson-databind</artifactId> |
55 | | - <version>2.13.4.2</version> |
56 | | - </dependency> |
57 | 52 |
|
58 | 53 | <dependency> |
59 | 54 | <groupId>org.projectlombok</groupId> |
60 | 55 | <artifactId>lombok</artifactId> |
61 | 56 | <version>1.18.24</version> |
62 | 57 | <optional>true</optional> |
| 58 | + <scope>test</scope> |
63 | 59 | </dependency> |
64 | 60 |
|
65 | 61 | <dependency> |
66 | 62 | <groupId>net.dreamlu</groupId> |
67 | 63 | <artifactId>mica-http</artifactId> |
68 | 64 | <version>2.7.6</version> |
69 | 65 | </dependency> |
70 | | - <dependency> |
71 | | - <groupId>com.google.code.gson</groupId> |
72 | | - <artifactId>gson</artifactId> |
73 | | - <version>2.9.1</version> |
74 | | - </dependency> |
| 66 | + <!-- <dependency>--> |
| 67 | + <!-- <groupId>com.google.code.gson</groupId>--> |
| 68 | + <!-- <artifactId>gson</artifactId>--> |
| 69 | + <!-- <version>2.9.1</version>--> |
| 70 | + <!-- </dependency>--> |
75 | 71 | <dependency> |
76 | 72 | <groupId>com.alibaba.fastjson2</groupId> |
77 | 73 | <artifactId>fastjson2</artifactId> |
78 | 74 | <version>2.0.20</version> |
79 | | - |
80 | 75 | </dependency> |
81 | 76 | <!-- <dependency>--> |
82 | 77 | <!-- <groupId>com.squareup.okhttp3</groupId>--> |
83 | 78 | <!-- <artifactId>okhttp</artifactId>--> |
84 | 79 | <!-- <version>3.14.9</version>--> |
85 | 80 | <!-- </dependency>--> |
86 | | - <dependency> |
87 | | - <groupId>com.google.guava</groupId> |
88 | | - <artifactId>guava</artifactId> |
89 | | - <version>31.1-jre</version> |
90 | | - </dependency> |
| 81 | + <!-- <dependency>--> |
| 82 | + <!-- <groupId>com.google.guava</groupId>--> |
| 83 | + <!-- <artifactId>guava</artifactId>--> |
| 84 | + <!-- <version>31.1-jre</version>--> |
| 85 | + <!-- </dependency>--> |
91 | 86 | <dependency> |
92 | 87 | <groupId>cn.hutool</groupId> |
93 | 88 | <artifactId>hutool-core</artifactId> |
|
179 | 174 | <artifactId>nexus-staging-maven-plugin</artifactId> |
180 | 175 | </plugin> |
181 | 176 |
|
| 177 | + <!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 --> |
| 178 | + <plugin> |
| 179 | + <groupId>org.apache.maven.plugins</groupId> |
| 180 | + <artifactId>maven-jar-plugin</artifactId> |
| 181 | + <version>3.1.0</version> |
| 182 | + <configuration> |
| 183 | + <archive> |
| 184 | + <manifest> |
| 185 | + <addClasspath>true</addClasspath> |
| 186 | + <classpathPrefix>lib/</classpathPrefix> |
| 187 | + <mainClass>com.github.plexpt.chatgpt.ChatGTP</mainClass> |
| 188 | + </manifest> |
| 189 | + </archive> |
| 190 | + </configuration> |
| 191 | + </plugin> |
| 192 | + <plugin> |
| 193 | + <groupId>org.apache.maven.plugins</groupId> |
| 194 | + <artifactId>maven-dependency-plugin</artifactId> |
| 195 | + <version>3.1.1</version> |
| 196 | + <executions> |
| 197 | + <execution> |
| 198 | + <id>copy-dependencies</id> |
| 199 | + <phase>package</phase> |
| 200 | + <goals> |
| 201 | + <goal>copy-dependencies</goal> |
| 202 | + </goals> |
| 203 | + <configuration> |
| 204 | + <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 205 | + </configuration> |
| 206 | + </execution> |
| 207 | + </executions> |
| 208 | + </plugin> |
182 | 209 |
|
183 | 210 | </plugins> |
184 | 211 | </build> |
|
0 commit comments