Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
添加构建插件&修改说明
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaffebabe committed Dec 22, 2019
1 parent db5827c commit 4c475d8
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

![](https://github.com/0xcaffebabe/seeaw4/workflows/Java%20CI/badge.svg)

![](https://img.shields.io/badge/JDK-1.8-green)

# SEEAW4

- see anywhere 4.0 version
Expand Down Expand Up @@ -42,7 +44,11 @@

- desktop

构建一个跨平台的桌面客户端程序,可以独立运行
构建一个跨平台(win,linux,osx)的桌面客户端程序,可以独立运行(该项目必须在JDK1.8下构建,如果使用的是openjdk,需要安装openjfx依赖)

- android

构建一个安卓客户端,功能同desktop

- web

Expand All @@ -54,6 +60,26 @@

## 使用

- 暂时还未开发完全
执行构建

```shell script
mvn package
```

- 启动server

```shell script
java -jar ./seeaw4_server/target/seeaw4_server-1.0-SNAPSHOT-jar-with-dependencies.jar
```












1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<properties>
<encoding>UTF-8</encoding>
<java.version>8</java.version>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
30 changes: 30 additions & 0 deletions seeaw4_client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<packaging>jar</packaging>
<artifactId>seeaw4_client</artifactId>
<dependencies>
<dependency>
Expand All @@ -32,5 +33,34 @@
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<encoding>UTF-8</encoding>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>

<manifest>
<mainClass>wang.ismy.seeaw4.client.Client</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
1 change: 1 addition & 0 deletions seeaw4_common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<modelVersion>4.0.0</modelVersion>

<artifactId>seeaw4_common</artifactId>
Expand Down
31 changes: 31 additions & 0 deletions seeaw4_server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
<encoding>UTF-8</encoding>
<java.version>8</java.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
Expand All @@ -28,4 +29,34 @@
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<configuration>

<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>

<manifest>
<mainClass>wang.ismy.seeaw4.server.Server</mainClass>
</manifest>
</archive>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4c475d8

Please sign in to comment.