Juan Hernandez has uploaded a new change for review. Change subject: webadmin, restapi: Don't require path tweak in Eclipse ......................................................................
webadmin, restapi: Don't require path tweak in Eclipse Currently we need to do some adjustments to the source paths after importing the projects in Eclipse in order to add the directories contained generated source. This patch uses the build helper maven plugin to add those directories, so that Eclipse will import the projects without the need to manually tweak the paths. Change-Id: Ic48b86f266e287d95872c4048e1d0f6e4f58dd8f Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M backend/manager/modules/restapi/interface/definition/pom.xml M frontend/webadmin/modules/frontend/pom.xml M frontend/webadmin/modules/gwt-extension/pom.xml 3 files changed, 65 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/70/11170/1 diff --git a/backend/manager/modules/restapi/interface/definition/pom.xml b/backend/manager/modules/restapi/interface/definition/pom.xml index ad928a0..b529cd4 100644 --- a/backend/manager/modules/restapi/interface/definition/pom.xml +++ b/backend/manager/modules/restapi/interface/definition/pom.xml @@ -63,6 +63,27 @@ <artifactId>maven-checkstyle-plugin</artifactId> </plugin> + <!-- This is needed to avoid having to manually add the generated sources + directory to the source paths in Eclipse: --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/generated-sources/xjc</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> diff --git a/frontend/webadmin/modules/frontend/pom.xml b/frontend/webadmin/modules/frontend/pom.xml index 6bbf739..75741c3 100644 --- a/frontend/webadmin/modules/frontend/pom.xml +++ b/frontend/webadmin/modules/frontend/pom.xml @@ -77,6 +77,28 @@ <propertyExpansion>runNlsCheck=true</propertyExpansion> </configuration> </plugin> + + <!-- This is needed to avoid having to manually add the generated sources + directory to the source paths in Eclipse: --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/generated-sources/gwt</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> </project> diff --git a/frontend/webadmin/modules/gwt-extension/pom.xml b/frontend/webadmin/modules/gwt-extension/pom.xml index 0fc31e9..b067962 100644 --- a/frontend/webadmin/modules/gwt-extension/pom.xml +++ b/frontend/webadmin/modules/gwt-extension/pom.xml @@ -64,6 +64,28 @@ </execution> </executions> </plugin> + + <!-- This is needed to avoid having to manually add the generated sources + directory to the source paths in Eclipse: --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/generated-sources/annotations</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> </project> -- To view, visit http://gerrit.ovirt.org/11170 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic48b86f266e287d95872c4048e1d0f6e4f58dd8f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches