Hi Jim,
bernatowicz wrote:
Greetings,
I am using Appfuse 2.0 (Struts2), IDEA 7.0.1, and Tomcat 5.5.23. I have
built the skeleton app in Idea to create a WAR that I copy to
TOMCAT/webapps. I have manually replaced the ${} variables with the values
found in the pom.xml file in jdbc.properties files, but I cannot get rid of
the one regarding "hibernate.dialect".
Um, I'm not sure that was the best way to go about things :-(
You may find more success by putting all the ${} variables back and
specifying values for them, either in the <properties ..> element at
bottom of your .pom file (if you're the only person who will _ever_ work
on this project) or in a profiles.xml file (generally a much better idea
- makes it easy for someone else to take up work on the project, and
also enables you to specify different "environments" which can
particularly help in the early days of a project where you might be
trying things out with different databases etc.).
When I first started working with AppFuse, I glossed over all the detail
of Maven configuration, believing it was unnecessary to the task of
actually cutting code. I quickly learned that was a mistake. I
strongly recommend taking the time to learn at least about maven
profiles, you'll find a good understanding of that will make you much
more productive. The following link is a good place to start:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
The bit at the very bottom of the page (under "Naming Conventions") is a
bit terse and cryptic, but is a real gold nugget once you get your head
around it.
HTH,
Rob Hills
Waikiki, Western Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]