首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >让karaf-maven-plugin将所有内容复制到发行版中。

让karaf-maven-plugin将所有内容复制到发行版中。
EN

Stack Overflow用户
提问于 2015-07-25 02:09:39
回答 1查看 280关注 0票数 1

这是一瓶酒。它不起作用:它得到一个连接错误,其中一个编译范围特性找不到一个运行时作用域特性提供的包。

我在这里的问题是,我无法从文档中了解如何说:在karaf程序集构建时复制这些包。

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>anvils-prototype</artifactId>
        <groupId>com.basistech.ws</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <artifactId>rosapi-assembly</artifactId>
    <packaging>karaf-assembly</packaging>
    <name>karaf assembly</name>
    <properties>
        <skip-dependency-convergence>true</skip-dependency-convergence>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <version>${karaf.version}</version>
            <type>kar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <version>${karaf.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.cxf.karaf</groupId>
            <artifactId>apache-cxf</artifactId>
            <version>${cxf.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>rosette-base-linguistics</artifactId>
            <version>${project.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>rosapi-worker</artifactId>
            <version>${project.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <finalName>${project.artifactId}</finalName>
                    <bootFeatures>
                        <feature>bundle</feature>
                        <feature>config</feature>
                        <feature>diagnostic</feature>
                        <feature>feature</feature>
                        <feature>jaas</feature>
                        <feature>shell</feature>
                        <feature>log</feature>
                        <feature>management</feature>
                        <feature>package</feature>
                        <feature>shell-compat</feature>
                        <feature>ssh</feature>
                        <feature>system</feature>
                        <feature>wrap</feature>
                        <feature>war</feature>
                        <feature>cxf</feature>
                    </bootFeatures>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
EN

回答 1

Stack Overflow用户

发布于 2015-07-29 09:53:28

bootFeatures下定义的许多特性不存在,或者它们没有在特性依赖项中定义(标准特性、cxf特性、ro皂i特性)。这就是为什么它不能创建程序集,因为它不知道这些特性。

您可以尝试从一些众所周知的特性开始,例如:

代码语言:javascript
复制
config
management
war
cxf...
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31622152

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档