forked from p81075629/datagear
添加发布相关说明文档,添加构建版本相关设置
This commit is contained in:
parent
d8d85e583d
commit
441ebdb99c
14
README.md
14
README.md
|
@ -1 +1,13 @@
|
|||
# Data Gear
|
||||
# Data Gear
|
||||
|
||||
## 依赖
|
||||
|
||||
Java 6+
|
||||
|
||||
## 编译
|
||||
|
||||
mvn clean package
|
||||
|
||||
## 版本号升级
|
||||
|
||||
mvn -N versions:update-child-modules antrun:run
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
<properties>
|
||||
<dist.log4j.rootLogger>INFO, A1</dist.log4j.rootLogger>
|
||||
<buildtimestamp>${timestamp}</buildtimestamp>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -150,6 +151,24 @@
|
|||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>version.properties</include>
|
||||
</includes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>version.properties</exclude>
|
||||
</excludes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -172,6 +191,61 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- 构建日期 -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||
<version>1.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>create-timestamp</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<timestampFormat>yyyy-MM-dd HH:mm</timestampFormat>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<configuration>
|
||||
<lifecycleMappingMetadata>
|
||||
<pluginExecutions>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>
|
||||
org.codehaus.mojo
|
||||
</groupId>
|
||||
<artifactId>
|
||||
buildnumber-maven-plugin
|
||||
</artifactId>
|
||||
<versionRange>
|
||||
[1.1,)
|
||||
</versionRange>
|
||||
<goals>
|
||||
<goal>
|
||||
create-timestamp
|
||||
</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore></ignore>
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
@ -14,8 +14,11 @@
|
|||
|
||||
<bean id="propertyConfigurer"
|
||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="location">
|
||||
<value>classpath:datagear.properties</value>
|
||||
<property name="locations">
|
||||
<list>
|
||||
<value>classpath:datagear.properties</value>
|
||||
<value>classpath:version.properties</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#--UTF-8 file--
|
||||
|
||||
#系统版本号
|
||||
version=1.0.0
|
||||
|
||||
#构建日期
|
||||
buildDate=${buildtimestamp}
|
|
@ -0,0 +1,11 @@
|
|||
数据齿轮版本更新日志
|
||||
|
||||
-----------------------------------------
|
||||
--v1.0.0
|
||||
-----------------------------------------
|
||||
|
||||
数据库管理;
|
||||
数据管理;
|
||||
驱动程序管理;
|
||||
用户管理;
|
||||
切换肤色;
|
|
@ -0,0 +1,9 @@
|
|||
数据齿轮-v1.0.0
|
||||
|
||||
数据齿轮是一款数据库管理系统,使用Java语言开发,采用浏览器/服务器架构,以数据管理为核心功能,支持多种数据库。
|
||||
它的数据模型并不是原始的数据库表,而是融合了数据库表及表间关系,更偏向于领域模型的数据模型,能够更友好、方便、快速地查询和维护数据。
|
||||
它采用JDBC规范与数据库进行连接和通信,能够支持所有遵循JDBC规范的数据库,这包括MySQL、Oracle、PostgreSQL、SQL Server等主流数据库。
|
||||
|
||||
启动前请确保已安装Java 6及以上版本的运行环境。
|
||||
|
||||
详细文档请参考:http://www.datagear.tech/documentation
|
|
@ -1,3 +1,5 @@
|
|||
数据齿轮-v1.0.0
|
||||
|
||||
数据齿轮是一款数据库管理系统,使用Java语言开发,采用浏览器/服务器架构,以数据管理为核心功能,支持多种数据库。
|
||||
它的数据模型并不是原始的数据库表,而是融合了数据库表及表间关系,更偏向于领域模型的数据模型,能够更友好、方便、快速地查询和维护数据。
|
||||
它采用JDBC规范与数据库进行连接和通信,能够支持所有遵循JDBC规范的数据库,这包括MySQL、Oracle、PostgreSQL、SQL Server等主流数据库。
|
||||
|
@ -9,7 +11,9 @@
|
|||
Linux:执行startup.sh
|
||||
Windows:执行startup.bat
|
||||
2、使用:
|
||||
打开浏览器,在地址栏中输入: http://[数据齿轮服务的IP地址]:50401。
|
||||
例如:http://192.168.1.1:50401
|
||||
打开浏览器,在地址栏中输入:
|
||||
http://[数据齿轮服务的IP地址]:50401
|
||||
例如:
|
||||
http://192.168.1.1:50401
|
||||
|
||||
详细文档请参考:http://www.datagear.tech/documentation
|
43
pom.xml
43
pom.xml
|
@ -79,6 +79,49 @@
|
|||
<generateBackupPoms>false</generateBackupPoms>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-cli</id>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<!-- 为management模块的datagear.sql添加版本号行 -->
|
||||
<echo file="datagear-management/src/main/resources/org/datagear/management/ddl/datagear.sql" encoding="UTF-8" append="true">
|
||||
${line.separator}
|
||||
-----------------------------------------
|
||||
--version[${project.version}], DO NOT EDIT THIS LINE!
|
||||
-----------------------------------------
|
||||
${line.separator}
|
||||
</echo>
|
||||
<!-- 替换web模块version.properties中的版本号 -->
|
||||
<replaceregexp file="datagear-web/src/main/resources/version.properties" encoding="UTF-8" match="version=\d+(\.\d+){1,2}(\-\w+){0,1}" replace="version=${project.version}" />
|
||||
|
||||
<!-- 替换web模块readme.txt中的版本号 -->
|
||||
<replaceregexp file="datagear-web/src/main/webapp/readme.txt" encoding="UTF-8" match="数据齿轮\-v\d+(\.\d+){1,2}(\-\w+){0,1}" replace="数据齿轮-v${project.version}" />
|
||||
|
||||
<!-- 为web模块的changelog.txt添加版本号行 -->
|
||||
<echo file="datagear-web/src/main/webapp/WEB-INF/changelog.txt" encoding="UTF-8" append="true">
|
||||
${line.separator}
|
||||
-----------------------------------------
|
||||
--v${project.version}
|
||||
-----------------------------------------
|
||||
${line.separator}
|
||||
</echo>
|
||||
|
||||
<!-- 替换webembd模块version.properties中的版本号 -->
|
||||
<replaceregexp file="datagear-webembd/src/main/dist/readme.txt" encoding="UTF-8" match="数据齿轮\-v\d+(\.\d+){1,2}(\-\w+){0,1}" replace="数据齿轮-v${project.version}" />
|
||||
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
Loading…
Reference in New Issue