From dev-return-33230-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Apr 22 08:01:12 2010 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 80775 invoked from network); 22 Apr 2010 08:01:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 08:01:12 -0000 Received: (qmail 52083 invoked by uid 500); 22 Apr 2010 08:01:12 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 52041 invoked by uid 500); 22 Apr 2010 08:01:12 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 52025 invoked by uid 99); 22 Apr 2010 08:01:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 08:01:11 +0000 X-ASF-Spam-Status: No, hits=-1329.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 08:01:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3M80oRe012349 for ; Thu, 22 Apr 2010 08:00:50 GMT Message-ID: <20306798.133671271923250075.JavaMail.jira@thor> Date: Thu, 22 Apr 2010 04:00:50 -0400 (EDT) From: "Pierre-Arnaud Marcelot (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSTUDIO-643) Missing modules when importing into Eclipse as existing project In-Reply-To: <1240601539.519861269639507191.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSTUDIO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre-Arnaud Marcelot closed DIRSTUDIO-643. -------------------------------------------- Version 1.5.3 has been release. Let's close this issue. > Missing modules when importing into Eclipse as existing project > --------------------------------------------------------------- > > Key: DIRSTUDIO-643 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-643 > Project: Directory Studio > Issue Type: Bug > Environment: All > Reporter: Felix Knecht > Assignee: Felix Knecht > Fix For: 1.5.3 > > > Since using parent pom version 17 we also use maven-eclipse-plugin version 2.8. The last working maven-eclipse-version is 2.6 (can be forced when adding the version in the specific poms). > Trying to generate the needed .project/.classpath files using running "mvn install studio:eclipse" I get exceptions like (see at the bottom). This prevents from generating the .project and the .classpath files and thus when importing into Eclipse as existing projects all modules this error happened are not imported and missing. You can test it changing to the rcp module and just run "mvn studio:eclipse" and see the error - make sure to have mvn studio:clean run before or to have removed the .project/.classpath files. > For the rcp module I could reduce the problem to the following part of the code (pom.xml) > > > > . > > plugin.properties > plugin.xml > > true > > > > [INFO] ------------------------------------------------------------------------ > [INFO] Building Apache Directory Studio RCP > [INFO] task-segment: [eclipse:eclipse] > [INFO] ------------------------------------------------------------------------ > [INFO] Preparing eclipse:eclipse > [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [remote-resources:process {execution: default}] > [INFO] [eclipse:eclipse {execution: default-cli}] > [INFO] Using Eclipse Workspace: null > [INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory . > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Request to merge when 'filtering' is not identical. Original=resource .: output=target/classes, include=[plugin.properties|plugin.xml], exclude=[**/*.java], test=false, filtering=true, merging with=resource .: output=target/classes, include=[about.ini|studio.png], exclude=[**/*.java], test=false, filtering=false > [INFO] ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2 seconds > [INFO] Finished at: Fri Mar 26 22:17:33 CET 2010 > [INFO] Final Memory: 238M/1024M > [INFO] ------------------------------------------------------------------------ > [INFO] Copying /home/felix/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar to /home/felix/svn/apache/directory/studio/trunk/rcp/lib/log4j-1.2.14.jar > [INFO] Copying /home/felix/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar to /home/felix/svn/apache/directory/studio/trunk/rcp/lib/slf4j-api-1.5.6.jar > [INFO] Copying /home/felix/.m2/repository/org/slf4j/slf4j-log4j12/1.5.6/slf4j-log4j12-1.5.6.jar to /home/felix/svn/apache/directory/studio/trunk/rcp/lib/slf4j-log4j12-1.5.6.jar > [INFO] Update .classpath in /home/felix/svn/apache/directory/studio/trunk/rcp > [ERROR] Please run eclipse:eclipse first to create .classpath, e.g. mvn eclipse:eclipse studio:eclipse. > java.io.FileNotFoundException: /home/felix/svn/apache/directory/studio/trunk/rcp/.classpath (No such file or directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(FileInputStream.java:106) > at org.apache.directory.studio.maven.plugins.StudioEclipseMojo.updateDotClasspath(StudioEclipseMojo.java:191) > at org.apache.directory.studio.maven.plugins.StudioEclipseMojo.execute(StudioEclipseMojo.java:120) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.