Skip to content

Commit dbfa9a0

Browse files
author
moshunwei
committed
'update'
1 parent 647ef2a commit dbfa9a0

38 files changed

+144
-562
lines changed

.classpath

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: [ v* ] # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 1.8
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 1.8
18+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
19+
settings-path: ${{ github.workspace }} # location for the settings.xml file
20+
21+
- name: Build with Maven
22+
run: |
23+
mvn clean package -DskipTests
24+
tar -zcvf export-database-structure.tar.gz target/export-database-structure-0.0.1-SNAPSHOT-jar-with-dependencies.jar
25+
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: Release ${{ github.ref }}
34+
draft: false
35+
prerelease: false
36+
37+
- name: Upload Release Asset Jar
38+
id: upload-release-export-database-structure
39+
uses: actions/upload-release-asset@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
44+
asset_path: ./export-database-structure.tar.gz
45+
asset_name: export-database-structure.tar.gz
46+
asset_content_type: application/tar.gz

.project

Lines changed: 0 additions & 23 deletions
This file was deleted.

.settings/org.eclipse.core.resources.prefs

Lines changed: 0 additions & 5 deletions
This file was deleted.

.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 5 deletions
This file was deleted.

.settings/org.eclipse.m2e.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# MysqlTableStructure
22
导出mysql,oracle表结构到word文档
33

4-
发个福利
5-
6-
可以运行的jar下载地址:http://shiro.yzliusha.cn/jar/Structure.jar
7-
8-
可视化jar包下载地址:http://shiro.yzliusha.cn/jar/StructureGUI.jar

TableStructure.iml

Lines changed: 0 additions & 38 deletions
This file was deleted.

pom.xml

Lines changed: 70 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>com.msw</groupId>
@@ -12,109 +12,81 @@
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
<encoding>UTF-8</encoding>
15+
<encoding>UTF-8</encoding>
1616
<java.version>1.8</java.version>
1717
</properties>
1818

1919
<dependencies>
2020
<dependency>
21-
<groupId>junit</groupId>
22-
<artifactId>junit</artifactId>
23-
<version>4.12</version>
24-
<scope>test</scope>
25-
</dependency>
26-
<dependency>
27-
<groupId>mysql</groupId>
28-
<artifactId>mysql-connector-java</artifactId>
29-
<version>5.1.37</version>
30-
</dependency>
31-
<dependency>
32-
<groupId>com.oracle</groupId>
33-
<artifactId>ojdbc6</artifactId>
34-
<version>11.2.0.3</version>
35-
</dependency>
36-
<dependency>
37-
<groupId>com.deepoove</groupId>
38-
<artifactId>poi-tl</artifactId>
39-
<version>1.3.1</version>
40-
</dependency>
41-
<dependency>
42-
<groupId>org.slf4j</groupId>
43-
<artifactId>slf4j-log4j12</artifactId>
44-
<version>1.7.5</version>
21+
<groupId>junit</groupId>
22+
<artifactId>junit</artifactId>
23+
<version>4.12</version>
24+
<scope>test</scope>
4525
</dependency>
46-
<dependency>
47-
<groupId>log4j</groupId>
48-
<artifactId>log4j</artifactId>
49-
<version>1.2.14</version>
26+
<dependency>
27+
<groupId>mysql</groupId>
28+
<artifactId>mysql-connector-java</artifactId>
29+
<version>5.1.37</version>
30+
</dependency>
31+
<dependency>
32+
<groupId>com.oracle</groupId>
33+
<artifactId>ojdbc6</artifactId>
34+
<version>11.2.0.3</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.deepoove</groupId>
38+
<artifactId>poi-tl</artifactId>
39+
<version>1.3.1</version>
5040
</dependency>
51-
5241
</dependencies>
53-
<build>
54-
<!-- 配置资源文件 -->
55-
<resources>
56-
<resource>
57-
<directory>src/main/java</directory>
58-
<includes>
59-
<include>**/*.fxml</include>
60-
<include>**/*.properties</include>
61-
<include>**/*.jpg</include>
62-
</includes>
63-
</resource>
64-
</resources>
65-
<!-- 编译插件 -->
66-
<plugins>
67-
<plugin>
68-
<groupId>org.apache.maven.plugins</groupId>
69-
<artifactId>maven-compiler-plugin</artifactId>
70-
<version>3.7.0</version>
71-
<configuration>
72-
<source>1.8</source>
73-
<target>1.8</target>
74-
<encoding>UTF-8</encoding>
75-
</configuration>
76-
</plugin>
77-
<!-- 打包成jar包,但是没有将依赖一起打包 -->
78-
<plugin>
79-
<groupId>org.apache.maven.plugins</groupId>
80-
<artifactId>maven-jar-plugin</artifactId>
81-
<version>3.0.2</version>
82-
<configuration>
83-
<archive>
84-
<manifest>
85-
<addClasspath>true</addClasspath>
86-
<mainClass>com.msw.java.Login</mainClass>
87-
</manifest>
88-
<manifestEntries>
89-
<Class-Path>.</Class-Path>
90-
</manifestEntries>
91-
</archive>
92-
</configuration>
93-
</plugin>
94-
<!-- 打包成jar包,将依赖一起打包 -->
95-
<plugin>
96-
<groupId>org.apache.maven.plugins</groupId>
97-
<artifactId>maven-assembly-plugin</artifactId>
98-
<version>2.6</version>
99-
<executions>
100-
<execution>
101-
<phase>package</phase>
102-
<goals>
103-
<goal>single</goal>
104-
</goals>
105-
</execution>
106-
</executions>
107-
<configuration>
108-
<archive>
109-
<manifest>
110-
<mainClass>com.msw.java.Login</mainClass>
111-
</manifest>
112-
</archive>
113-
<descriptorRefs>
114-
<descriptorRef>jar-with-dependencies</descriptorRef>
115-
</descriptorRefs>
116-
</configuration>
117-
</plugin>
118-
</plugins>
119-
</build>
42+
<build>
43+
<!-- 配置资源文件 -->
44+
<resources>
45+
<resource>
46+
<directory>src/main/java</directory>
47+
<includes>
48+
<include>**/*.fxml</include>
49+
<include>**/*.properties</include>
50+
<include>**/*.jpg</include>
51+
</includes>
52+
</resource>
53+
</resources>
54+
<!-- 编译插件 -->
55+
<plugins>
56+
<plugin>
57+
<groupId>org.apache.maven.plugins</groupId>
58+
<artifactId>maven-compiler-plugin</artifactId>
59+
<version>3.7.0</version>
60+
<configuration>
61+
<source>1.8</source>
62+
<target>1.8</target>
63+
<encoding>UTF-8</encoding>
64+
</configuration>
65+
</plugin>
66+
<!-- 打包成jar包,将依赖一起打包 -->
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-assembly-plugin</artifactId>
70+
<version>2.6</version>
71+
<executions>
72+
<execution>
73+
<phase>package</phase>
74+
<goals>
75+
<goal>single</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
<configuration>
80+
<archive>
81+
<manifest>
82+
<mainClass>com.msw.java.Main</mainClass>
83+
</manifest>
84+
</archive>
85+
<descriptorRefs>
86+
<descriptorRef>jar-with-dependencies</descriptorRef>
87+
</descriptorRefs>
88+
</configuration>
89+
</plugin>
90+
</plugins>
91+
</build>
12092
</project>

0 commit comments

Comments
 (0)