3 Add Projects to distribution
4 ============================
9 Managed projects must be in the distribution. Follow the next steps below
10 to add your karaf features to distribution:
12 #. Download int/dist repository:
16 git clone ssh://<user>@git.opendaylight.org:29418/integration/distribution
18 #. Make sure the projects you depend are already in the pom file:
22 features/repos/index/pom.xml
24 #. Check your project version is correct in the file:
28 artifacts/upstream/properties/pom.xml
30 #. Declare your feature repositories and user-facing features dependencies:
32 If your project artifacts pom.xml contains your karaf feature repos and features,
33 just add your project artifacts dependency in:
37 artifacts/upstream/artifacts/pom.xml
39 Otherwise add your project feature repositories and your user-facing features to:
43 artifacts/upstream/feature-repos/pom.xml
44 artifacts/upstream/single-features/pom.xml
46 .. note:: Always add your maven dependencies in alphabethical order.
47 This also applies to the next steps.
49 #. Add your feature repositories in:
53 features/repos/index/pom.xml
55 #. Add your user facing features in either:
59 features/singles/odl-integration-compatible-with-all/pom.xml
61 if your feature is compatible.
65 features/singles/odl-integration-all/pom.xml
67 if your feature is not compatible.
69 .. note:: You do not need to add a feature if it is already contained
70 in another feature you have already included.
72 Remember compatible features are those that can co-exist with other features in ODL because:
74 * They do not interfere with any other feature
75 * They are not network intrusive (e.g. configure network devices or push flows out-of-the-box)
77 #. Push changes to int/dist and wait for patch verification and review.
79 Once the patch is merged your project will be part of the OpenDaylight distribution
80 and join the distribution-check verification.
86 Self-Managed projects must only be in the distribution if they want to be packaged in distrbution
87 and released at the same time as the Managed projects do.
89 Follow the next steps to add your karaf features to the OpenDaylight distribution:
91 #. Download int/dist repository:
95 git clone ssh://<user>@git.opendaylight.org:29418/integration/distribution
97 #. Add your feature reporsitory in:
103 .. note:: Always add your maven dependencies in alphabethical order.
104 This also applies to the next steps.
106 #. Download releng/builder repository:
110 git clone ssh://<user>@git.opendaylight.org:29418/releng/builder
112 #. Add your feature repo and user-facing features in:
116 jjb/releng-defaults.yaml
118 See this example for the file section:
122 # Self-Managed projects features
124 mvn:org.opendaylight.sxp/features-sxp/1.7.0-SNAPSHOT/xml/features
129 #. Push changes to int/dist and releng/builder and wait for patch verification and review.
131 Once the patches are merged your project will be part of the OpenDaylight distribution
132 and join the distibution-sanity verification.
134 .. note:: In order to install a Self-Managed feature, you have to first install the feature repository
135 in karaf, the example below shows how to install a repository from the karaf console.
139 opendayligt>feature:repo-add mvn:org.opendaylight.sxp/features-sxp/1.7.0-SNAPSHOT/xml/features
141 .. note:: You can alternatively add the repository in the karaf boot file etc/org.apache.karaf.features.cfg