|
[
Permalink
| « Hide
]
Helge Tesgaard added a comment - 04/Jun/07 06:16 AM
After having called the command "mvn appfuse:full-source" on M5 the command "mvn appfuse:install -Dentity=<POJO>" stops working. The POJO video shows an example of generating actions, JSPs etc and ends with showing the command "mvn appfuse:full-source". This is not good becaus if people tries the command the nice generation mechanism breaks (at least on my computer).
You have to run "appfuse:gen" before running "appfuse:install". Also, "appfuse:full-source" does not work on modular archetypes. I believe this is stated in the release notes - perhaps not prominently enough.
Here's my sequence of commands:
mvn archetype:create blabla appfuse-modular-struts changed to project dir mvn integration-test mvn install eclipse:eclipse mvn -Declipse.workspace blabla mvn appfuse:gen changed to core dir mvn appfuse:gen mvn appfuse:install -Dentity=nl.msw.blabla.model.Person ERROR Of course, I did doublecheck that the file is actually in the right package. Not sure why you would actually need the sources here. The error suggests that you need them. Anyway, hope this clarifies the issue reported Try this:
mvn -Declipse.workspace blabla changed to core dir mvn appfuse:gen -Dentity=Person mvn appfuse:install -Dentity=Person Ok, this didn't work either, but I managed to partly get around it. Point is that I followed the video tutorial. When I went back to the documentation I noticed that another sequence of commands was called for mvn compile:hibernate3:hbm2ddl (database dialect not found)
When that generated an error I found another Jira issue where you suggested a documentation update so that you need to run mvn resources:testResources. mvn compile:hibernate3:hbm2ddl again and that works. So far so good, Tried appfuse:gen -Dentitu=Person again Now it sais: no database.properties found, trying absolute path and no hibernate.properties file loaded. Build is succesful though appfuse:install fails again with generated-sources not found Have to run now, but the manual sais I need to move on to edit spring configuration file etc. The video suggests this stuff is taken care of automatically. If I follow the manual, I will probably get there. Seems the manual is behind on the video (more automation) and the sequence in the video doesn't entirely work on a modular Struts. My 2cts. I'll try some more when I have time again. This should be fixed (and contain better errors messages) in 2.0.
Matt Raible made changes - 08/Oct/07 01:10 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||