You can actually configure maven-eclipse-plugin [1] to generate specific files
into the .settings folder on eclipse:eclipse. I think you have to be able to
specify the entire contents of the file being written, but here is an example:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.5.1</version>
<configuration>
...
<additionalConfig>
<file>
<name>.settings/org.eclipse.core.resources.prefs</name>
<content>
<![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=UTF-8${line.separator}]]>
</content>
</file>
</additionalConfig>
</configuration>
</plugin>
See the mojo ref for more specifics.
[1] http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
-----Original Message-----
From: Daniele Dellafiore [mailto:[email protected]]
Sent: Wednesday, March 04, 2009 8:31 AM
To: Maven Users List
Subject: Re: [maven-eclipse-plugin] Define compiler options in POM
On Wed, Mar 4, 2009 at 3:24 PM, Todd Thiessen <[email protected]> wrote:
> I don't know if the plugin can do that. Have you tried passing in specific
> compiler arguments in the configuration of the plugin?
I have no idea on how to do this...
> I use workspace settings to do what you are asking but I am curious if the
> compiler plugin could do this at the project level too.
yep, but to avoid reconfigure every machine on every new change, the
best solution is to share in svn b y sharing eclipse .settings
folders.
Unfortunately, there is no options to avoid m-e-p to ignore the settings...
>
> ---
> Todd Thiessen
>
>
>> -----Original Message-----
>> From: Daniele Dellafiore [mailto:[email protected]]
>> Sent: Wednesday, March 04, 2009 9:19 AM
>> To: Maven Users List
>> Subject: Re: [maven-eclipse-plugin] Define compiler options in POM
>>
>> That is easy, I am talking about all the others:
>>
>> org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
>> org.eclipse.jdt.core.compiler.problem.autoboxing=warning
>> org.eclipse.jdt.core.compiler.problem.deprecation=warning
>> org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedC
>> ode=disabled
>>
>> and so on...
>>
>> On Wed, Mar 4, 2009 at 3:13 PM, Todd Thiessen
>> <[email protected]> wrote:
>> > maven-compiler-plugin
>> >
>> > <plugin>
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <configuration>
>> > <source>1.5</source>
>> > <target>1.5</target>
>> > </configuration>
>> > </plugin>
>> >
>> > ---
>> > Todd Thiessen
>> >
>> >
>> >> -----Original Message-----
>> >> From: Daniele Dellafiore [mailto:[email protected]]
>> >> Sent: Wednesday, March 04, 2009 9:10 AM
>> >> To: Maven Users List
>> >> Subject: [maven-eclipse-plugin] Define compiler options in POM
>> >>
>> >> Hi all.
>> >>
>> >> Hi have this issue: every time I run mvn eclipse:eclipse the
>> >> .settings folder of the project is cleaned and I lose my project
>> >> specific compiler settings. I would like to keep them or
>> at least be
>> >> able to define them in the POM.
>> >>
>> >> What solution do you suggest? I have not found any on the web...
>> >>
>> >> --
>> >> Daniele Dellafiore
>> >> http://blog.ildella.net/
>> >>
>> >>
>> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >>
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
>>
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Daniele Dellafiore
http://blog.ildella.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from
Cerner Corporation and are intended only for the addressee. The information
contained in this message is confidential and may constitute inside or
non-public information under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the
addressee, please promptly delete this message and notify the sender of the
delivery error by e-mail or you may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]