Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340529 - Wish to use jdt virtual folder / linked resource
Summary: Wish to use jdt virtual folder / linked resource
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 18:07 EDT by Marc Mazas CLA
Modified: 2021-04-19 13:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/