On Tue, Apr 18, 2017 at 12:03 PM Magnus <alpineblaster@gmail.com> wrote:
Hello,after moving my projects to Maven, I am at a point where everything works again, with the help of the people in this group.However, when concentrating on the actual work again, I notice that the development cycle I have started with takes too long, so that I cannot be productive in any way.I am sure that it can be improved somehow, but how?Here is the simplified scenario:There are two Maven projects:
- my-lib:
a code library for any code (server-side and GWT-aware) that may be used by more than one application- my-app:
an actual GWT application that uses the libraryThe library project is built with the install goal (mvn install), so its jar file is stored in the local repository. This jar file in the repository is gripped by the application project, which has a corresponding dependency in its pom.xml file.Both projects are imported into eclipse.When everything is up-to-date, I can select "Debug as GWT Development Mode with Jetty", run and debug the application without any problems.So far so good. Now it comes:Sometimes I see a problem in the library code while debugging. Then, I want to stop debugging and edit the code. But then, the code is not editable, because eclipse is showing the source code included in the library jar file, not the original code from the library's Maven project. You can see that eclipse shows the source code labeled with a *.class file instead of a *.java file:So, I cannot edit the code immediately. I have to open the original file and edit the code there.But what after having done this?
In your Project Properties --> Maven, is the 'Resolve dependencies from Workspace projects' checkbox checked? That's supposed to incorporate the actual project code of your library into the project that depends on that library, assuming both are in the same workspace.
--The application project cannot "see" the changed code, because it only sees the jar file with the unchanged code in the local repository.It also doesn't seem that eclipse realizes this and does all the necessary steps automatically: When I start a new debugging session after having changed the code, I see the old code in the class file, as described above.So the only thing I can do right now is go to the command line an do this:
- update the library and update the local repository:
mvn package install- update the application, so that it fetches the new library jar file from the repository into its WEB-INF/lib directory
mvn packageEspecially the second step takes very long, since it will compile the permutations.After that I have to do a "Refresh" inside eclipse for both projects.Then, finally, I can start a new debugging session again.But wait: What is it that I wanted to do when coming back here? #-)The cycle described above takes about 20 minutes.What am I doing wrong?Thanks
Magnus
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
BORIS BRUDNOY
Web Application Developer, Java/GWT Enthusiast (LinkedIn)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment