1

我有以下插件,它构建了一辆包含名为 ABC.dbs 的 dbs 服务的汽车:

<groupId>some group</groupId>
<artifactId>some-dss</artifactId>
<version>1.1.0</version>
<packaging>service/dataservice</packaging> 
<name>some-dss</name>
<description>some-dss</description>

  <plugin>
    <groupId>org.wso2.maven</groupId>
    <artifactId>maven-dataservice-plugin</artifactId>
    <version>2.0.9</version>
    <extensions>true</extensions>
    <configuration>
      <artifact>src/main/dataservice/ABC.dbs</artifact>
    </configuration>
  </plugin>
  <plugin>
    <artifactId>maven-eclipse-plugin</artifactId>
    <version>2.9</version>
    <configuration>
      <buildcommands />
      <projectnatures>
        <projectnature>org.wso2.developerstudio.eclipse.ds.project.nature</projectnature>
      </projectnatures>
    </configuration>
  </plugin>

我现在有另一个数据库。如何配置此插件以添加另一个数据库?我试过了:

    <configuration>
      <artifact>src/main/dataservice/ABC.dbs</artifact>
      <artifact>src/main/dataservice/DEF.dbs</artifact>
    </configuration>

但汽车只有 DEF.dbs。谢谢。

4

1 回答 1

0

该功能在 Developer studio 3.8.0 中可用

使用 maven 插件 - maven-dataservice-plugin - 版本:2.1.0

参考:

http://wso2.com/products/developer-studio/

http://wso2-oxygen-tank.10903.n7.nabble.com/Multiple-dbs-files-support-in-a-single-Data-Services-Project-via-Developer-Studio-td115686.html

于 2016-10-05T22:54:24.110 回答