Community
Participate
Working Groups
I use Helios / Maven 3.0.1 / m2eclipse 0.12.1.20110112-1712). I want to put my target/classes in a ramdisk (VFreeSuite) (for build performance reasons). I create a ramdisk partition (say B:). On the Eclipse side, I can create, under project (say C:\MyProject, a target folder as a virtual folder (new folder / Advanced / 2nd choice), and classes as a linked resource to a folder in the ramdisk partition (new folder / Advanced / 3rd choice). File .project contains a new section : <linkedResources> <link> <name>target</name> <type>2</type> <locationURI>virtual:/virtual</locationURI> </link> <link> <name>target/classes</name> <type>2</type> <location>B:/classes-ptvf</location> </link> </linkedResources> File .classpath is not impacted. Eclipse compiler will create classes in the ramdisk partition (B:/classes-ptvf). It will not create any physical folder C:\MyProject\target. But m2eclipse (I believe m2eclipse should do the job rather than maven and pass it to maven, like reading .project and setting the build.outputDirectory) will not use the target virtual folder and maven will create the C:\MyProject\target\classes folder and create classes underneath. Could there be some magic for this request (I assume this is not a current feature and so not a bug) ? Thanks in advance.
This can already be achieved by implementing custom m2e extension. There are no plans to add this functionality in m2e-core directly. If you are interested in developing such an extension, please direct further questions to m2e-dev mailing list.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/