Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] How to do something like "os-maven-plugin" that works with m2e?
  • From: "KARR, DAVID" <dk068x@xxxxxxx>
  • Date: Mon, 11 Apr 2022 18:12:56 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=cwAyOU3lfiqiUavsZewEQbH2u07urmU5DnsmwchxjOY=; b=QT96KmN05KFB2A1QnZmV2yBMc1R16K9Eod+M7p14USjymC7OJFVRXToq+dwNkddQistBP0mCj1mXik+62m6tCCrqZtQfcu+vkHT34HOwNoTSLWd+j6yHT2oeifL/AXEPFJoylTC6WO+MKBmhZuKrlKfb/3iqtDBfhN0G1IvnROzndV0rFdzrDUnNaCPEC8fRm91sNsQJNbX0DvScAn1vNflMpvZphG7jof0X3UPSPkIbDBJIFF/6Cemiza4/6eA/0K3xC+0Fjz4DDwmOe8P5KO/ILQWnqQR8YAVUrAof6GYq90YkEL6y1v03Jm67FMadNUPXh248bA52h7lWh/GH0Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f3mSqZvPLdI5uxCj1pDsh6tAeAp62Eepm1PW0EXHKHtSi5X9opFF5QqnzdhPsEuNi6/wgu9ENz058m/MVR0Z3FS9zkjJKsJNY3w9Ey8d0s93pO87O3HWdVEjTcbWfPEUijqVaZb41mHJuN7F1cemd0MNllptddH6EU/Mkao4/VjD+gRvJof6msZTHyIauIXWpYdsO/hgJAL2LJfImOfCaHRzqcRgzoT1eZ9qN7G1HY9n+y8Zgdto7Ht78kWYW2eisQTZh+/1cIoWait8LLUYhrC4M/m936pdngBY9qRKNxrdH7Zr7fNATJnnJyRGhB5BaQbPL/0ksg9Yzv8HiTivBA==
  • Delivered-to: m2e-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/m2e-users/>
  • List-help: <mailto:m2e-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/m2e-users>, <mailto:m2e-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/m2e-users>, <mailto:m2e-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdhNzv/dzUT1OsPOS3KIq5wyWHX0qg==
  • Thread-topic: How to do something like "os-maven-plugin" that works with m2e?

I'm looking at a project with a dependency like this:
---------------------
		<dependency>
			<groupId>io.netty</groupId>
			<artifactId>netty-tcnative</artifactId>
			<version>2.0.20.Final</version>
			<classifier>${os.detected.classifier}</classifier>
			<scope>runtime</scope>
		</dependency>
----------------

That "os.detected.classifier" property is generated at build time with this:
---------------
			<extension>
				<groupId>kr.motd.maven</groupId>
				<artifactId>os-maven-plugin</artifactId>
				<version>1.5.0.Final</version>
			</extension>
---------------

This works fine from the command line.  In Eclipse, this fails with errors indicating that "${os.detected.classifier}" doesn't get populated with a value.

Is there a reasonable strategy for moving this forward?  Is there a different way of determining the platform classifier that is more compatible with m2e?


Back to the top