summaryrefslogtreecommitdiffstats
path: root/odlparent/odlparent-lite/pom.xml
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-12-18 16:05:41 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2018-12-18 16:05:41 -0500
commit3beea0e535215ac127e68af16ff78d9cffeafd11 (patch)
treea4832ec7e602bbf9e47d5f8c48e767d13f53e89a /odlparent/odlparent-lite/pom.xml
parentd5125039dd3176bc27dbf6f19dc12c793f66448a (diff)
Generate odlparent poms from template
Updated ccsdk/parent to use a common pom template to generate all the odlparent poms, which should be identical except for their parents. Change-Id: I1cfcff7191ca95434e390d5cf35651c0ad40705d Issue-ID: CCSDK-857 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Diffstat (limited to 'odlparent/odlparent-lite/pom.xml')
-rw-r--r--[-rwxr-xr-x]odlparent/odlparent-lite/pom.xml90
1 files changed, 84 insertions, 6 deletions
diff --git a/odlparent/odlparent-lite/pom.xml b/odlparent/odlparent-lite/pom.xml
index c70d8cdf..470b9d88 100755..100644
--- a/odlparent/odlparent-lite/pom.xml
+++ b/odlparent/odlparent-lite/pom.xml
@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
+<!--
+ PLEASE READ !!!!!
+
+ This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
+
+ Any updates needed should be made to that template and not to the generated pom.xml file
+-->
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
@@ -16,8 +23,8 @@
</parent>
- <url>http://wiki.onap.org</url>
<name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
+ <url>http://wiki.onap.org</url>
<description>Root POM to be used in place of odlparent for CCSDK based projects</description>
@@ -100,7 +107,6 @@
<sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
-
<!-- Support libraries used by OpenDaylight -->
<odl.mdsal.version>1.7.3</odl.mdsal.version>
<odl.mdsal.model.version>0.12.3</odl.mdsal.model.version>
@@ -181,13 +187,10 @@
<tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
- <dmaapClient.groupId>org.onap.dmaap.messagerouter.dmaapclient</dmaapClient.groupId>
- <dmaapClient.version>1.1.5</dmaapClient.version>
-
<glassfish.version>2.27</glassfish.version>
+ <skip.karaf.featureTest>true</skip.karaf.featureTest>
</properties>
-
<profiles>
<!-- Profiles from ONAP oparent -->
<profile>
@@ -420,6 +423,57 @@
<!-- End of profiles from ONAP oparent -->
+ <profile>
+ <activation>
+ <file>
+ <exists>src/main/yang</exists>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-maven-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>maven-sal-api-gen-plugin</artifactId>
+ <version>0.12.1</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>sal-rest-docgen-maven</artifactId>
+ <version>${odl.mdsal.version}</version>
+ <type>jar</type>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-sources</goal>
+ </goals>
+ <configuration>
+ <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
+ <codeGenerators>
+ <generator>
+ <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
+ <outputBaseDir>${salGeneratorPath}</outputBaseDir>
+ </generator>
+ <generator>
+ <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
+ <outputBaseDir>target/swagger</outputBaseDir>
+ </generator>
+ </codeGenerators>
+ <inspectDependencies>true</inspectDependencies>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
@@ -440,6 +494,30 @@
<scope>import</scope>
</dependency>
<dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-config</artifactId>
+ <version>${odl.mdsal.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-test-model</artifactId>
+ <version>${odl.mdsal.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-broker-impl</artifactId>
+ <version>${odl.mdsal.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-broker-impl</artifactId>
+ <version>${odl.mdsal.version}</version>
+ <type>test-jar</type>
+ <classifier>tests</classifier>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.onap.ccsdk.sli.core</groupId>
<artifactId>sli-common</artifactId>
<version>${ccsdk.sli.core.version}</version>