[
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)
> <snip>
> <resources>
> <resource>
> <directory>.</directory>
> <includes>
> <include>plugin.properties</include>
> <include>plugin.xml</include>
> </includes>
> <filtering>true</filtering>
> </resource>
> <!-- IT WORKS WHEN COMMENTING THIS, OTHERWISE NOT
> <resource>
> <directory>.</directory>
> <includes>
> <include>about.ini</include>
> <include>studio.png</include>
> </includes>
> <filtering>false</filtering>
> </resource>
> -->
> </snip>
> [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.<init>(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.