Merge "Add generated source as source folder in eclipse"
authorAmit Mandke <ammandke@cisco.com>
Tue, 8 Jul 2014 22:01:00 +0000 (22:01 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 8 Jul 2014 22:01:00 +0000 (22:01 +0000)
addresstracker/model/pom.xml
packethandler/model/pom.xml

index ae40f7f985a866057c9004a75d0d8c85b4acaf5f..2e4f0fabacf31bf7140e3cda6dadf5ba328e4ec9 100644 (file)
           </filesets>
         </configuration>
       </plugin>
-
     </plugins>
+    <pluginManagement>
+        <plugins>
+            <!--add generated source folders as source folders in eclipse -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>add-source</id>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <sources>
+                                <source>src/main/yang</source>
+                                <source>${codeGeneratorPath}</source>
+                                <source>${jmxGeneratorPath}</source>
+                                <source>${salGeneratorPath}</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </pluginManagement>
   </build>
 
 </project>
index c10685092b519e298797f6d423fac91fc623cfa8..1bd28862ddff3722fab56e15acaec9bc108e3ff1 100644 (file)
         </configuration>
       </plugin>
     </plugins>
+    <pluginManagement>
+        <plugins>
+            <!--add generated source folders as source folders in eclipse -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>add-source</id>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <sources>
+                                <source>src/main/yang</source>
+                                <source>${codeGeneratorPath}</source>
+                                <source>${jmxGeneratorPath}</source>
+                                <source>${salGeneratorPath}</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </pluginManagement>
   </build>
 </project>