summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-data-services/features/onap-appc-config-data-services/pom.xml
blob: d0f25ee0823ac61aed4c72acc3a486f26dd32153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<!--
============LICENSE_START=======================================================
ONAP : APPC
================================================================================
Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
=============================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============LICENSE_END=========================================================
-->
<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.onap.appc.parent</groupId>
        <artifactId>single-feature-parent</artifactId>
        <version>2.6.0-SNAPSHOT</version>
        <relativePath />
    </parent>

    <groupId>org.onap.appc</groupId>
    <artifactId>onap-appc-config-data-services</artifactId>
    <version>1.6.2-SNAPSHOT</version>
    <packaging>feature</packaging>

    <name></name>

    <dependencies>
        <dependency>
            <groupId>org.opendaylight.controller</groupId>
            <artifactId>odl-mdsal-broker</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>ccsdk-sli</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>ccsdk-dblib</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
            <version>${ccsdk.sli.core.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.adaptors</groupId>
            <artifactId>ccsdk-sql-resource</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
            <version>${ccsdk.sli.adaptors.version}</version>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>${commons.collections.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.appc</groupId>
            <artifactId>appc-config-data-services-provider</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                <includeTransitiveDependency>false</includeTransitiveDependency>
                    <excludedArtifactIds>
                        <excludedArtifactId>slf4j-api</excludedArtifactId>
                        <excludedArtifactId>tomcat-jdbc</excludedArtifactId>
                        <excludedArtifactId>tomcat-juli</excludedArtifactId>
                         <excludedArtifactId>httpcore</excludedArtifactId>
                         <excludedArtifactId>httpclient</excludedArtifactId>
                         <excludedArtifactId>org.eclipse.osgi</excludedArtifactId>
                         
                    </excludedArtifactIds>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
packages+=(python-dev) # Vagrant installation if [[ "${enable_vagrant_install+x}" ]]; then wget -q https://releases.hashicorp.com/vagrant/$vagrant_version/vagrant_${vagrant_version}_x86_64.deb sudo dpkg -i vagrant_${vagrant_version}_x86_64.deb rm vagrant_${vagrant_version}_x86_64.deb fi case $VAGRANT_DEFAULT_PROVIDER in virtualbox) echo "deb http://download.virtualbox.org/virtualbox/debian bionic contrib" >> /etc/apt/sources.list wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - packages+=(virtualbox-5.1 dkms) ;; libvirt) # vagrant-libvirt dependencies packages+=(qemu libvirt-bin ebtables dnsmasq libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev cpu-checker) # NFS packages+=(nfs-kernel-server) ;; esac sudo apt-get update ;; rhel|centos|fedora) PKG_MANAGER=$(which dnf || which yum) sudo "$PKG_MANAGER" updateinfo INSTALLER_CMD="sudo -H -E ${PKG_MANAGER} -q -y install" packages+=(python-devel) # Vagrant installation if [[ "${enable_vagrant_install+x}" ]]; then wget -q https://releases.hashicorp.com/vagrant/$vagrant_version/vagrant_${vagrant_version}_x86_64.rpm $INSTALLER_CMD vagrant_${vagrant_version}_x86_64.rpm rm vagrant_${vagrant_version}_x86_64.rpm fi case $VAGRANT_DEFAULT_PROVIDER in virtualbox) wget -q http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo -P /etc/yum.repos.d $INSTALLER_CMD --enablerepo=epel dkms wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import - packages+=(VirtualBox-5.1) ;; libvirt) # vagrant-libvirt dependencies packages+=(qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm) # NFS packages+=(nfs-utils nfs-utils-lib) ;; esac ;; esac # Enable Nested-Virtualization vendor_id=$(lscpu|grep "Vendor ID") if [[ $vendor_id == *GenuineIntel* ]]; then kvm_ok=$(cat /sys/module/kvm_intel/parameters/nested) if [[ $kvm_ok == 'N' ]]; then echo "Enable Intel Nested-Virtualization" sudo rmmod kvm-intel echo 'options kvm-intel nested=y' | sudo tee --append /etc/modprobe.d/dist.conf sudo modprobe kvm-intel fi else kvm_ok=$(cat /sys/module/kvm_amd/parameters/nested) if [[ $kvm_ok == '0' ]]; then echo "Enable AMD Nested-Virtualization" sudo rmmod kvm-amd echo 'options kvm-amd nested=1' | sudo tee --append /etc/modprobe.d/dist.conf sudo modprobe kvm-amd fi fi sudo modprobe vhost_net ${INSTALLER_CMD} "${packages[@]}" if ! which pip; then curl -sL https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python else sudo -H -E pip install --no-cache-dir --upgrade pip fi sudo -H -E pip install --no-cache-dir tox if [[ ${http_proxy+x} ]]; then vagrant plugin install vagrant-proxyconf fi if [ "$VAGRANT_DEFAULT_PROVIDER" == libvirt ]; then vagrant plugin install vagrant-libvirt sudo usermod -a -G $libvirt_group "$USER" # This might require to reload user's group assigments sudo systemctl restart libvirtd # Start statd service to prevent NFS lock errors sudo systemctl enable rpc-statd sudo systemctl start rpc-statd case ${ID,,} in ubuntu|debian) kvm-ok ;; esac fi