RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Todd Thiessen
He wants to have different settings per project though.

---
Todd Thiessen
 

> -Original Message-
> From: Nord, James [mailto:jn...@nds.com] 
> Sent: Wednesday, March 04, 2009 11:35 AM
> To: Maven Users List
> Subject: RE: [maven-eclipse-plugin] Define compiler options in POM
> 
> Can you not change the eclipse worksapce settings instead of 
> the per project ones.
> Then when the settings get clobbered you will still be using 
> the defaults - but the defaults are what you wanted.
> 
> /James
> 
> 
> 
> > -Original Message-
> > From: Daniele Dellafiore [mailto:ilde...@gmail.com]
> > Sent: 04 March 2009 14:19
> > 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  
> > wrote:
> > > maven-compiler-plugin
> > >
> > >      
> > >        maven-compiler-plugin
> > >        
> > >          1.5
> > >          1.5
> > >        
> > >      
> > >
> > > ---
> > > Todd Thiessen
> > >
> > >
> > >> -Original Message-
> > >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
> > >> 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: users-unsubscr...@maven.apache.org
> > >> For additional commands, e-mail: users-h...@maven.apache.org
> > >>
> > >>
> > >
> > > 
> > 
> -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> > 
> > 
> > 
> > --
> > Daniele Dellafiore
> > http://blog.ildella.net/
> > 
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> > 
> > 
> 
> **
> 
> This e-mail is confidential, the property of NDS Ltd and 
> intended for the addressee only. Any dissemination, copying 
> or distribution of this message or any attachments by anyone 
> other than the intended recipient is strictly prohibited. If 
> you have received this message in error, please immediately 
> notify the postmas...@nds.com and destroy the original 
> message. Messages sent to and from NDS may be monitored. NDS 
> cannot guarantee any message delivery method is secure or 
> error-free. Information could be intercepted, corrupted, 
> lost, destroyed, arrive late or incomplete, or contain 
> viruses. We do not accept responsibility for any errors or 
> omissions in this message and/or attachment that arise as a 
> result of transmission. You should carry out your own virus 
> checks before opening any attachment. Any views or opinions 
> presented are solely those of the author and do not 
> necessarily represent those of NDS.
> 
> To protect the environment please do not print this e-mail 
> unless necessary.
> 
> NDS Limited Registered Office: One London Road, Staines, 
> Middlesex, TW18 4EX, United Kingdom. A company registered in 
> England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
> **
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Nord, James
Can you not change the eclipse worksapce settings instead of the per project 
ones.
Then when the settings get clobbered you will still be using the defaults - but 
the defaults are what you wanted.

/James



> -Original Message-
> From: Daniele Dellafiore [mailto:ilde...@gmail.com] 
> Sent: 04 March 2009 14:19
> 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 
>  wrote:
> > maven-compiler-plugin
> >
> >      
> >        maven-compiler-plugin
> >        
> >          1.5
> >          1.5
> >        
> >      
> >
> > ---
> > Todd Thiessen
> >
> >
> >> -Original Message-
> >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
> >> 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: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
> 
> 
> --
> Daniele Dellafiore
> http://blog.ildella.net/
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

**
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only. Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited. If you have received this message in error, please immediately 
notify the postmas...@nds.com and destroy the original message. Messages sent 
to and from NDS may be monitored. NDS cannot guarantee any message delivery 
method is secure or error-free. Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission. You should carry out your 
own virus checks before opening any attachment. Any views or opinions presented 
are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales Registered no. 
3080780 VAT no. GB 603 8808 40-00
**

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Cummings,Steven
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:

 
org.apache.maven.plugins
maven-eclipse-plugin
2.5.1

   ...
   
  
 .settings/org.eclipse.core.resources.prefs
 


 
  
   

 

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:ilde...@gmail.com] 
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  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:ilde...@gmail.com]
>> 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
>>  wrote:
>> > maven-compiler-plugin
>> >
>> >      
>> >        maven-compiler-plugin
>> >        
>> >          1.5
>> >          1.5
>> >        
>> >      
>> >
>> > ---
>> > Todd Thiessen
>> >
>> >
>> >> -Original Message-
>> >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
>> >> 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: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>> >
>> -
>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> > For additional commands, e-mail: users-h...@maven.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net/
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--
CONFIDENTIAL

Re: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Daniele Dellafiore
On Wed, Mar 4, 2009 at 3:24 PM, Todd Thiessen  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:ilde...@gmail.com]
>> 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
>>  wrote:
>> > maven-compiler-plugin
>> >
>> >      
>> >        maven-compiler-plugin
>> >        
>> >          1.5
>> >          1.5
>> >        
>> >      
>> >
>> > ---
>> > Todd Thiessen
>> >
>> >
>> >> -Original Message-
>> >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
>> >> 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: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>> >
>> -
>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> > For additional commands, e-mail: users-h...@maven.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net/
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Todd Thiessen
BTW. You could also try the m2e plugin for eclipse. I don't think m2e 
completely clobbers the .settings folder, thus erasing many of your project 
settings.

---
Todd Thiessen
 

> -Original Message-
> From: Daniele Dellafiore [mailto:ilde...@gmail.com] 
> 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 
>  wrote:
> > maven-compiler-plugin
> >
> >      
> >        maven-compiler-plugin
> >        
> >          1.5
> >          1.5
> >        
> >      
> >
> > ---
> > Todd Thiessen
> >
> >
> >> -Original Message-
> >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
> >> 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: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
> 
> 
> --
> Daniele Dellafiore
> http://blog.ildella.net/
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Todd Thiessen
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 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.

---
Todd Thiessen
 

> -Original Message-
> From: Daniele Dellafiore [mailto:ilde...@gmail.com] 
> 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 
>  wrote:
> > maven-compiler-plugin
> >
> >      
> >        maven-compiler-plugin
> >        
> >          1.5
> >          1.5
> >        
> >      
> >
> > ---
> > Todd Thiessen
> >
> >
> >> -Original Message-
> >> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
> >> 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: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
> 
> 
> --
> Daniele Dellafiore
> http://blog.ildella.net/
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Daniele Dellafiore
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.deprecationInDeprecatedCode=disabled

and so on...

On Wed, Mar 4, 2009 at 3:13 PM, Todd Thiessen  wrote:
> maven-compiler-plugin
>
>      
>        maven-compiler-plugin
>        
>          1.5
>          1.5
>        
>      
>
> ---
> Todd Thiessen
>
>
>> -Original Message-
>> From: Daniele Dellafiore [mailto:ilde...@gmail.com]
>> 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: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Todd Thiessen
maven-compiler-plugin

  
maven-compiler-plugin

  1.5
  1.5

  

---
Todd Thiessen
 

> -Original Message-
> From: Daniele Dellafiore [mailto:ilde...@gmail.com] 
> 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org