Update pom.xml to depend on official onos-dependencies parent pom
This patch fixes the issues seen when trying to release the app,
and in general, when trying to execute maven stages other than
build/install.
ONOS stopped publishing onos-dependencies with version 2.2.0, thus
requiring each app to explicitly declare dependencies and plugins. The
following ONOS patch revamps support for building 3rd-party apps with
Maven, including publishing of the onos-dependencies (parent) pom:
https://gerrit.onosproject.org/#/c/22790/
The new onos-dependencies exposes shared Java dependencies as well as
Maven plugins, already configured to support the whole life-cycle of
apps (from build, to reporting and release).
Change-Id: Ife088a86776582e9bcbbfcce0109e5d7affdaaa0
diff --git a/pom.xml b/pom.xml
index 0de6965..f62c246 100755
--- a/pom.xml
+++ b/pom.xml
@@ -17,10 +17,14 @@
<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.onosproject</groupId>
+ <artifactId>onos-dependencies</artifactId>
+ <version>2.2.1-b2</version>
+ </parent>
+
<groupId>org.opencord</groupId>
<artifactId>dhcpl2relay</artifactId>
- <!-- TODO: Should the version be bumped since we are now producing
- classes for JRE 11? -->
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
@@ -28,8 +32,6 @@
<url>http://opencord.org</url>
<properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <onos.version>2.2.0</onos.version>
<sadis.api.version>4.0.0-SNAPSHOT</sadis.api.version>
</properties>
@@ -38,28 +40,6 @@
<module>api</module>
</modules>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>4.1.0</version>
- <extensions>true</extensions>
- <inherited>true</inherited>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.0</version>
- <configuration>
- <release>11</release>
- </configuration>
- <inherited>true</inherited>
- </plugin>
- </plugins>
- </build>
-
<repositories>
<repository>
<id>central</id>