Return-Path: Delivered-To: apmail-incubator-empire-db-dev-archive@minotaur.apache.org Received: (qmail 94696 invoked from network); 13 Feb 2009 23:29:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2009 23:29:39 -0000 Received: (qmail 34131 invoked by uid 500); 13 Feb 2009 23:29:39 -0000 Delivered-To: apmail-incubator-empire-db-dev-archive@incubator.apache.org Received: (qmail 34113 invoked by uid 500); 13 Feb 2009 23:29:39 -0000 Mailing-List: contact empire-db-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@incubator.apache.org Delivered-To: mailing list empire-db-dev@incubator.apache.org Received: (qmail 34102 invoked by uid 99); 13 Feb 2009 23:29:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 15:29:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of francisdb@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 23:29:29 +0000 Received: by fg-out-1718.google.com with SMTP id d23so4756fga.26 for ; Fri, 13 Feb 2009 15:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=vwL8Za8rsrUOQhmVxl3u6ob0LiWGV6f3L/u9V3kIhqc=; b=dq0hnicnEf5XE6eMPX7iUnK/zutny4E7sU+uzP+7ev+2zQuUzWqcGYREb7QGCpzgRC +RfICXswHdPYFnupb9a4DJwez4e94Zb70NW9J6jGYBOB/Jo77XbGY6ZpoMJNSM0MFmcT HeiTe+yIuGmR4ecl5L1cCl1CuHkKbXB/l8d8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hCEGPiBiIxYu3jlhmqYZSEtkNK6c2e4oj16dMxtEQLJWAlRwc4dVHoWEhiFpel7yAi c30eqw/DNvgcYS9KtlZeNDEC/a9wV7KF3TxoEyE65WgXZ9To8zhDldn8LqmgJD6REuox 4oS++o6jAd962oaSAPXqcXyfmfXl5LdVe95Qc= MIME-Version: 1.0 Received: by 10.86.99.9 with SMTP id w9mr8180fgb.68.1234567748907; Fri, 13 Feb 2009 15:29:08 -0800 (PST) In-Reply-To: References: <3ab983230812260846u4bc6411escfc3e28af9d3bc1@mail.gmail.com> <3ab983230902100101n6ac5f360x90d73ea09de1632c@mail.gmail.com> <3ab983230902121409t3f43f8d6wbaeece00a1980964@mail.gmail.com> <3ab983230902130729k687b8ea3g16dbec495eb09c56@mail.gmail.com> Date: Sat, 14 Feb 2009 00:29:08 +0100 Message-ID: <3ab983230902131529m735d07dp520fcb0ca0b9d5c9@mail.gmail.com> Subject: Re: using Maven From: Francis De Brabandere To: empire-db-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Rainer, Are you sure you started with a clean checkout and without using the eclipse q4e plugin? svn checkout https://svn.apache.org/repos/asf/incubator/empire-db/branches/= maven empire-maven-branch ### standard eclipse way ### cd empire-maven-branch mvn eclipse:eclipse -DdownloadSources=3Dtrue .... [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO] --------------------------------------------------------------------= ---- [INFO] Empire-db Parent ...................................... SUCCESS [2.2= 43s] [INFO] Empire-db ............................................. SUCCESS [0.5= 33s] [INFO] Empire-db Examples .................................... SUCCESS [0.0= 06s] [INFO] Empire-db Example ..................................... SUCCESS [5.8= 21s] [INFO] Empire-db Advanced Example ............................ SUCCESS [0.0= 89s] [INFO] Empire-db Struts2 Extension ........................... SUCCESS [0.7= 67s] [INFO] Empire-db Struts2 Example ............................. SUCCESS [0.3= 54s] [INFO] --------------------------------------------------------------------= ---- [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD SUCCESSFUL [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 13 seconds [INFO] Finished at: Fri Feb 13 23:46:57 CET 2009 [INFO] Final Memory: 8M/279M [INFO] --------------------------------------------------------------------= ---- file - import - existing projects into workspace select the folder where you checked out the maven branch and click finish all projects should be imported and ready for use now. (see screenshot) http://www.somatik.be/files/Screenshot-Import%20.png ### m2eclipse way ### file - import - maven projects select the folder where you checked out the maven branch and click finish all projects should be imported and ready for use now (see console view and enable maven console) this way you will have eclipse projects for the parent projects as well (empire-db-parent and empire-db-examples) About your questions: - there seems to be a problem that after you have used the m2eclipse plugin and you try eclipse:eclipse + standard import that only the parent project is coming up. Delete .project, .classpath and .settings in the root folder and the empire-db-examples folder to fix this. that is because the eclipse:eclipse plugin does not set up projects for grouping projects and m2eclipse does. *So the simple solution is choose with or without the m2eclipse plugin and stick to your choice*. - what is the problem with checking out the whole branch? I structured the project as one parent project with 3 modules and the examples module has its own submodules, I could decouple the samples module if that is bothering you but it's nice to have everything at once and eclipse setting up the inter project dependencies. (with m2eclipse you can choose to only import one module (with its dependent modules)) - yes it's best to ignore .project, .classpath, .settings and target/ we might want to add this info to a wiki somewhere On Fri, Feb 13, 2009 at 9:06 PM, Rainer D=F6bele wrote: > Hi Francis, > > thanks for your tips. > > The procedure you described has several disadvantages for me. At the mome= nt it seem as if I could only checkout the whole maven branch - otherwise i= t won't build. But instead of having the individual projects I have the who= le maven directory treated as one project in the Package explorer (which of= course it isn't). Following your advice I used "import existing projects i= nto workspace" for empire-db and empire-db-example. Then of course I have t= he sources appear twice, first under their project node and second under th= e maven node - which is not really a problem but not nice either. > I tried to run the SampleApp but it could not find the configuration file= . > Also when synchronizing with svn it shows me a number of files it wants t= o add to the repository - like , the classpath file, the project file and e= verything under target. These files and folders should probably be added to= svn ignore. > > What I dislike most, is that I have to check out the root into my workspa= ce and then use "import existing projects into workspace". Isn't there a mo= re convenient way to do it? > > I am currently working on a project for a customer for which I have to us= e Maven. > I can check out the project into the workspace, call mvn eclipse:eclipse,= use refresh and then run the project. > This is a very convenient way, and I would like to have something similar= for Empire-db. But this project has no eclipse project dependencies. > > I really don't mind calling one or two maven command from the command lin= e, but I don't like to move files around (as with import project into works= pace etc.). > For J=F6rg it seems to work, but without the appropriate command in the S= VN repository view (which I still could not manage to have it appear) it's = very inconvenient to use. > I would be happy if I could check out the individual projects directly an= d run the maven eclipse:eclipse command. > > I am sorry for being so late with my criticism - I really should have eva= luated it earlier. > > Rainer > >> -----Urspr=FCngliche Nachricht----- >> Von: Francis De Brabandere [mailto:francisdb@gmail.com] >> Gesendet: Freitag, 13. Februar 2009 16:30 >> An: empire-db-dev@incubator.apache.org >> Betreff: Re: using Maven >> >> Hi Rainer, >> >> the simplest way to get going is not installing an eclipse plugin but >> running the commands as explained in one of my my previous mails. >> >> mvn eclipse:eclipse -DdownloadSources=3Dtrue >> (for cleaning up first: mvn clean eclipse:clean eclipse:eclipse >> -DdownloadSources=3Dtrue) >> >> after that in eclipse: >> file - import - existing projects into workspace >> >> select the folder where you checked out the maven branch and click >> finish >> all projects hould be imported and ready for use now. >> >> the alternative is using m2eclipse plugin or q4e plugin >> I only tested the m2eclipse plugin and if you use that one you can >> skip the eclipse:eclipse command and select import existing maven >> project in the import menu >> >> and don't install both eclipse maven plugins as that is looking for >> trouble. >> >> I hope this helps >> >> On Fri, Feb 13, 2009 at 4:13 PM, Rainer D=F6bele >> wrote: >> > Hi Franics, >> > >> > Being a Maven newbe I wonder whether you could give me some advice on >> how to use it. >> > >> > I have both Maven and the Maven Eclipse Plugin installed but unlike >> J=F6rg I don't have the Option to "Check out as Maven project" within th= e >> SVN Repository View (for some reason). >> > >> > Now if I check out the entire maven branch into my workspace and call >> "mvn eclipse:eclipse" it reports "build successful". >> > >> > However in the Package Explorer I only have the maven node with its >> subnodes but none of them is marked as a project. Thus I cannot compile >> or run anything. I also have a bin and a target folder but there's not >> much in there. >> > >> > If I only check out an example project (e.g. the empire-db-example) >> and call mvn eclipse:eclipse I get the following error: >> > org.apache.maven.reactor.MavenExecutionException: Cannot find parent: >> org.apache >> > .empire-db:empire-db-examples for project: org.apache.empire- >> db:empire-db-exampl >> > e:jar:2.0.5-SNAPSHOT for project org.apache.empire-db:empire-db- >> example:jar:2.0. >> > 5-SNAPSHOT >> > >> > So what is the recommended way for checking the files out and running >> the examples? >> > >> > Rainer >> > >> >> -----Urspr=FCngliche Nachricht----- >> >> Von: Francis De Brabandere [mailto:francisdb@gmail.com] >> >> Gesendet: Donnerstag, 12. Februar 2009 23:09 >> >> An: empire-db-dev@incubator.apache.org >> >> Betreff: Re: mavenized project >> >> >> >> well depends on what the release dist should look like, it won't be >> >> the same as before >> >> >> >> On Tue, Feb 10, 2009 at 9:43 PM, Rainer D=F6bele >> wrote: >> >> > Sounds good. >> >> > Thanks for your evalation J=F6rg. >> >> > And even more for your work Francis. >> >> > >> >> > So before we merge the maven branch with the trunk is there >> anything >> >> else to consider? >> >> > If not I would call for a vote to merge the branches. >> >> > >> >> > Regards >> >> > Rainer >> >> > >> >> > >> >> > J=F6rg Reiher wrote: >> >> >> re: mavenized project >> >> >> >> >> >> Hi, >> >> >> I used m2e (just found out it wasn't even the latest release but >> 0.96 >> >> (September 2008)) >> >> >> I haven't done a big evaluation of the available tools when I >> installed >> >> it, just wanted to > know if there is any working plugin, cause when >> I >> >> worked at a company where Maven was used > (about 1.5 years ago) it >> was a >> >> big pain to keep >> >> >> Eclipse project and Maven in synch... always switching between >> console >> >> and Eclipse, refreshing > the project; now it seems to be much much >> better >> >> - m2e did what I expected, so I didn't bother > trying other >> plugins. >> >> >> >> >> >> Greets >> >> >> jorg >> >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> http://www.somatik.be >> >> Microsoft gives you windows, Linux gives you the whole house. >> > >> >> >> >> -- >> http://www.somatik.be >> Microsoft gives you windows, Linux gives you the whole house. > --=20 http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.