Instead have having a seperate bundle for the config file, let's use the src/main/config
source package and the config-parent parent from controller project
This patch also fixes:
- header violation
- proper .gitignore entry for maven-metadata-local.xml
Change-Id: I738e592f8d7e559d9609b8c8f1d4cf9102311367
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
.checkstyle
yang-gen-config/
yang-gen-sal/
-maven-metadata-local
+maven-metadata-local.xml
<!-- GBP configuration -->
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>groupbasedpolicy-ofoverlay-config</artifactId>
+ <artifactId>ofoverlay-renderer</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>groupbasedpolicy-faas-config</artifactId>
+ <artifactId>faas-renderer</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>neutron-mapper-config</artifactId>
+ <artifactId>neutron-mapper</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>neutron-ovsdb-config</artifactId>
+ <artifactId>neutron-ovsdb</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>ui-backend-config</artifactId>
+ <artifactId>ui-backend</artifactId>
<version>${project.version}</version>
<type>xml</type>
<classifier>config</classifier>
<!-- GBP configuration -->
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy-ofoverlay-config</artifactId>
+ <artifactId>ofoverlay-renderer</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy-faas-config</artifactId>
+ <artifactId>faas-renderer</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>neutron-mapper-config</artifactId>
+ <artifactId>neutron-mapper</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>neutron-ovsdb-config</artifactId>
+ <artifactId>neutron-ovsdb</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>ui-backend-config</artifactId>
+ <artifactId>ui-backend</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
<feature version='${sfc.version}'>odl-sfc-ui</feature>
<bundle>mvn:commons-net/commons-net/{{VERSION}}</bundle>
<bundle>mvn:org.opendaylight.groupbasedpolicy/ofoverlay-renderer/{{VERSION}}</bundle>
- <configfile finalname="${config.configfile.directory}/15-groupbasedpolicy-ofoverlay.xml">mvn:org.opendaylight.groupbasedpolicy/groupbasedpolicy-ofoverlay-config/{{VERSION}}/xml/config</configfile>
+ <configfile finalname="${config.configfile.directory}/15-groupbasedpolicy-ofoverlay.xml">mvn:org.opendaylight.groupbasedpolicy/ofoverlay-renderer/{{VERSION}}/xml/config</configfile>
</feature>
<!--
<feature version="${project.version}">odl-groupbasedpolicy-base</feature>
<feature version='${openflowplugin.version}'>odl-openflowplugin-nxm-extensions</feature>
<bundle>mvn:org.opendaylight.groupbasedpolicy/faas-renderer/{{VERSION}}</bundle>
- <configfile finalname="${config.configfile.directory}/15-groupbasedpolicy-faas.xml">mvn:org.opendaylight.groupbasedpolicy/groupbasedpolicy-faas-config/{{VERSION}}/xml/config</configfile>
+ <configfile finalname="${config.configfile.directory}/15-groupbasedpolicy-faas.xml">mvn:org.opendaylight.groupbasedpolicy/faas-renderer/{{VERSION}}/xml/config</configfile>
</feature>
<!--
<feature version="${project.version}">odl-groupbasedpolicy-ofoverlay</feature>
<bundle>mvn:org.opendaylight.groupbasedpolicy/neutron-mapper/{{VERSION}}</bundle>
<bundle>mvn:org.opendaylight.groupbasedpolicy/neutron-ovsdb/{{VERSION}}</bundle>
- <configfile finalname="${config.configfile.directory}/15-neutron-mapper.xml">mvn:org.opendaylight.groupbasedpolicy/neutron-mapper-config/{{VERSION}}/xml/config</configfile>
- <configfile finalname="${config.configfile.directory}/15-neutron-ovsdb.xml">mvn:org.opendaylight.groupbasedpolicy/neutron-ovsdb-config/{{VERSION}}/xml/config</configfile>
+ <configfile finalname="${config.configfile.directory}/15-neutron-mapper.xml">mvn:org.opendaylight.groupbasedpolicy/neutron-mapper/{{VERSION}}/xml/config</configfile>
+ <configfile finalname="${config.configfile.directory}/15-neutron-ovsdb.xml">mvn:org.opendaylight.groupbasedpolicy/neutron-ovsdb/{{VERSION}}/xml/config</configfile>
</feature>
<!--
<feature version="${project.version}">odl-groupbasedpolicy-base</feature>
<feature version="${restconf.version}">odl-restconf</feature>
<bundle>mvn:org.opendaylight.groupbasedpolicy/ui-backend/{{VERSION}}</bundle>
- <configfile finalname="${config.configfile.directory}/15-ui-backend.xml">mvn:org.opendaylight.groupbasedpolicy/ui-backend-config/{{VERSION}}/xml/config</configfile>
+ <configfile finalname="${config.configfile.directory}/15-ui-backend.xml">mvn:org.opendaylight.groupbasedpolicy/ui-backend/{{VERSION}}/xml/config</configfile>
</feature>
<!--
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (c) 2015 Huawei Technologies 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 -->
-<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.groupbasedpolicy</groupId>
- <artifactId>commons.groupbasedpolicy</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../commons/parent</relativePath>
- </parent>
-
- <artifactId>groupbasedpolicy-faas-config</artifactId>
- <description>Controller Configuration files for groupbasedpolicy</description>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/15-groupbasedpolicy-faas.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (c) 2015 Cisco Systems, Inc. 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 -->
-<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.groupbasedpolicy</groupId>
- <artifactId>commons.groupbasedpolicy</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../commons/parent</relativePath>
- </parent>
-
- <artifactId>groupbasedpolicy-ofoverlay-config</artifactId>
- <description>Controller Configuration files for groupbasedpolicy</description>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/15-groupbasedpolicy-ofoverlay.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (c) 2015 Cisco Systems, Inc. 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 -->
-<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.groupbasedpolicy</groupId>
- <artifactId>commons.groupbasedpolicy</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../commons/parent</relativePath>
- </parent>
-
- <artifactId>neutron-mapper-config</artifactId>
- <description>Controller Configuration files for neutron-mapper</description>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/15-neutron-mapper.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy.project</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../</relativePath>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>config-parent</artifactId>
+ <version>0.4.0-SNAPSHOT</version>
+ <relativePath/>
</parent>
+ <groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>neutron-mapper</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
<packaging>bundle</packaging>
+ <properties>
+ <neutron.version>0.6.0-SNAPSHOT</neutron.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>groupbasedpolicy</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ofoverlay-renderer</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.neutron</groupId>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (c) 2015 Cisco Systems, Inc. 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 -->
-<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.groupbasedpolicy</groupId>
- <artifactId>commons.groupbasedpolicy</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../commons/parent</relativePath>
- </parent>
-
- <artifactId>neutron-ovsdb-config</artifactId>
- <description>Controller Configuration files for neutron-ovsdb</description>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/15-neutron-ovsdb.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy.project</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../</relativePath>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>config-parent</artifactId>
+ <version>0.4.0-SNAPSHOT</version>
+ <relativePath/>
</parent>
+ <groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>neutron-ovsdb</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
<packaging>bundle</packaging>
+ <properties>
+ <ovsdb.version>1.2.1-SNAPSHOT</ovsdb.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>groupbasedpolicy</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ofoverlay-renderer</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>neutron-mapper</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>southbound-api</artifactId>
+ <version>${ovsdb.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>southbound-impl</artifactId>
+ <version>${ovsdb.version}</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<module>commons/parent</module>
<module>groupbasedpolicy</module>
<module>renderers</module>
- <module>groupbasedpolicy-ofoverlay-config</module>
- <module>groupbasedpolicy-faas-config</module>
<module>neutron-mapper</module>
- <module>neutron-mapper-config</module>
<module>neutron-ovsdb</module>
- <module>neutron-ovsdb-config</module>
<module>ui-backend</module>
- <module>ui-backend-config</module>
<module>groupbasedpolicy-ui</module>
<module>distribution-karaf</module>
<module>features</module>
<artifactId>faas-renderer</artifactId>
<packaging>bundle</packaging>
+ <properties>
+ <openflowplugin.version>0.2.0-SNAPSHOT</openflowplugin.version>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.opendaylight.mdsal.model</groupId>
<dependency>
<groupId>org.opendaylight.openflowplugin</groupId>
<artifactId>openflowplugin-extension-nicira</artifactId>
+ <version>${openflowplugin.version}</version>
</dependency>
<!-- testing dependencies -->
<dependency>
<capability>urn:opendaylight:params:xml:ns:yang:controller:config:faas-provider:impl?module=faas-provider-impl&revision=2015-10-09</capability>
</required-capabilities>
-</snapshot>
+</snapshot>
\ No newline at end of file
-package org.opendaylight.groupbasedpolicy.renderer.faas;
-
/*
* Copyright (c) 2015 Huawei Technologies 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
*/
+
+package org.opendaylight.groupbasedpolicy.renderer.faas;
+
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Map;
-package org.opendaylight.groupbasedpolicy.renderer.faas;
-
/*
* Copyright (c) 2015 Huawei Technologies and others. All rights reserved.
*
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+package org.opendaylight.groupbasedpolicy.renderer.faas;
+
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
<artifactId>ofoverlay-renderer</artifactId>
<packaging>bundle</packaging>
+ <properties>
+ <ovsdb.version>1.2.1-SNAPSHOT</ovsdb.version>
+ <openflowplugin.version>0.2.0-SNAPSHOT</openflowplugin.version>
+ <liblldp.version>0.10.0-SNAPSHOT</liblldp.version>
+ <sfc.version>0.2.0-SNAPSHOT</sfc.version>
+ </properties>
+
<dependencies>
<!-- model dependencies -->
<dependency>
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>southbound-api</artifactId>
+ <version>${ovsdb.version}</version>
</dependency>
-
<!-- project specific dependencies -->
<dependency>
<groupId>org.opendaylight.openflowplugin</groupId>
<artifactId>openflowplugin-extension-nicira</artifactId>
+ <version>${openflowplugin.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>liblldp</artifactId>
+ <version>${liblldp.version}</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
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.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy.project</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../</relativePath>
+ <parent>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>config-parent</artifactId>
+ <version>0.4.0-SNAPSHOT</version>
+ <relativePath/>
</parent>
+ <groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>groupbasedpolicy-renderers</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>groupbasedpolicy</artifactId>
- </dependency>
-
- <!-- controller dependencies -->
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-config</artifactId>
+ <version>${project.version}</version>
</dependency>
</dependencies>
</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (c) 2015 Cisco Systems, Inc. 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 -->
-<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.groupbasedpolicy</groupId>
- <artifactId>commons.groupbasedpolicy</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../commons/parent</relativePath>
- </parent>
-
- <artifactId>ui-backend-config</artifactId>
- <description>Controller Configuration files for ui-backend</description>
- <packaging>jar</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/15-ui-backend.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.groupbasedpolicy</groupId>
- <artifactId>groupbasedpolicy.project</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>config-parent</artifactId>
+ <version>0.4.0-SNAPSHOT</version>
+ <relativePath/>
</parent>
+ <groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>ui-backend</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- project build -->
<dependency>
<groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>groupbasedpolicy</artifactId>
- </dependency>
-
- <!-- controller dependencies -->
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-config</artifactId>
+ <version>${project.version}</version>
</dependency>
</dependencies>
</project>