RE: auto code format eclipse .settings
I don't really agree here. I think it's pretty much on a project level. I have different projects in my workspace that has different formatting requirements. And in my project, we have the exported xml-file version controlled. I defenetly think it would be great if the maven-eclipse-plugin could automatically set (if it can't already). Like it can with checkstyle. To me, that's what the maven-eclipse-plugin is about, configuring eclipse in every way needed for the project. Is that an incorrect assumption? /Ludwig -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: den 18 mars 2010 00:36 To: Maven Users List Subject: Re: auto code format eclipse .settings Code formatting tends to be a workspace level thing rather than a per project setting. So you are probably better off doing this manually, since its a once off task. As others have pointed out, if it is a per-project file (e.g. like a checkstyle configuration file) then you can use the configuration additionalConfig file section to specify the files contents. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
feel free to submit patches. I have seen this request to configure code-style per project before, but it kind a die out -D On Thu, Mar 18, 2010 at 12:29 AM, Ludwig Magnusson lud...@itcatapult.com wrote: I don't really agree here. I think it's pretty much on a project level. I have different projects in my workspace that has different formatting requirements. And in my project, we have the exported xml-file version controlled. I defenetly think it would be great if the maven-eclipse-plugin could automatically set (if it can't already). Like it can with checkstyle. To me, that's what the maven-eclipse-plugin is about, configuring eclipse in every way needed for the project. Is that an incorrect assumption? /Ludwig -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: den 18 mars 2010 00:36 To: Maven Users List Subject: Re: auto code format eclipse .settings Code formatting tends to be a workspace level thing rather than a per project setting. So you are probably better off doing this manually, since its a once off task. As others have pointed out, if it is a per-project file (e.g. like a checkstyle configuration file) then you can use the configuration additionalConfig file section to specify the files contents. - 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: auto code format eclipse .settings
I can create a JIRA-task and look into if I can solve it. Perhaps I will do it within the next month then. But it would also be nice to get confirmation that it canät be done using the available configuration possibilities today. /Ludwig -Original Message- From: Dan Tran [mailto:dant...@gmail.com] Sent: den 18 mars 2010 08:57 To: Maven Users List Subject: Re: auto code format eclipse .settings feel free to submit patches. I have seen this request to configure code-style per project before, but it kind a die out -D On Thu, Mar 18, 2010 at 12:29 AM, Ludwig Magnusson lud...@itcatapult.com wrote: I don't really agree here. I think it's pretty much on a project level. I have different projects in my workspace that has different formatting requirements. And in my project, we have the exported xml-file version controlled. I defenetly think it would be great if the maven-eclipse-plugin could automatically set (if it can't already). Like it can with checkstyle. To me, that's what the maven-eclipse-plugin is about, configuring eclipse in every way needed for the project. Is that an incorrect assumption? /Ludwig -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: den 18 mars 2010 00:36 To: Maven Users List Subject: Re: auto code format eclipse .settings Code formatting tends to be a workspace level thing rather than a per project setting. So you are probably better off doing this manually, since its a once off task. As others have pointed out, if it is a per-project file (e.g. like a checkstyle configuration file) then you can use the configuration additionalConfig file section to specify the files contents. - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
Thank you, Patrick, I try this. Thank you for all, who has taken a part in this discussion. Best Regards, Sipungora Patrick Turcotte-4 wrote: 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 groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.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:kostya...@yahoo.de] Sent: den 17 mars 2010 21:03 To: users@maven.apache.org 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Patrick Turcotte Développeur/Architecte Java patrick.turco...@revolutionlinux.com (819) 780-8955, poste 1129 Sans frais 1-800-996-8955, poste 1129 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/auto-code-format-eclipse-.settings-tp27933567p27942678.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
I've solved it. This is my parent model: http://old.nabble.com/file/p27945404/pom.xml pom.xml Warning: It doesn't work so. It must be extended. It should only show the principle. Settings for .settings files were made with eclipse first and then they was saved in foo-core.xml and in foo-ui.xml Best Regards, Sipungora Sipungora wrote: Hi, 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: Thanks in advance. -- View this message in context: http://old.nabble.com/auto-code-format-eclipse-.settings-tp27933567p27945404.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
auto code format eclipse .settings
Hi, 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: Thanks in advance. -- View this message in context: http://old.nabble.com/auto-code-format-eclipse-.settings-tp27933567p27933567.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/auto-code-format-eclipse-.settings-tp27933567p27937559.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: auto code format eclipse .settings
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:kostya...@yahoo.de] Sent: den 17 mars 2010 21:03 To: users@maven.apache.org 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/auto-code-format-eclipse-.settings-tp27933567p27937559 .html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: auto code format eclipse .settings
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. My point is that you are probably making a poor assumption about the functionality provided by this plugin. The primary concern of Maven (and the m-eclipse-p plugin) is building your code, not making it look pretty in Eclipse. It appears the additionalConfig parameter to the plugin may be able to support what you are looking for. This is documented on the link you sent. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
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 groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.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:kostya...@yahoo.de] Sent: den 17 mars 2010 21:03 To: users@maven.apache.org 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Patrick Turcotte Développeur/Architecte Java patrick.turco...@revolutionlinux.com (819) 780-8955, poste 1129 Sans frais 1-800-996-8955, poste 1129 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: auto code format eclipse .settings
On Thu, Mar 18, 2010 at 2:16 AM, Sipungora kostya...@yahoo.de wrote: Hi, 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: Code formatting tends to be a workspace level thing rather than a per project setting. So you are probably better off doing this manually, since its a once off task. As others have pointed out, if it is a per-project file (e.g. like a checkstyle configuration file) then you can use the configuration additionalConfig file section to specify the files contents.
Re: auto code format eclipse .settings
mvn eclipse:configure-workspace :-) -Dan On Wed, Mar 17, 2010 at 4:36 PM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Mar 18, 2010 at 2:16 AM, Sipungora kostya...@yahoo.de wrote: Hi, 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: Code formatting tends to be a workspace level thing rather than a per project setting. So you are probably better off doing this manually, since its a once off task. As others have pointed out, if it is a per-project file (e.g. like a checkstyle configuration file) then you can use the configuration additionalConfig file section to specify the files contents. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org