<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 一、rayframework平臺打包 ### **本地打包** 基于平臺工程的ant任務**releaserayframework**; ![](https://img.kancloud.cn/35/29/3529785a60c80cc9c588a200c39ada1e_1366x736.png) 即可得到平臺的最新版本核心包; >[info] 用于日常項目中的平臺庫更新; ### **從github包中獲取最新版** ``` <dependency> <groupId>org.ray</groupId> <artifactId>rayframework</artifactId> <version>3.0.1</version> </dependency> ``` 需配置maven的配置文件,增加倉庫的設置; 參考:[開發工具/github/發布庫包](../%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/github/%E5%8F%91%E5%B8%83%E5%BA%93%E5%8C%85.md)中的**工程中引用**; ## 二、rayframework工程 ##### **1、生成完整的工程結構** 基于平臺工程的ant任務**generaterayframeworkappstructure**; ![](https://img.kancloud.cn/80/91/8091858b9f21cca6a86782a4b3aaaa89_1366x736.png) 執行完畢,在release目錄下,會生成一個完整的工程結構; ![](https://img.kancloud.cn/07/f1/07f15fa1b3573b5eb5a3ebf02ade2af1_1210x350.png) >[info] 用于新建工程項目; ##### **2、在eclipse中,導入工程** 將生成的工程目錄rayapp(可以隨便改名)拷貝到當前工程空間目錄; ![](https://img.kancloud.cn/5a/31/5a310ee159614e720a6da5f4ad0cb316_794x402.png) ![](https://img.kancloud.cn/e6/9e/e69e87c4a26d4ed51cf71cbc5e4199b4_1366x736.png) ![](https://img.kancloud.cn/99/d5/99d56e26f3eb930797a50f6e9510af06_525x550.png) ![](https://img.kancloud.cn/41/82/418234ef901a21fc224216669910028a_1366x736.png) ![](https://img.kancloud.cn/98/64/98645bd7a4f1e5be4ded3026efc048fc_653x645.png) ![](https://img.kancloud.cn/8d/1c/8d1c0a1ce612a769c7f19942da25ed9a_1366x736.png) ##### **3、配置maven build** ![](https://img.kancloud.cn/13/17/13176994eee4d5b17262c518a9eaac40_1366x736.png) ![](https://img.kancloud.cn/2d/55/2d5530abd952cb1a9a56eb918fe28e23_800x693.png) 即可執行了(這里默認配置的是appserver打包模式); ![](https://img.kancloud.cn/a2/8a/a28adece47afc193617f5815894f9185_1162x661.png) 如果需要繼續配置其他打包模式,則可復制默認的appserver打包模式)配置,在復制的配置基礎上,修改參數,即可打包jobserver模式了,同理類推是oauthserver模式和mixserver模式,mixserer是一個把三個服務器合并未一個的模式; ``` # 四種應用類型打包的具體命令配置 clean package -Dmaven.test.skip=true -P appserver clean package -Dmaven.test.skip=true -P jobserver clean package -Dmaven.test.skip=true -P oauthserver clean package -Dmaven.test.skip=true -P mixserver ``` 注意,考慮到工程同時支持appserver及jobserver等模式,需要配置多個,分別帶上參數-P appserver、-P jobserver、-P oauthserver及-P mixserver等; ![](https://img.kancloud.cn/f8/f4/f8f462253e04c19a807e0a9e8c3d19c6_1162x661.png) 配置了maven build設置的時候,工程需要執行打包的時候,就會出現選擇了; ![](https://img.kancloud.cn/c7/0c/c70c93c092ca384c0787ffcb1bc9ed02_1366x736.png) ![](https://img.kancloud.cn/47/b0/47b07cf1d04152432676d34ca558ae8b_1366x736.png) ## 三、項目化細節 ### **工程目錄** 生成工程的時候,輸入需要的工程名稱; ### **POM文件** ![](https://img.kancloud.cn/ec/c4/ecc4d36f207b8877268ecc6be4e29935_1366x736.png) 只需要改artifactId這個名,一般建議跟工程名一致,即可,如rayapp改為raylucky; ### **工程多項目支持** 如果需要一個工程同時支持維護多個項目,通過application-runtime.properties文件中的配置項目來實現,啟用不同的配置文件; ``` rayframework.server.current-project-branch= ``` 舉例來說,一個工程有兩個項目,分別dev和release ![](https://img.kancloud.cn/2f/5d/2f5d2ccf68103c56453468bbe1603dd7_463x477.png) 那么,如果當前需要打包release的版本,那么,需要把`rayframework.server.current-project-branch`設置為.release,即可;包括直接運行調試和打包的時候,都會自動的發布該選項設定的工程版本;
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看