From c7237c68818c70efb2fe5719bbd9e48a91bf2c4d Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 12 Feb 2015 19:16:37 +0100 Subject: [PATCH] BUG-2626: activate enunciate only on jdk-1.7 The plugin is not supported with JDK8. Create two parent pom.xmls, one of which defines the activation on JDK7 only and the second one centralizes the AD-SAL definitions for it. Change-Id: I791847d6e27dae0f51499b303cbea9163f5f184a Signed-off-by: Robert Varga --- .../adsal-enunciate-parent/enunciate.xml | 12 ++++ .../adsal/adsal-enunciate-parent/pom.xml | 42 +++++++++++++ .../northbound/connectionmanager/pom.xml | 15 +---- .../adsal/northbound/containermanager/pom.xml | 8 +-- .../northbound/controllermanager/pom.xml | 15 +---- .../adsal/northbound/flowprogrammer/pom.xml | 15 +---- .../adsal/northbound/hosttracker/pom.xml | 15 +---- .../adsal/northbound/java-client/pom.xml | 8 +-- .../networkconfiguration/bridgedomain/pom.xml | 15 +---- .../adsal/northbound/staticrouting/pom.xml | 15 +---- .../adsal/northbound/statistics/pom.xml | 15 +---- opendaylight/adsal/northbound/subnets/pom.xml | 60 ++++++++++--------- .../adsal/northbound/switchmanager/pom.xml | 15 +---- .../adsal/northbound/topology/pom.xml | 15 +---- .../adsal/northbound/usermanager/pom.xml | 8 +-- opendaylight/adsal/pom.xml | 1 + .../samples/northbound/loadbalancer/pom.xml | 15 +---- .../commons/enunciate-parent/enunciate.xml | 12 ++++ opendaylight/commons/enunciate-parent/pom.xml | 42 +++++++++++++ .../neutron/northbound/pom.xml | 8 +-- pom.xml | 1 + 21 files changed, 170 insertions(+), 182 deletions(-) create mode 100644 opendaylight/adsal/adsal-enunciate-parent/enunciate.xml create mode 100644 opendaylight/adsal/adsal-enunciate-parent/pom.xml create mode 100644 opendaylight/commons/enunciate-parent/enunciate.xml create mode 100644 opendaylight/commons/enunciate-parent/pom.xml diff --git a/opendaylight/adsal/adsal-enunciate-parent/enunciate.xml b/opendaylight/adsal/adsal-enunciate-parent/enunciate.xml new file mode 100644 index 0000000000..431ea7b316 --- /dev/null +++ b/opendaylight/adsal/adsal-enunciate-parent/enunciate.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/opendaylight/adsal/adsal-enunciate-parent/pom.xml b/opendaylight/adsal/adsal-enunciate-parent/pom.xml new file mode 100644 index 0000000000..11e3667079 --- /dev/null +++ b/opendaylight/adsal/adsal-enunciate-parent/pom.xml @@ -0,0 +1,42 @@ + + + + + + + org.opendaylight.controller + enunciate-parent + 1.5.0-SNAPSHOT + ../../commons/enunciate-parent + + + 4.0.0 + adsal-enunciate-parent + pom + + + + + + org.codehaus.enunciate + maven-enunciate-plugin + + + org.opendaylight.controller + sal + ${sal.version} + + + + + + + + diff --git a/opendaylight/adsal/northbound/connectionmanager/pom.xml b/opendaylight/adsal/northbound/connectionmanager/pom.xml index b68bc25545..7cc12484f2 100644 --- a/opendaylight/adsal/northbound/connectionmanager/pom.xml +++ b/opendaylight/adsal/northbound/connectionmanager/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent connectionmanager.northbound @@ -75,17 +75,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/containermanager/pom.xml b/opendaylight/adsal/northbound/containermanager/pom.xml index 8898a06f64..1bc170a679 100644 --- a/opendaylight/adsal/northbound/containermanager/pom.xml +++ b/opendaylight/adsal/northbound/containermanager/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../../commons/enunciate-parent containermanager.northbound @@ -73,10 +73,6 @@ - - org.codehaus.enunciate - maven-enunciate-plugin - diff --git a/opendaylight/adsal/northbound/controllermanager/pom.xml b/opendaylight/adsal/northbound/controllermanager/pom.xml index 395dd2dc29..20cff42b82 100644 --- a/opendaylight/adsal/northbound/controllermanager/pom.xml +++ b/opendaylight/adsal/northbound/controllermanager/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent controllermanager.northbound 0.1.0-SNAPSHOT @@ -86,17 +86,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/flowprogrammer/pom.xml b/opendaylight/adsal/northbound/flowprogrammer/pom.xml index fdc7340a35..3c2aed1310 100644 --- a/opendaylight/adsal/northbound/flowprogrammer/pom.xml +++ b/opendaylight/adsal/northbound/flowprogrammer/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent flowprogrammer.northbound @@ -78,17 +78,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/hosttracker/pom.xml b/opendaylight/adsal/northbound/hosttracker/pom.xml index 778125af28..4dea525e0b 100644 --- a/opendaylight/adsal/northbound/hosttracker/pom.xml +++ b/opendaylight/adsal/northbound/hosttracker/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent hosttracker.northbound 0.5.0-SNAPSHOT @@ -80,17 +80,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/java-client/pom.xml b/opendaylight/adsal/northbound/java-client/pom.xml index 5a4c18e88c..df6b86eea5 100644 --- a/opendaylight/adsal/northbound/java-client/pom.xml +++ b/opendaylight/adsal/northbound/java-client/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../../commons/enunciate-parent northbound.client @@ -159,10 +159,6 @@ - - org.codehaus.enunciate - maven-enunciate-plugin - org.codehaus.mojo diff --git a/opendaylight/adsal/northbound/networkconfiguration/bridgedomain/pom.xml b/opendaylight/adsal/northbound/networkconfiguration/bridgedomain/pom.xml index f78ff96608..659bfe9030 100644 --- a/opendaylight/adsal/northbound/networkconfiguration/bridgedomain/pom.xml +++ b/opendaylight/adsal/northbound/networkconfiguration/bridgedomain/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../../commons/opendaylight + ../../../adsal-enunciate-parent networkconfig.bridgedomain.northbound @@ -78,17 +78,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/staticrouting/pom.xml b/opendaylight/adsal/northbound/staticrouting/pom.xml index 3a89369b18..be84c61814 100644 --- a/opendaylight/adsal/northbound/staticrouting/pom.xml +++ b/opendaylight/adsal/northbound/staticrouting/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent forwarding.staticrouting.northbound @@ -74,17 +74,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/statistics/pom.xml b/opendaylight/adsal/northbound/statistics/pom.xml index 0d42ffbb80..9e98a75c44 100644 --- a/opendaylight/adsal/northbound/statistics/pom.xml +++ b/opendaylight/adsal/northbound/statistics/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent statistics.northbound @@ -82,17 +82,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/subnets/pom.xml b/opendaylight/adsal/northbound/subnets/pom.xml index 1eaa45dddd..7a96bdc1ea 100644 --- a/opendaylight/adsal/northbound/subnets/pom.xml +++ b/opendaylight/adsal/northbound/subnets/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent subnets.northbound @@ -39,6 +39,36 @@ + + + + org.codehaus.enunciate + maven-enunciate-plugin + + + org.opendaylight.controller + clustering.services + ${clustering.services.version} + + + org.opendaylight.controller + configuration + ${configuration.version} + + + org.opendaylight.controller + sal + ${sal.version} + + + org.opendaylight.controller + switchmanager + ${switchmanager.api.version} + + + + + org.apache.felix @@ -75,32 +105,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - clustering.services - ${clustering.services.version} - - - org.opendaylight.controller - configuration - ${configuration.version} - - - org.opendaylight.controller - sal - ${sal.version} - - - org.opendaylight.controller - switchmanager - ${switchmanager.api.version} - - - diff --git a/opendaylight/adsal/northbound/switchmanager/pom.xml b/opendaylight/adsal/northbound/switchmanager/pom.xml index b7aaae58d0..c3c380444c 100644 --- a/opendaylight/adsal/northbound/switchmanager/pom.xml +++ b/opendaylight/adsal/northbound/switchmanager/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent switchmanager.northbound 0.5.0-SNAPSHOT @@ -75,17 +75,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/topology/pom.xml b/opendaylight/adsal/northbound/topology/pom.xml index 60a12700aa..62399c5f04 100644 --- a/opendaylight/adsal/northbound/topology/pom.xml +++ b/opendaylight/adsal/northbound/topology/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../adsal-enunciate-parent topology.northbound @@ -78,17 +78,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/adsal/northbound/usermanager/pom.xml b/opendaylight/adsal/northbound/usermanager/pom.xml index e51ef2faa9..b08995f560 100644 --- a/opendaylight/adsal/northbound/usermanager/pom.xml +++ b/opendaylight/adsal/northbound/usermanager/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../../commons/enunciate-parent usermanager.northbound @@ -66,10 +66,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - diff --git a/opendaylight/adsal/pom.xml b/opendaylight/adsal/pom.xml index 23db4d56a6..682d2a0729 100644 --- a/opendaylight/adsal/pom.xml +++ b/opendaylight/adsal/pom.xml @@ -95,6 +95,7 @@ samples/northbound/loadbalancer dummy-console + adsal-enunciate-parent features/base diff --git a/opendaylight/adsal/samples/northbound/loadbalancer/pom.xml b/opendaylight/adsal/samples/northbound/loadbalancer/pom.xml index e63e992b3f..b5ca85ee7d 100644 --- a/opendaylight/adsal/samples/northbound/loadbalancer/pom.xml +++ b/opendaylight/adsal/samples/northbound/loadbalancer/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + adsal-enunciate-parent 1.5.0-SNAPSHOT - ../../../../commons/opendaylight + ../../../adsal-enunciate-parent samples.loadbalancer.northbound @@ -74,17 +74,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - - - org.opendaylight.controller - sal - ${sal.version} - - - diff --git a/opendaylight/commons/enunciate-parent/enunciate.xml b/opendaylight/commons/enunciate-parent/enunciate.xml new file mode 100644 index 0000000000..431ea7b316 --- /dev/null +++ b/opendaylight/commons/enunciate-parent/enunciate.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/opendaylight/commons/enunciate-parent/pom.xml b/opendaylight/commons/enunciate-parent/pom.xml new file mode 100644 index 0000000000..2b89137733 --- /dev/null +++ b/opendaylight/commons/enunciate-parent/pom.xml @@ -0,0 +1,42 @@ + + + + + + + org.opendaylight.controller + commons.opendaylight + 1.5.0-SNAPSHOT + ../opendaylight + + + 4.0.0 + enunciate-parent + pom + + + + + non-java8 + + 1.7 + + + + + org.codehaus.enunciate + maven-enunciate-plugin + + + + + + + diff --git a/opendaylight/networkconfiguration/neutron/northbound/pom.xml b/opendaylight/networkconfiguration/neutron/northbound/pom.xml index 0eecca0c3e..e61a8e5118 100644 --- a/opendaylight/networkconfiguration/neutron/northbound/pom.xml +++ b/opendaylight/networkconfiguration/neutron/northbound/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + enunciate-parent 1.5.0-SNAPSHOT - ../../../commons/opendaylight + ../../../commons/enunciate-parent networkconfig.neutron.northbound 0.5.0-SNAPSHOT @@ -61,10 +61,6 @@ ${project.basedir}/src/main/resources/META-INF - - org.codehaus.enunciate - maven-enunciate-plugin - diff --git a/pom.xml b/pom.xml index 1c4bc4d4d5..0aaf0945c6 100644 --- a/pom.xml +++ b/pom.xml @@ -40,6 +40,7 @@ opendaylight/commons/logback_settings opendaylight/commons/filter-valve opendaylight/commons/liblldp + opendaylight/commons/enunciate-parent karaf -- 2.36.6