Coach Thrasher

Saturday Nov 04, 2006

AppFuse 1.9.4 Notes

Update: These notes reference the latest SVN sources from AppFuse 2.0 on AppFuse.org, not the v1.9.4 versions indicated in the title. I've got too many files all mixed up in my dev dir!


The latest AppFuse has been heavily upgraded for use with Maven 2 and these are my notes on getting it to build, out of the box (zip).

One of my biggest hangups with Maven is that it's not well documented. It's a great tool for version management, and it keeps the number of external dependancy jars from multiplying like rabbits in Ant build structures, but I find it hard to use because I don't clearly understand what it's doing, and I'm a control freak (as needed).

There are three external dependancies that needed to be satisfied. The complicated issue, as a Maven neophyte, is getting non-existant dependancies resolved. After punching around for a while in AppFuse's maven output I realized that Maven actually tells you exactly what to do: download and manually install jars into the local repository. This is cool, but not obvious when screenfulls of text are scrolling by. It's all jibberish until I understand it. LOL.

Some of the 3rd party packages that AppFuse uses don't have their referenced versions in the remote maven repositories yet. The solution is to download the 3rd party packages from their respective websites, unpack them, and install the jars manually. Here are the commands I had to run to get AppFuse 1.9.4 to build:

mvn install:install-file -DgroupId=struts-menu -DartifactId=struts-menu -Dversion=2.4.2 -Dpackaging=jar -Dfile=D:/dev/struts-menu-2.4.2/struts-menu-2.4.2.jar

mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-annotations -Dversion=3.2.0.ga -Dpackaging=jar -Dfile=D:/dev/hibernate-annotations-3.2.0.GA/hibernate-annotations.jar

mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate -Dversion=3.2.0.ga -Dpackaging=jar -Dfile=D:/dev/hibernate-3.2/hibernate3.jar

Comments:

I think you mean AppFuse 2.0 vs. AppFuse 1.9.4. The 1.9.4 release is still based on Ant. Version 2.0 is based on Maven 2, but you shouldn't have to install anything locally. One of the things we hope to do with AppFuse 2.0 is to eliminate any Maven download issues. All of the artifacts should be available in remote repositories. I have seen issues where "mvn" doesn't download everything, but the recent move to Contegix seems to have solved most of those issues. If you didn't resolve the above dependencies, I'd recommend running "mvn" again.

Hope this helps,

Matt

Posted by Matt Raible on November 05, 2006 at 08:09 PM PST #

Hi Matt, you're right, I'm using the 2.0 version directly from SVN at http://www.appfuse.org/ ... not the 1.9.4 version. Sorry, my mistake. I've got too many versions of too many projects in my dev directory. Thanks for the correction!

Posted by Jason on November 05, 2006 at 08:45 PM PST #

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers