One extra thing: In order to keep the hierarchical project structure when doing a Maven synchronize from IDEA you have to go to Maven view (plugin) press the Maven settings button, go to "Import" tab and select the option "Create module groups for multi-module Maven projects", press OK and only afterwards do the synchronization. You will have to do that only once.
Alin On Mon, May 5, 2008 at 1:07 AM, Alin Dreghiciu <[EMAIL PROTECTED]> wrote: > Being in Germany, such an organized country, it "inspired" me to start > put order in Qi4j structure so I spent my weekend on doing so: > > 1. obsolete projects removed > 2. renamed maven artifacts to have a consistent name (start with qi4j, > use ext/lib,...). So, don't be surprised if you had dependencies on > qi4j artifacts that will not be found anymore :) They are still thare > but with a small change in name. > 3. renamed persistence-* artifacts/module directories to entitystore-* > 4. droped all IDEA files (ipr/iml) and recreated the project from > scratch based on maven pom files. When you will update and repoped the > project in idea you will see quite a different structure and project > names but I'm pretty sure that you will find very easily your way to > the module you are looking for. By removing the project it may be that > some of the settings were lost as I kept only the coding style from > the old project settings. Hope that we did not lost too much :). > Mainly I did this in order to be easy from now on to keep the maven > poms in sync with IDEA project. The basic rule is that maven poms will > rule meaning that when you need a new dependency you should first add > the dependency to maven pom and then use the "Synchronize with Maven > projects" button in "Maven projects". This will sync the project to > the dependency in the pom ensuring that you will compile/run/debug > against the same dependencies as you will get in the maven build. You > should do the same when soing any change related to a dependency such > as deleting, updating version,... > Another nice related feature is that the sources/java doc will be > already mounted so by doing mvn dependency:sources or using the > "Download artifacts" button in "Maven projects". > > have fun and let me know if something went terrible wrong. > > Cheers, > Alin > -- Alin Dreghiciu Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org - New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

