From bcd316e1da31d5cd055d9ac398cc0245d01b4730 Mon Sep 17 00:00:00 2001 From: jameshall03885 Date: Wed, 9 Apr 2014 13:16:05 -0400 Subject: [PATCH] Bug 651 - cleanup eclipse errors in openflowplugin - To avoid devs from having to run the IDE profile so eclipse can see the yang generated source files, the yang source files are now generated under src/main/yang-gen-sals or src/main/yang-gen-config instead of target/target-ide. - The maven-clean-plugin was moved to the ofp parent pom and removed from all child poms where it was specified. Thus, it will be automatically run for all projects. The plugin's execution will clean all xtend and yang generated source dirs. - The build-helper-maven-plugin was also moved to the parent pom and removed from all child poms. It will automatically run for all projects and no longer needs to be specified in child poms. The plugin's execution will created eclipse source folders for all xtend and yang generated source. I also removed two occurances of ">" which seemed extraneous ... but perhaps I'm unaware of some pom.xml magic? Change-Id: Ie99e141e55e03a3a3ebce3743624e7bea6e42e7b Signed-off-by: jameshall03885 --- drop-test/pom.xml | 2 +- pom.xml | 73 ++++++++++++++++++++++++++++++++++++++++++- test-provider/pom.xml | 27 +--------------- 3 files changed, 74 insertions(+), 28 deletions(-) diff --git a/drop-test/pom.xml b/drop-test/pom.xml index 03f434e937..a156f625e9 100644 --- a/drop-test/pom.xml +++ b/drop-test/pom.xml @@ -65,7 +65,7 @@ org.opendaylight.openflowplugin.droptest.DropTestActivator - commons-lang> + commons-lang ${project.groupId}.${project.artifactId} ${project.basedir}/META-INF diff --git a/pom.xml b/pom.xml index 00221afbba..c3e03d3724 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,11 @@ 0.1.2-SNAPSHOT 0.2.5-SNAPSHOT 0.2.5-SNAPSHOT + 1.8 + 2.4.3 + src/main/xtend-gen + src/main/yang-gen-config + src/main/yang-gen-sal @@ -244,6 +249,12 @@ + + + org.codehaus.mojo + build-helper-maven-plugin + + @@ -259,8 +270,68 @@ maven-paxexam-plugin 1.2.4 + + org.eclipse.xtend + xtend-maven-plugin + ${xtend.version} + + + + compile + + + ${xtend.dstdir} + + + + + + maven-clean-plugin + + + + ${xtend.dstdir} + + ** + + + + ${jmxGeneratorPath} + + ** + + + + ${salGeneratorPath} + + ** + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + ${build.helper.version} + + + add-source + generate-sources + + add-source + + + + ${jmxGeneratorPath} + ${salGeneratorPath} + ${xtend.dstdir} + + + + + - diff --git a/test-provider/pom.xml b/test-provider/pom.xml index 9014162ce5..c094c43a40 100644 --- a/test-provider/pom.xml +++ b/test-provider/pom.xml @@ -71,7 +71,7 @@ org.opendaylight.openflowplugin.test.OpenflowpluginTestActivator - commons-lang> + commons-lang ${project.groupId}.${project.artifactId} ${project.basedir}/META-INF @@ -80,31 +80,6 @@ org.eclipse.xtend xtend-maven-plugin - ${xtend.version} - - - - compile - - - ${basedir}/src/main/xtend-gen - - - - - - maven-clean-plugin - ${maven.clean.plugin.version} - - - - ${basedir}/src/main/xtend-gen - - ** - - - - -- 2.36.6