RE: [maven-eclipse-plugin] Define compiler options in POM
maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
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.deprecationInDeprecatedCode=disabled and so on... On Wed, Mar 4, 2009 at 3:13 PM, Todd Thiessen thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
On Wed, Mar 4, 2009 at 3:24 PM, Todd Thiessen thies...@nortel.com 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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
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 groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.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: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 thies...@nortel.com 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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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 -- 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
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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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
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 thies...@nortel.com wrote: maven-compiler-plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin --- 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