You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2019/04/02 08:21:00 UTC

[jira] [Updated] (SCB-1158) External jars support Alpha

     [ https://issues.apache.org/jira/browse/SCB-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang updated SCB-1158:
------------------------------
    Affects Version/s:     (was: saga-0.4.0)

>  External jars support Alpha
> ----------------------------
>
>                 Key: SCB-1158
>                 URL: https://issues.apache.org/jira/browse/SCB-1158
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Saga
>            Reporter: Lei Zhang
>            Assignee: Lei Zhang
>            Priority: Minor
>             Fix For: saga-0.4.0
>
>   Original Estimate: 72h
>          Time Spent: 20m
>  Remaining Estimate: 71h 40m
>
> We can use loads external jars support multiple database types
> create libs directory in the  alpha-server-0.4.0-SNAPSHOT-exec.jar directory, copy  mysql-connector-java-8.0.15.jar to the libs directory And add config -Dloader.path=./libs to the command line, e.g.
>  
> java -Dloader.path=./libs -jar alpha-server-0.4.0-SNAPSHOT-exec.jar \
> --spring.datasource.platform=mysql \
> --spring.datasource.dataSourceClassName=com.mysql.jdbc.Driver \
> --spring.datasource.url='jdbc:[mysql://0.0.0.0:3306/saga?useUnicode=true&characterEncoding=utf-8&autoReconnect=true'] \
> --spring.datasource.username=saga-user \
> --spring.datasource.password=saga-password \
> --spring.profiles.active=prd
>  
> In order to external jars support need to use `ZIP` layout in maven plugin configuration, e.g
>  
> <plugin>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-maven-plugin</artifactId>
> <configuration>
>   <layout>ZIP</layout>
> </configuration>
> </plugin>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)