Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] eclipse-settings-maven-plugin future ?
  • From: Simon Bernard <sbernard@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 15 Jan 2020 14:41:59 +0000
  • Accept-language: fr-FR, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sierrawireless.com; dmarc=pass action=none header.from=sierrawireless.com; dkim=pass header.d=sierrawireless.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-SenderADCheck; bh=JSDqFpE9WWqi3Nd46xugCEUqb0xd5sCkYkYfxnHlgY0=; b=D/XRGMkl3+GmiQze2li8C1FzVTbUn+dKBLK7/5PqHIe2/t10t5I4bGwN0WAqnlyaOdPC8uF2UlpC3HKpFQ9IFOhiiKI4JpT+H4cA8KSluoMq5gIvea60ASrgV4/ImaAep/qWqLrBCrJf1xztiWRU6oJyo+DAhF/JC4EHU9p3ECe1Na7+11C7rOqjCZPOM+auRlskJXrssRnDRMd7fM6rFQXFEFhHP5O4o8go7feg5/Jhyx/zeV3L4CAW4ePW0WseVdg16HvjMYFYw53uD16+4KWaX0WgATy9MT1rvvSbFntHaqioFmPL+HfqbtKpfkdOvq6IDvcUd9Tux1ozU6rBtA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q/rNTF3cOO+JPEolXAN4d9LiQB+dWuhwU/iXty45cbQwX9AOlwAAJwrQC/664i2k/Er8TF84moROi9G8o3B0QoyLnM36L7SfFzPuLbFJKhmmGLLvyMIui7jUVDBu9AxCRIAhLyL44Fa2Bsj/QanTc34/AtDqb+ksgGwkb7oi7nxxnGn4FxlkQXJXmeXRPFvLIiiigZu1/hHWKgbeNOAbqvc45Lw2WGn2CM2tI6kvummTVEk/ioWuv3m+E2uRDuufV2evxMF01qdRBmP2H5ZZBSGADp3a+LrcZFZe8uc+q6xtlzFNqPq+DCzJDUBRz0IsFG248S8B1Iik0wnGOQAFuA==
  • Delivered-to: m2e-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/m2e-dev>
  • List-help: <mailto:m2e-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/m2e-dev>, <mailto:m2e-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/m2e-dev>, <mailto:m2e-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVx9tIoo0BFBfEoE2b4rqehhTJb6fnnCAAgAQ4BwA=
  • Thread-topic: [m2e-dev] eclipse-settings-maven-plugin future ?
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0

Thx Mickael.

As I didn't find any good dedicated solution and I don't want to duplicate settings files in each modules.

I follow you advice and use maven-resources-plugin, this looks like this :
<plugin>
    <artifactId>maven-resources-plugin</artifactId>
    <version>3.1.0</version>
    <executions>
        <execution>
           <id>configure-eclipse</id>
           <goals>
               <goal>copy-resources</goal>
           </goals>
           <configuration>
                <outputDirectory>${basedir}/.settings</outputDirectory>
                <overwrite>true</overwrite>
                <resources>
                    <resource>
                         <directory>${basedir}/../eclipse/settings</directory>
                    </resource>
                </resources>
           </configuration>
        </execution>
    </executions>
</plugin>
And to apply those settings  : mvn resources:copy-resources@configure-eclipse

(see https://github.com/eclipse/leshan/pull/786 for more details)

Simon

Le 12/01/2020 à 23:16, Mickael Istria a écrit :
Hi,

Pragmatically, it's simpler to just duplicate the settings files in each module. If you don't want to do that, then you could probably replace usage of this plugin by a simpler maven-resource-plugin:copy that would copy the files/folders; no need for some Eclipse-specific hacks to do that.

HTH

_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://can01.safelinks.protection.outlook.com/?url="">



Back to the top