I figured out my problem. If you create the eclipse workspace one step up from the sling base directory, then eclipse seems to honor the project name in the .project file. For instance, if you normally have a directory structure like this:
C:\dev\sling\trunk\[base directory] And tell eclipse to create the workspace at C:\dev\sling, then it works fine. I usually make my directory names the same as the maven artifactId (which is what I think the maven-eclipse-plugin uses as the eclipse project name), so I've never run into this before. Anyway, on my way! Cheers, Craig > -----Original Message----- > From: Craig L. Ching [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 30, 2008 4:09 PM > To: [email protected] > Subject: RE: Anyone building with eclipse? > > > On Wed, Apr 30, 2008 at 9:35 PM, Craig L. Ching > <[EMAIL PROTECTED]> > > wrote: > > > ... Trying to get "mvn eclipse:eclipse" to work on the sling project > and > > > it's not. Is anyone using eclipse to build?... > > > > Yes, it works for me, I do "mvn eclipse:eclipse" then in Eclipse do > > "import existing projects", select the Sling directory and I get all > > projects into Eclipse. > > > That is *exactly* what I'm doing, but I get a project named 'api', but > everything else depends on a project named 'org.apache.sling.api'. > Doing a refactor -> rename to 'org.apache.sling.api' fixes it, but that > also renames the 'api' directory on disk. For you, is the project name > 'api' or 'org.apache.sling.api'? What version of eclipse are you using? > > > Recently, for some reason when I do this I'm getting > > "maven-eclipse.xml" files in each project directory, and a > > maven_ant_builder added to each project, haven't found where that > > comes from yet. > > > > Yeah, I'd never seen those before either. I haven't looked at the > maven-eclipse-plugin version that you guys are using yet, but possibly > it's some new feature ;-) I do know that the latest version is supposed > to include some round-trip project management from eclipse -> maven > which sounded really convenient. > > > -Bertrand > > Cheers, > Craig
