This makes openflowjava work e.g. in Eclipse IDE out-of-the-box (using
https://github.com/vorburger/opendaylight-eclipse-setup configuration),
without any red. Without this, the paths with the generated code are
not automatically source folder in IDE, so not on classpath, so there's
red errors.
This is how all other projects do it; I just copy/pasted from elsewhere.
PS: In an ideal world, this should be inherited from some parent POM
e.g. in controller, but let's at least already do an ad-hoc fix here.
Change-Id: Ib0b8258de329345422d044f5fea4e9981b67da93
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<configuration>
<failOnViolation>false</failOnViolation>
<version>${checkstyle.version}</version>
<configuration>
<failOnViolation>false</failOnViolation>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-yang-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${jmxGeneratorPath}</source>
+ <source>${salGeneratorPath}</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
<pluginManagement>
</plugin>
</plugins>
<pluginManagement>