Add plugin to set Eclipse source path
[portal/ric-dashboard.git] / dashboard / e2-mgr-client / pom.xml
index f9a8382..08a13df 100644 (file)
@@ -139,6 +139,25 @@ limitations under the License.
                                        </archive>
                                </configuration>
                        </plugin>
+                       <!-- Add generated source folder to Eclipse build path -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <!--  version>1.7</version> -->
+                               <executions>
+                                       <execution>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>target/generated-sources/swagger/src/main/java</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>