target-ide/ support by resourceBaseDir using ${project.build.directory} 13/47813/2
authorMichael Vorburger <vorburger@redhat.com>
Tue, 1 Nov 2016 20:44:28 +0000 (21:44 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 2 Nov 2016 00:11:18 +0000 (00:11 +0000)
without explicitly setting this,
org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
defaults to hard-coded target/generated-sources/spi for
META-INF/services/org.opendaylight.yangtools.yang.binding.YangModelBindingProvider
instead of target-ide.

Minor: Also add target-ide/ to .gitignore of this git repository.

Change-Id: I330646f5a4e71cda021697410d452298a4127f4f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/sal-binding-config/pom.xml
opendaylight/md-sal/sal-dom-config/pom.xml

index a182f92..7112344 100644 (file)
@@ -66,6 +66,7 @@
                 <generator>
                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
+                  <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
                 </generator>
                 <generator>
                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
index 4a5625e..0bfc320 100644 (file)
@@ -63,6 +63,7 @@
                 <generator>
                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
+                  <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
                 </generator>
                 <generator>
                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.