【问题标题】:Apache ServiceMix 5.x full versionApache ServiceMix 5.x 完整版
【发布时间】:2018-09-27 14:27:34
【问题描述】:

我需要在没有直接连接到 Internet 的服务器上运行 Apache ServiceMix。我找不到 Apache ServiceMix 5.1.4 的“完整”程序集。旧版本的 ServiceMix (4.5.3) 有完整版本可供下载。

5.1.4 的完整版是否可用?如果有,在哪里?

http://servicemix.apache.org/downloads/servicemix-5.1.4.html http://servicemix.apache.org/downloads/servicemix-4.5.3.html

【问题讨论】:

    标签: apache apache-servicemix


    【解决方案1】:

    ServiceMix 5.0.0 开始,我们删除了 fullminimal 程序集,我们只提供 default 仅包含默认启动功能使用的包的程序集(请参阅http://servicemix.396122.n5.nabble.com/DISCUSS-Which-assemblies-to-keep-around-td5719173.html 下的讨论)

    如果您有一个想要在 ServiceMix 上部署的项目,您可以将一个新模块添加到您的项目中,该模块运行 features-maven-pluginadd-features-to-repo 目标并压缩所有内容。接下来,您可以交付包含所有捆绑包的 zip 文件 您需要在 ServiceMix 上安装的所有功能。

    【讨论】:

    • 我想确保我理解你的第二段。目前我有一个 eclipse java 项目,它构建了一个 osgi 包,我将其放入 servicemix 部署目录。这是你指的项目吗?或者这会是一个新的 maven 项目(如 karaf 文档中的示例)?
    • 我已经完成了 karaf 自定义分发示例 [karaf.apache.org/manual/latest-2.2.x/developers-guide/… 并且有一个适合我的变体。我将如何更改它以构建服务组合发行版与 karaf 发行版?或者我会将自定义 karaf 系统目录覆盖在默认服务组合发行版上吗?
    • 让覆盖解决方案工作并在单独的答案中发布步骤。
    【解决方案2】:

    感谢 KSobkowiak 的回答为我指明了正确的方向。我发布了我用来启动并运行自定义 ServiceMix 5.x 的步骤,以防其他人需要这样做。说明假设 Linux,但 windows 步骤应该类似。

    1) 下载并解压 ServiceMix 和 Maven

    cd /opt
    unzip apache-servicemix-5.1.4.zip
    unzip apache-maven-3.0.3.zip
    

    2) 如果需要,配置maven proxy

    3) 创建一个maven项目目录

    mkdir serviceMix_features
    cd serviceMix_features
    

    4) 使用以下 xml 创建一个 maven pom 文件。我通过在 servicemix 控制台中运行 features:listurl 命令获得了描述符列表。这些功能将是您自定义 servicemix 发行版中所需的任何功能,在这种情况下,我添加了 webconsole 和几个骆驼组件。

    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>my.group</groupId>
      <artifactId>custom-servicemix</artifactId>
      <version>1.0</version>
      <packaging>pom</packaging>
      <name>My custom service mix repository</name>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.karaf.tooling</groupId>
            <artifactId>features-maven-plugin</artifactId>
            <version>2.3.9</version>
            <executions>
              <execution>
                <id>add-features-to-repo</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>add-features-to-repo</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.13.3/xml/features</descriptor>
                    <descriptor>mvn:org.apache.servicemix/apache-servicemix/5.1.4/xml/internal</descriptor>
                    <descriptor>mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features</descriptor>
                    <descriptor>mvn:org.apache.karaf.assemblies.features/standard/2.3.9/xml/features</descriptor>
                    <descriptor>mvn:org.apache.karaf.assemblies.features/enterprise/2.3.9/xml/features</descriptor>
                    <descriptor>mvn:org.apache.jclouds.karaf/jclouds-karaf/1.7.2/xml/features</descriptor>
                    <descriptor>mvn:org.apache.cxf.karaf/apache-cxf/2.7.13/xml/features</descriptor>
                    <descriptor>mvn:org.apache.servicemix/apache-servicemix/5.1.4/xml/features</descriptor>
                    <descriptor>mvn:org.apache.servicemix/apache-servicemix/5.1.4/xml/examples</descriptor>
                    <descriptor>mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features</descriptor>
                    <descriptor>mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features-core</descriptor>
                  </descriptors>
                   <features>
                    <feature>webconsole</feature>
                    <feature>camel-restlet</feature>
                    <feature>camel-jackson</feature>
                  </features>
                  <repository>target/features-repo</repository>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </project>
    

    5) 执行 maven 项目。我注意到有时 maven 会部分通过并失败。重试后,我注意到它每次运行都会拉入额外的罐子,最后第四次尝试成功。

    /opt/apache-maven-3.0.3/bin/mvn install
    

    6) 在默认服务组合发行版上覆盖 maven 文件。

    cp -Rvn target/features_repo/* /opt/apache-servicemix-5.1.4/system/
    

    7) 压缩或压缩您的自定义服务组合发行版并将其移动到您需要的位置。如果您使用的是代理,您可以取消配置 maven 代理并清除您的 maven 存储库,以验证服务组合是否已从服务组合控制台正确更新。

    features:install webconsole
    

    【讨论】:

    • 你能帮我把 servicemix 从 4 升级到 5 吗?实际上我想将它一个一个升级到最新版本。我们没有安装任何功能。所以我不知道要提供什么功能。你能帮我吗here?
    • 如果我没记错几年前的电子邮件交流,服务组合 4 附带了所有(或许多)附加功能。当版本 5 发布时,它太大而无法托管在 Apache 的下载站点上。决定只托管核心,并让用户来拉取所需的额外内容。这个答案有我成功用来提取我需要的功能的步骤。
    • 你也应该看看 KSobkowiak 的回答。
    【解决方案3】:

    您可以从 Apache 存档中找到 ASF 的所有版本。对于 ServiceMix,它在这里:http://archive.apache.org/dist/servicemix/

    【讨论】:

    • 我看不到完整版。
    猜你喜欢
    • 1970-01-01
    • 2011-10-19
    • 2012-12-02
    • 1970-01-01
    • 2012-07-11
    • 1970-01-01
    • 1970-01-01
    • 2014-12-01
    • 2019-08-21
    相关资源
    最近更新 更多