Skip to content

Commit 42db539

Browse files
committed
add: 添加 jmg-all 模块(All In One)
1 parent eb32f32 commit 42db539

File tree

3 files changed

+104
-1
lines changed

3 files changed

+104
-1
lines changed

jmg-all/pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>jmg</groupId>
8+
<artifactId>java-memshell-generator</artifactId>
9+
<version>1.0.8</version>
10+
</parent>
11+
12+
<artifactId>jmg-all</artifactId>
13+
14+
<properties>
15+
<maven.compiler.source>8</maven.compiler.source>
16+
<maven.compiler.target>8</maven.compiler.target>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
</properties>
19+
<dependencies>
20+
<dependency>
21+
<groupId>jmg</groupId>
22+
<artifactId>jmg-woodpecker</artifactId>
23+
<version>${parent.version}</version>
24+
<scope>compile</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>jmg</groupId>
28+
<artifactId>jmg-sdk</artifactId>
29+
<version>${parent.version}</version>
30+
<scope>compile</scope>
31+
</dependency>
32+
<dependency>
33+
<groupId>jmg</groupId>
34+
<artifactId>jmg-cli</artifactId>
35+
<version>${parent.version}</version>
36+
<scope>compile</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>jmg</groupId>
40+
<artifactId>jmg-gui</artifactId>
41+
<version>${parent.version}</version>
42+
<scope>compile</scope>
43+
</dependency>
44+
</dependencies>
45+
46+
<build>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-assembly-plugin</artifactId>
51+
<version>3.6.0</version>
52+
<configuration>
53+
<descriptorRefs>
54+
<descriptorRef>jar-with-dependencies</descriptorRef>
55+
</descriptorRefs>
56+
<archive>
57+
<manifest>
58+
<mainClass>jmg.all.jMGApp</mainClass>
59+
</manifest>
60+
</archive>
61+
<appendAssemblyId>false</appendAssemblyId>
62+
<outputDirectory>../releases</outputDirectory>
63+
</configuration>
64+
<executions>
65+
<execution>
66+
<id>make-assembly</id>
67+
<phase>package</phase>
68+
<goals>
69+
<goal>single</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
</plugins>
75+
</build>
76+
</project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package jmg.all;
2+
3+
import jmg.core.config.Constants;
4+
5+
public class jMGApp {
6+
public static void main(String[] args) throws Throwable {
7+
if (args.length < 1) {
8+
System.out.println("jmg usage:");
9+
System.out.printf("1. java -jar jmg-all-%s.jar cli%n", Constants.JMG_VERSION);
10+
System.out.printf("2. java -jar jmg-all-%s.jar gui%n", Constants.JMG_VERSION);
11+
return;
12+
}
13+
14+
switch (args[0]) {
15+
case "gui":
16+
jmg.gui.GUIApp.main(args);
17+
break;
18+
case "cli":
19+
jmg.cli.CLIApp.main(args);
20+
break;
21+
default:
22+
System.out.println("Invalid command. Please use either 'cli' or 'gui'.");
23+
break;
24+
}
25+
}
26+
}

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<module>jmg-extender</module>
1919
<module>jmg-woodpecker</module>
2020
<module>jmg-sdk</module>
21-
<!-- <module>jmg-cli</module>-->
21+
<module>jmg-cli</module>
22+
<module>jmg-all</module>
2223
</modules>
2324

2425
<properties>

0 commit comments

Comments
 (0)