Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340529

Summary: Wish to use jdt virtual folder / linked resource
Product: z_Archived Reporter: Marc Mazas <marc.mazas>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Marc Mazas CLA 2011-03-20 18:07:23 EDT
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.
Comment 1 Igor Fedorenko CLA 2011-03-22 12:07:38 EDT
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.
Comment 2 Denis Roy CLA 2021-04-19 13:23:43 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/