我正在尝试实现"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>**我的蓝图上写着:
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-碳来构建我的项目
发布于 2018-03-27 17:48:12
这个坏掉的特性构建似乎是由于使用了旧发布的archetypeVersion=1.3.0-C。只需更改-DarchetypeVersion=1.5.0-快照或-DarchetypeVersion=1.4.0就可以解决这个问题
https://stackoverflow.com/questions/49397258
复制相似问题