这是一瓶酒。它不起作用:它得到一个连接错误,其中一个编译范围特性找不到一个运行时作用域特性提供的包。
我在这里的问题是,我无法从文档中了解如何说:在karaf程序集构建时复制这些包。
<?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>发布于 2015-07-29 09:53:28
在bootFeatures下定义的许多特性不存在,或者它们没有在特性依赖项中定义(标准特性、cxf特性、ro皂i特性)。这就是为什么它不能创建程序集,因为它不知道这些特性。
您可以尝试从一些众所周知的特性开始,例如:
config
management
war
cxf...https://stackoverflow.com/questions/31622152
复制相似问题