As I mentioned in an earlier post, I've used the Maven capabilities in Eclipse to import a project based on a pom.xml file. The imported project turned out not to be completely what I expected. Specifically, it wasn't stored in my Eclipse workspace folder. It was where I had originally created the pom.xml file.
I thought I could avoid this by creating the file within the workspace folder itself, but that didn't work, either. Eclipse refused to import something that is already in the workspace.
What I ended up doing was deleting the project from the project explorer without deleting the files from the filesystem. Then I asked Eclipse to import an existing project from the filesystem into the workspace. Overall, that worked, except for one thing.
Some bug in Eclipse made the import wizard think that something was still being processed. The wizard wouldn't close. I didn't want to abort Eclipse for fear that my workspace wouldn't be saved properly. I ended up clicking the "Back" button, choosing some other type of innocuous import, letting it run, then the wizard went away. I cleaned up by deleting the unnecessary imported files.
Wednesday, October 5, 2011
Java Web Apps for Beginners with Spring
I've been developing web applications for years and now I'm turning my focus to implement them in Java. Specifically, I'm trying to start working with the Spring framework.
I've been looking for tutorials on using the framework and I found the Green Beans articles in the Spring blog to be somewhat helpful. The article, "Green Beans: Getting Started with Spring MVC", has been especially helpful.
I'm going through it very slowly, attempting to understand the various bits well. I like the mention of Maven and I've used the example pom.xml given in the appendix. I ended up saving it to a new folder on my desktop, then telling Eclipse to import the Maven project (using the m2eclipse extension). Eclipse loaded it and Maven (magically!) found the dependencies. The author, Colin Sampaleanu, has included helpful comments in this file and the rest of the code.
I've been looking for tutorials on using the framework and I found the Green Beans articles in the Spring blog to be somewhat helpful. The article, "Green Beans: Getting Started with Spring MVC", has been especially helpful.
I'm going through it very slowly, attempting to understand the various bits well. I like the mention of Maven and I've used the example pom.xml given in the appendix. I ended up saving it to a new folder on my desktop, then telling Eclipse to import the Maven project (using the m2eclipse extension). Eclipse loaded it and Maven (magically!) found the dependencies. The author, Colin Sampaleanu, has included helpful comments in this file and the rest of the code.
Subscribe to:
Posts (Atom)