我正在尝试实施“PacketProcessingListener”。当我运行mvn clean install
时,我在项目功能中遇到以下错误。
我没有更改功能文件夹中的任何内容。
Results :
Tests in error:
Can't install feature odl-qos/0.1.0-SNAPSHOT:
Could not start bundle mvn:org.opendaylight.qos/qos-impl/0.1.0-SNAPSHOT in feature(s) odl-qos-0.1.0-SNAPSHOT: The bundle "org.opendaylight.qos.impl_0.1.0.SNAPSHOT [291]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709; version="[0.4.0,1.0.0)"
Tests run: 5, Failures: 0, Errors: 4, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ODL :: org.opendaylight.qos :: qos-api ............. SUCCESS [ 10.049 s]
[INFO] ODL :: org.opendaylight.qos :: qos-impl ............ SUCCESS [ 5.353 s]
[INFO] ODL :: org.opendaylight.qos :: qos-cli ............. SUCCESS [ 3.468 s]
[INFO] ODL :: org.opendaylight.qos :: qos-features ........ FAILURE [01:31 min]
[INFO] ODL :: org.opendaylight.qos :: qos-karaf ........... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-artifacts ....... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-it .............. SKIPPED
[INFO] qos 0.1.0-SNAPSHOT ................................. SKIPPED
**************************
实施文件夹中的错误是否会影响要素文件夹? 我将以下依赖项添加到我的实现文件夹pom.xml
**<dependency>
<groupId>org.opendaylight.openflowplugin.model</groupId>
<artifactId>model-flow-service</artifactId>
<version>0.4.3-Carbon</version>
</dependency>**
我的imp-blueprint看起来包含:
reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default" />
reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
reference id="notificationService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"/>
reference id="notificationProviderService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService" />
bean id="provider"
class="org.opendaylight.qos.impl.QosProvider"
init-method="init" destroy-method="close">
<argument ref="dataBroker" />
<argument ref="rpcRegistry" />
<argument ref="notificationService" />
<argument ref="notificationProviderService" />
<argument ref="packetHandlerService" />
</bean>
odl:rpc-service id="packetHandlerService"
interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService" />
odl:notification-listener ref="provider"/>**
我正在使用-DarchetypeVersion = 1.3.3-carbon来构建我的项目
答案 0 :(得分:0)
破坏的功能构建似乎是由于使用旧版本的archetypeVersion = 1.3.0-Carbon。 只是更改-DarchetypeVersion = 1.5.0-SNAPSHOT或-DarchetypeVersion = 1.4.0修复了问题