forked from work7z/CodeGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
244 lines (205 loc) · 11.3 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cc.codegen.client</groupId>
<artifactId>CodeGenBoot</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<name>CodeGen Process Manager</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<kotlin.version>1.5.10</kotlin.version>
</properties>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.79</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-http</artifactId>
<version>5.8.0.M3</version>
</dependency>
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>cc.codegen.client.CodeGenProcessManager</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>com.jolira</groupId>
<artifactId>onejar-maven-plugin</artifactId>
<version>1.4.4</version>
<executions>
<execution>
<configuration>
<attachToBuild>true</attachToBuild>
<classifier>onejar</classifier>
<filename>CodeGen-1.3.0.jar</filename>
</configuration>
<goals>
<goal>one-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.jolira</groupId>-->
<!-- <artifactId>onejar-maven-plugin</artifactId>-->
<!-- <version>1.4.4</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <configuration>-->
<!-- <attachToBuild>true</attachToBuild>-->
<!-- <classifier>onejar</classifier>-->
<!-- <filename>application.jar</filename>-->
<!-- </configuration>-->
<!-- <goals>-->
<!-- <goal>one-jar</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- Allows the example to be run via 'mvn camel:run' -->
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<logClasspath>true</logClasspath>
<mainClass>org.example.MainApp</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>7</source>
<target>7</target>
</configuration>
<!-- <configuration>-->
<!-- <release>1.8</release>-->
<!-- </configuration>-->
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.github.wvengen</groupId>-->
<!-- <artifactId>proguard-maven-plugin</artifactId>-->
<!-- <version>2.2.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <!– 混淆时刻,这里是打包的时候混淆–>-->
<!-- <phase>compile</phase>-->
<!-- <goals>-->
<!-- <!– 使用插件的什么功能,当然是混淆–>-->
<!-- <goal>proguard</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- <!– 是否将生成的PG文件安装部署–>-->
<!-- <attach>true</attach>-->
<!-- <!– 是否混淆–>-->
<!-- <obfuscate>true</obfuscate>-->
<!-- <!– 指定生成文件分类 –>-->
<!-- <attachArtifactClassifier>pg</attachArtifactClassifier>-->
<!-- <options>-->
<!-- <!– JDK目标版本1.8–>-->
<!-- <option>-target 1.8</option>-->
<!-- <!– 不做收缩(删除注释、未被引用代码)–>-->
<!-- <!– <option>-dontshrink</option>–>-->
<!-- <!– 不做优化(变更代码实现逻辑)–>-->
<!-- <option>-dontoptimize</option>-->
<!-- <!– <option>-classobfuscationdictionary ./mytest.txt</option>–>-->
<!-- <!– <option>-packageobfuscationdictionary ./mytest.txt</option>–>-->
<!-- <!– <option>-obfuscationdictionary ./mytest.txt</option>–>-->
<!-- <!– 不路过非公用类文件及成员–>-->
<!-- <option>-dontskipnonpubliclibraryclasses</option>-->
<!-- <option>-dontskipnonpubliclibraryclassmembers</option>-->
<!-- <!–不用大小写混合类名机制–>-->
<!-- <!– <option>-dontusemixedcaseclassnames</option>–>-->
<!-- <!– 优化时允许访问并修改有修饰符的类和类的成员 –>-->
<!-- <option>-allowaccessmodification</option>-->
<!-- <!– 确定统一的混淆类的成员名称来增加混淆–>-->
<!-- <option>-useuniqueclassmembernames</option>-->
<!-- <option>-ignorewarnings</option>-->
<!-- <option>-keepdirectories</option>-->
<!-- <!– 不混淆所有包名–>-->
<!-- <!– <option>-keeppackagenames</option>–>-->
<!-- <!– 需要保持的属性:异常,注解等–>-->
<!-- <option>-keepattributes-->
<!-- Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LocalVariable*Table,*Annotation*,Synthetic,EnclosingMethod-->
<!-- </option>-->
<!-- <!– 不混淆所有的set/get方法–>-->
<!-- <!– <option>-keepclassmembers public class * {void set*(***);*** get*();}</option>–>-->
<!-- <!– 不混淆包下的所有类名,且类中的方法也不混淆–>-->
<!-- <!– <option>-keep class com.xxx.xxx.bboss.SystemConfig { <methods>; }</option>–>-->
<!-- <!–<option>-keep class com.xxx.xxx.framework.** { *; }</option>–>-->
<!-- <!–<option>-keep class com.xxx.xxx.xxx.controller.** { <methods>; }</option>–>-->
<!-- <!–<option>-keep class com.xxx.xxx.xxx.dao.** { <methods>; }</option>–>-->
<!-- <!–<option>-keep class com.xxx.xxx.xxx.exception { <methods>; }</option>–>-->
<!-- <option>-keep class org.codehaus.classworlds.** {*;}</option>-->
<!-- <option>-keep class cc.codegen.client.CodeGenProcessManager {*;}</option>-->
<!-- <!– <option>-keep class com.denote.client.Application {*;}</option>–>-->
<!-- <!– <option>-keepclassmembers class * { <fields>;<methods>; }</option>–>-->
<!-- </options>-->
<!-- <!–class 混淆后输出的jar包–>-->
<!-- <outjar>CodeGenBoot.jar</outjar>-->
<!-- <!– 添加依赖,这里你可以按你的需要修改,这里测试只需要一个JRE的Runtime包就行了 –>-->
<!-- <!–<libs>–>-->
<!-- <!– <lib>${java.home}/lib/rt.jar</lib>–>-->
<!-- <!–</libs>–>-->
<!-- <!– 对什么东西进行加载,这里仅有classes成功,毕竟你也不可能对配置文件及JSP混淆吧–>-->
<!-- <!–<injar>classes</injar>–>-->
<!-- <!– 输出目录–>-->
<!-- <!–<outputDirectory>${project.build.directory}</outputDirectory>–>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>
</project>