Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mat-dev] Importing MAT Source
  • From: KEVIN GRIGORENKO <kevin.grigorenko@xxxxxxxxxx>
  • Date: Wed, 29 Jan 2025 18:29:34 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=us.ibm.com; dmarc=pass action=none header.from=us.ibm.com; dkim=pass header.d=us.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8bnkEyWPjmwVSg4151ji2HhCUzGmta/lPM1MQhjjpDc=; b=GPR1P/0oXZeyEPnIUodBzHpqexHSXEKTJxxcgHogl7qVjSbMncfbxqeqI+mOEuXZCroYwLmU9AQYGb+RLqLjlKUsU/qiVWCZliC8XYyXXAQscaDXuB0w1p6qEFvNQHf0CtOYTSazDAVfPIu4txGdEVLiuSdaOYUucGTx0Ad0GdlNTtKdJqWVjzXAoV6aEcv7X4vXebD5Z89gvzgKJmRK16NoiF7Rvdn9Q6D8lkdjYc6gL8vCIWMpT5SU7ddJDGAPLt/hWBfmxTLgi8aiKFpVYa9z2BaBxN3fc7rcQ86i9dQrdmj85zBbDk37ERkvZUA7a+e5tnapfJThpfa8VLzTVA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mTRbFuDHDBMBIIwzRHZMEHZPUbjTss10wQWhh6mIrGdQyL4mxHgCWql16bKaNtmDR/PzTjoc59aatkWC2Ejb3dRG128IGq/QyMyKhaaZUOk6q0PpnIbsUd3N4Qn0ZER3jWlkU+b1ofbYgA0ufYiMZ/6SnflK/dwiIJO2hVlYaxpUx9rtH6RjcsJ44qUinYf4FTARyhfEdCCG27VBTmxRBB6ck2Ld51HL8oWFroPuXIotYJ4F13wxiAYIzJFrptK1wtIKdxp4I0J4D/hJOdMTGSlmIR9T4lQNVMj0Awn8uwMroUom8RQy5gRMCxSseB/S8pwIkdzs6EPaBao3R58poA==
  • Delivered-to: mat-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mat-dev/>
  • List-help: <mailto:mat-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mat-dev>, <mailto:mat-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mat-dev>, <mailto:mat-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHbcnuAGvu0mdhaxUac+DpqDK8q7A==
  • Thread-topic: Importing MAT Source

There are two ways to import MAT source into Eclipse:

 

1. Import } General } Existing Projects into Workspace

2. Import } Maven } Existing Maven Projects

 

The former works because we check in Eclipse .project, .classpath, and .settings files/directories into the source tree.

 

Using either method with a fresh Eclipse 2024-12 for Eclipse Committers IDE causes hundreds of exceptions of the form:

 

Access restriction: The [...] is not API (restriction on required library '[...]/org.hamcrest_3.0.0.jar')

 

This can be resolved by going into workspace or project preferences and changing "Forbidden reference (access rules)" to "Warning" under Java Compiler } Errors/Warnings

 

From my understanding, it's generally no longer recommended to check in Eclipse .project/.classpath/.settings files/folders into the source tree and instead to import using Existing Maven Projects and let the M2Eclipse plugin handle the Eclipse projects/settings; however, I can't find any way to tell M2Eclipse in pom.xml files to automatically set "Forbidden reference" to "Warning".

 

So it seems to me there are two options:

 

A. Change the "Forbidden reference" setting in the checked-in Eclipse settings and discourage using Import } Existing Maven Projects in the Contributor Reference, or

B. Remove all checked-in Eclipse settings from the source tree, discourage using Import } Existing Projects into Workspace in the Contributor Reference, and add a step in the Contributor Reference to change the "Forbidden reference" setting.

 

Any preferences? I lean towards A out of inertia.

 

-- 

Kevin Grigorenko

Application Runtimes SWAT, IBM Software Support

 


Back to the top