| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 |
| ~ (the "License"); you may not use this file except in compliance with |
| ~ the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>samples</artifactId> |
| <groupId>org.apache.servicecomb.toolkit</groupId> |
| <version>0.1.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>toolkit-maven-plugin-sample</artifactId> |
| <name>Toolkit::Demo::Toolkit-Maven-Plugin-Demo</name> |
| <packaging>pom</packaging> |
| |
| <modules> |
| <module>booking</module> |
| <module>car</module> |
| <module>hotel</module> |
| </modules> |
| |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.servicecomb.toolkit</groupId> |
| <artifactId>toolkit-maven-plugin</artifactId> |
| <version>0.1.0-SNAPSHOT</version> |
| <configuration> |
| <!-- 输入源。设置为 code,表示解析当前代码;设置为 contract,表示解析指定目录的契约文件。不设置则默认为 code --> |
| <sourceType>code</sourceType> |
| <!-- 生成契约文件、文档的根目录,不设置则默认为运行命令所在目录下的 target 目录,生成的微服务工程在 project 目录,契约文件在 contract 目录,文档在 document 目录 --> |
| <outputDirectory>./target/toolkit-maven-plugin-sample</outputDirectory> |
| <!-- 生成的微服务代码工程配置 --> |
| <service> |
| <!-- 微服务的类型,可生成 provider/consumer/all,默认值为 all --> |
| <serviceType>all</serviceType> |
| <artifactId>demo</artifactId> |
| <groupId>org.apache.servicecomb.toolkit</groupId> |
| </service> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter</artifactId> |
| <version>2.1.1.RELEASE</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| <version>2.1.1.RELEASE</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-starter-netflix-zuul</artifactId> |
| <version>2.1.1.RELEASE</version> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| </project> |