Add generated source as source folder in eclipse 20/8820/1
authorEvan Zeller <evanrzeller@gmail.com>
Tue, 8 Jul 2014 19:07:42 +0000 (15:07 -0400)
committerEvan Zeller <evanrzeller@gmail.com>
Tue, 8 Jul 2014 19:18:41 +0000 (15:18 -0400)
Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
Change-Id: I63318aec3e316aadc4a6930937024d6ee456e94a

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>