Mod aaa-12 保证feature-huawei-driver能独立于驱动适配层卸载。

RCA:
SOL:
修改人:dongxiancun
检视人:dongxiancun
This commit is contained in:
dongxiancun 2019-08-14 18:31:43 +08:00
parent 15fc6d20bf
commit 9218f99166
5 changed files with 207 additions and 150 deletions

View File

@ -44,6 +44,7 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>adaptation-layer</artifactId> <artifactId>adaptation-layer</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2019 CMCC Corporation and others. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
-->
<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>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
<version>3.1.4</version>
<relativePath/>
</parent>
<groupId>com.cmcc.cmhi</groupId>
<artifactId>feature-adaptation-layer</artifactId>
<version>0.1.0</version>
<packaging>feature</packaging>
<name>CMCC :: CMHI :: AdaptationLayer</name>
<properties>
<controller.mdsal.version>1.7.4</controller.mdsal.version>
<mdsal.version>2.4.4</mdsal.version>
<mdsal.model.version>0.12.4</mdsal.model.version>
<restconf.version>1.7.4</restconf.version>
<yangtools.version>2.0.6.5</yangtools.version>
<configfile.directory>etc/opendaylight/karaf</configfile.directory>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>restconf-artifacts</artifactId>
<version>${restconf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>sal-rest-docgen</artifactId>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>features-yangtools</artifactId>
<classifier>features</classifier>
<version>${yangtools.version}</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>features-mdsal</artifactId>
<classifier>features</classifier>
<version>${controller.mdsal.version}</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>features-restconf</artifactId>
<classifier>features</classifier>
<type>xml</type>
</dependency>
<dependency>
<groupId>com.cmcc.cmhi</groupId>
<artifactId>adaptation-layer</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -26,6 +26,13 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
<dependencies> <dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>feature-adaptation-layer</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>feature-huawei-driver</artifactId> <artifactId>feature-huawei-driver</artifactId>

View File

@ -1,161 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!-- Copyright © 2019 CMCC Corporation and others. All rights reserved. This
Copyright © 2019 CMCC Corporation and others. All rights reserved. program and the accompanying materials are made available under the terms
of the Eclipse Public License v1.0 which accompanies this distribution, and
is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL -->
<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">
This program and the accompanying materials are made available under the <modelVersion>4.0.0</modelVersion>
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
-->
<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>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
<version>3.1.4</version>
<relativePath />
</parent>
<parent> <groupId>com.cmcc.cmhi</groupId>
<groupId>org.opendaylight.odlparent</groupId> <artifactId>feature-huawei-driver</artifactId>
<artifactId>single-feature-parent</artifactId> <version>0.1.0</version>
<version>3.1.4</version> <packaging>feature</packaging>
<relativePath/>
</parent>
<groupId>com.cmcc.cmhi</groupId> <name>CMCC :: CMHI :: HuaweiDriver</name>
<artifactId>feature-huawei-driver</artifactId>
<version>0.1.0</version>
<packaging>feature</packaging>
<name>CMCC :: CMHI :: HuaweiDriver</name> <properties>
<controller.mdsal.version>1.7.4</controller.mdsal.version>
<mdsal.version>2.4.4</mdsal.version>
<mdsal.model.version>0.12.4</mdsal.model.version>
<netconf.version>1.4.4</netconf.version>
<restconf.version>1.7.4</restconf.version>
<yangtools.version>2.0.6.5</yangtools.version>
<dlux.version>0.7.4</dlux.version>
<dluxapps.version>0.7.4</dluxapps.version>
<configfile.directory>etc/opendaylight/karaf</configfile.directory>
</properties>
<properties> <dependencyManagement>
<controller.mdsal.version>1.7.4</controller.mdsal.version> <dependencies>
<mdsal.version>2.4.4</mdsal.version> <dependency>
<mdsal.model.version>0.12.4</mdsal.model.version> <groupId>org.opendaylight.netconf</groupId>
<netconf.version>1.4.4</netconf.version> <artifactId>netconf-artifacts</artifactId>
<restconf.version>1.7.4</restconf.version> <version>${netconf.version}</version>
<yangtools.version>2.0.6.5</yangtools.version> <type>pom</type>
<dlux.version>0.7.4</dlux.version> <scope>import</scope>
<dluxapps.version>0.7.4</dluxapps.version> </dependency>
<configfile.directory>etc/opendaylight/karaf</configfile.directory> <dependency>
</properties> <groupId>org.opendaylight.netconf</groupId>
<artifactId>restconf-artifacts</artifactId>
<version>${restconf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencyManagement> <dependencies>
<dependencies> <dependency>
<dependency> <groupId>org.opendaylight.netconf</groupId>
<groupId>org.opendaylight.netconf</groupId> <artifactId>sal-rest-docgen</artifactId>
<artifactId>netconf-artifacts</artifactId> </dependency>
<version>${netconf.version}</version> <dependency>
<type>pom</type> <groupId>org.opendaylight.yangtools</groupId>
<scope>import</scope> <artifactId>features-yangtools</artifactId>
</dependency> <classifier>features</classifier>
<dependency> <version>${yangtools.version}</version>
<groupId>org.opendaylight.netconf</groupId> <type>xml</type>
<artifactId>restconf-artifacts</artifactId> <scope>runtime</scope>
<version>${restconf.version}</version> </dependency>
<type>pom</type> <dependency>
<scope>import</scope> <groupId>org.opendaylight.controller</groupId>
</dependency> <artifactId>features-mdsal</artifactId>
</dependencies> <classifier>features</classifier>
</dependencyManagement> <version>${controller.mdsal.version}</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>features-restconf</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependencies> <dependency>
<dependency> <groupId>org.opendaylight.netconf</groupId>
<groupId>org.opendaylight.netconf</groupId> <artifactId>features-netconf-connector</artifactId>
<artifactId>sal-rest-docgen</artifactId> <classifier>features</classifier>
<version>${restconf.version}</version> <type>xml</type>
</dependency> <scope>runtime</scope>
<dependency> </dependency>
<groupId>org.opendaylight.yangtools</groupId> <dependency>
<artifactId>features-yangtools</artifactId> <groupId>org.opendaylight.netconf</groupId>
<classifier>features</classifier> <artifactId>features-netconf</artifactId>
<version>${yangtools.version}</version> <classifier>features</classifier>
<type>xml</type> <type>xml</type>
<scope>runtime</scope>
</dependency>
<!-- <dependency> <groupId>org.opendaylight.netconf</groupId> <artifactId>odl-config-netconf-connector</artifactId>
<version>${netconf.version}</version> <type>xml</type> <classifier>features</classifier>
</dependency> -->
<!-- Netconf will not provide schemas without monitoring -->
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>config-manager-facade-xml</artifactId>
<version>0.8.4</version>
</dependency>
<!-- <dependency> <groupId>org.opendaylight.netconf</groupId> <artifactId>odl-netconf-monitoring</artifactId>
<version>${netconf.version}</version> <type>xml</type> <classifier>features</classifier>
</dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>odl-netconf-console</artifactId>
<version>${netconf.version}</version> <type>xml</type> <classifier>features</classifier>
</dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>odl-netconf-topology</artifactId>
<version>${netconf.version}</version> <type>xml</type> <classifier>features</classifier>
</dependency> -->
</dependency> <!-- 在karaf中打包 <dependency> <groupId>org.opendaylight.dluxapps</groupId>
<dependency> <artifactId>features-dluxapps</artifactId> <version>${dlux.version}</version>
<groupId>org.opendaylight.controller</groupId> <classifier>features</classifier> <type>xml</type> </dependency> -->
<artifactId>features-mdsal</artifactId>
<classifier>features</classifier>
<version>${controller.mdsal.version}</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>features-restconf</artifactId>
<classifier>features</classifier>
<version>${restconf.version}</version>
<type>xml</type>
</dependency> <dependency>
<groupId>com.cmcc.cmhi</groupId>
<dependency> <artifactId>huawei-driver</artifactId>
<groupId>org.opendaylight.netconf</groupId> <version>${project.version}</version>
<artifactId>features-netconf-connector</artifactId> </dependency>
<classifier>features</classifier> </dependencies>
<version>${netconf.version}</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>features-netconf</artifactId>
<classifier>features</classifier>
<version>${netconf.version}</version>
<type>xml</type>
</dependency>
<!--
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>odl-config-netconf-connector</artifactId>
<version>${netconf.version}</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
-->
<!-- Netconf will not provide schemas without monitoring -->
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>config-manager-facade-xml</artifactId>
<version>0.8.4</version>
</dependency>
<!--
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>odl-netconf-monitoring</artifactId>
<version>${netconf.version}</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>odl-netconf-console</artifactId>
<version>${netconf.version}</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>odl-netconf-topology</artifactId>
<version>${netconf.version}</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
-->
<!-- 在karaf中打包
<dependency>
<groupId>org.opendaylight.dluxapps</groupId>
<artifactId>features-dluxapps</artifactId>
<version>${dlux.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
-->
<dependency>
<groupId>com.cmcc.cmhi</groupId>
<artifactId>huawei-driver</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -24,7 +24,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>huawei-driver</module>
<module>features-driver-all</module> <module>features-driver-all</module>
<module>feature-adaptation-layer</module>
<module>huawei-driver</module>
</modules> </modules>
</project> </project>