GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ubsice/maven-plugin: Maven插件,可以部署或运行微服务

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main/java/rewin/ubsi/maven
src/main/java/rewin/ubsi/maven
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

maven-plugin

UBSI-Maven插件,可以部署或运行微服务。

在UBSI微服务的项目目录下,执行:

  • mvn ubsi:run

    启动UBSI服务容器,并自动加载本项目指定的微服务/过滤器

    可以通过rewin.ubsi.container.json、rewin.ubsi.consumer.json、rewin.ubsi.router.json等配置文件来设置容器的运行参数

  • mvn ubsi:deploy -Dcontainer={host#port}

    将本项目包含的微服务/过滤器部署到指定的UBSI服务容器中

    如果没有指定container参数,则默认"localhost#7112"

在项目的pom.xml中,需要添加ubsi-maven-plugin插件:

<build>
    <plugins>
        ......
        
        <plugin>
            <groupId>com.rewin</groupId>
            <artifactId>ubsi-maven-plugin</artifactId>
            <version>1.1.1</version>
            <configuration>     <!-- 插件的配置参数 -->
                <services>      <!-- 本项目包含的微服务 -->
                    <service>
                        <name>myservice.demo</name>	<!-- 服务名字 -->
                        <className>myservice.Demo</className>	<!-- 服务类名 -->
                        <configJson>    <!-- 微服务的配置参数,JSON格式的字符串 -->
                            <![CDATA[
                                "my service's configuration"
                            ]]>
                        </configJson>
                        <resourcePath>......</resourcePath>		<!-- 微服务的资源文件目录 -->
                        <exclusion>false</exclusion>            <!-- 是否排除部署/加载 -->
                    </service>
                    ......
                </services>
                <filters>       <!-- 本项目包含的过滤器 -->
                    <filter>
                        <className>myfilter.Demo</className>	<!-- 过滤器类名 -->
                        <configJson>    <!-- 过滤器的配置参数,JSON格式的字符串 -->
                            <![CDATA[
                                "my filter's configuration"
                            ]]>
                        </configJson>
                        <resourcePath>......</resourcePath>		<!-- 过滤器的资源文件目录 -->
                        <exclusion>true</exclusion>            <!-- 是否排除部署/加载 -->
                    </filter>
                    ......
                </filters>
            </configuration>
        </plugin>
    </plugins>
</build>        

About

Maven插件,可以部署或运行微服务

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.