Maybe this could help. If you make the modification through Eclipse
interface, and check how the files were modified in .settings, you could
probably set the plugin so it uses additionalConfig as below:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.7</version>
<configuration>
<additionalConfig>
<file>
<name>.settings/org.eclipse.core.resources.prefs</name>
<content>
<![CDATA[eclipse.preferences.version=1
encoding/<project>=ISO-8859-1]]>
</content>
</file>
</additionalConfig>
</configuration>
</plugin>
Patrick
On 10-03-17 04:13 PM, Ludwig Magnusson wrote:
> Perhaps the code formatter?
> It's possible to export/import a projects code formatting in eclipse to/from
> an xml file. But I don't know if maven can use it to configure the code
> formatting of a project.
> /Ludwig
>
> -----Original Message-----
> From: Sipungora [mailto:[email protected]]
> Sent: den 17 mars 2010 21:03
> To: [email protected]
> Subject: Re: auto code format eclipse .settings
>
>
> Hi Wayne,
>
> probably I don't correct understand your questions.:-( I read the
> documentation on the
> http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
> http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html site
> and there is the clause eclipse:eclipse "Generates the following eclipse
> configuration files: ... .setting/org.eclipse.jdt.core.prefs with project
> specific compiler settings..." there. But I didn't find how I can configure
> my pom to write e.g. formatting settings in this file in .setting directory.
>
>
>
>
> Wayne Fay wrote:
>
>>
>>> how can I change .settings files with Maven2? maven-eclipse-plugin allows
>>> to
>>> set the workspace, but I want to set auto code format settings. Is it
>>> possible with maven? :confused::confused::confused:
>>>
>> What in the maven-eclipse-plugin documentation makes you believe this
>> is functionality that m-e-p will provide/support? Or is it merely an
>> assumption on your part? What is confusing you?
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>>
>
--
Patrick Turcotte
Développeur/Architecte Java
------------------------------------
[email protected]
(819) 780-8955, poste 1129
Sans frais 1-800-996-8955, poste 1129
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]