Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
ea6a28c6
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ea6a28c6
编写于
2月 24, 2018
作者:
T
terrymanu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add package assembly
上级
e74249ff
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
91 addition
and
3 deletion
+91
-3
pom.xml
pom.xml
+6
-1
sharding-jdbc-server/pom.xml
sharding-jdbc-server/pom.xml
+24
-1
sharding-jdbc-server/src/main/java/io/shardingjdbc/server/DataSourceManager.java
...c/main/java/io/shardingjdbc/server/DataSourceManager.java
+1
-1
sharding-jdbc-server/src/main/resources/assembly/assembly.xml
...ding-jdbc-server/src/main/resources/assembly/assembly.xml
+28
-0
sharding-jdbc-server/src/main/resources/bin/start.sh
sharding-jdbc-server/src/main/resources/bin/start.sh
+4
-0
sharding-jdbc-server/src/main/resources/conf/sharding-config.yaml
...-jdbc-server/src/main/resources/conf/sharding-config.yaml
+0
-0
src/resources/assembly/assembly.xml
src/resources/assembly/assembly.xml
+28
-0
未找到文件。
pom.xml
浏览文件 @
ea6a28c6
...
...
@@ -50,7 +50,7 @@
<guava-retrying.version>
2.0.0
</guava-retrying.version>
<maven-compiler-plugin.version>
3.3
</maven-compiler-plugin.version>
<maven-assembly-plugin.version>
2.5.5
</maven-assembly-plugin.version>
<maven-assembly-plugin.version>
3.1.0
</maven-assembly-plugin.version>
<maven-resources-plugin.version>
2.7
</maven-resources-plugin.version>
<maven-jar-plugin.version>
2.6
</maven-jar-plugin.version>
<maven-surefire-plugin.version>
2.18.1
</maven-surefire-plugin.version>
...
...
@@ -333,6 +333,11 @@
<argLine>
-Xmx1024m -XX:MaxPermSize=256m
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
${maven-assembly-plugin.version}
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-site-plugin
</artifactId>
...
...
sharding-jdbc-server/pom.xml
浏览文件 @
ea6a28c6
...
...
@@ -70,4 +70,27 @@
<artifactId>
hamcrest-library
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<configuration>
<descriptors>
<descriptor>
src/main/resources/assembly/assembly.xml
</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>
assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
sharding-jdbc-server/src/main/java/io/shardingjdbc/server/DataSourceManager.java
浏览文件 @
ea6a28c6
...
...
@@ -25,7 +25,7 @@ public final class DataSourceManager {
public
DataSourceManager
()
{
try
{
dataSource
=
ShardingDataSourceFactory
.
createDataSource
(
new
File
(
ComQueryPacket
.
class
.
getResource
(
"/
META-INF
/sharding-config.yaml"
).
getFile
()));
dataSource
=
ShardingDataSourceFactory
.
createDataSource
(
new
File
(
ComQueryPacket
.
class
.
getResource
(
"/
conf
/sharding-config.yaml"
).
getFile
()));
}
catch
(
final
IOException
|
SQLException
ex
)
{
throw
new
ShardingJdbcException
(
ex
);
}
...
...
sharding-jdbc-server/src/main/resources/assembly/assembly.xml
0 → 100644
浏览文件 @
ea6a28c6
<assembly
xmlns=
"http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"
>
<id>
assembly
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<includeBaseDirectory>
true
</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>
src/main/resources/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
src/main/resources/conf
</directory>
<outputDirectory>
conf
</outputDirectory>
<fileMode>
0644
</fileMode>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>
lib
</outputDirectory>
<fileMode>
0644
</fileMode>
</dependencySet>
</dependencySets>
</assembly>
sharding-jdbc-server/src/main/resources/bin/start.sh
0 → 100755
浏览文件 @
ea6a28c6
#!/bin/bash
cd
`
dirname
$0
`
echo
good
sharding-jdbc-server/src/main/resources/
META-INF
/sharding-config.yaml
→
sharding-jdbc-server/src/main/resources/
conf
/sharding-config.yaml
浏览文件 @
ea6a28c6
文件已移动
src/resources/assembly/assembly.xml
0 → 100644
浏览文件 @
ea6a28c6
<assembly
xmlns=
"http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"
>
<id>
assembly
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<includeBaseDirectory>
true
</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>
src/resources/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
src/resources/conf
</directory>
<outputDirectory>
conf
</outputDirectory>
<fileMode>
0644
</fileMode>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>
lib
</outputDirectory>
<fileMode>
0644
</fileMode>
</dependencySet>
</dependencySets>
</assembly>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录