Re: Add pom tags into Eclipse?
jiangshachina wrote: About Maven docs, the mail list has discussed. It's said that some plugin docs are being improved, but not hosted by main site currently. Now, I think the biggest problem is that docs don't show all parameters or elements on POM model or plugin configurations. For example, parameter warSourceExcludes exist in maven-war-plugin configuration really, but I don't find it at the plugin's site http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html. a cup of Java, cheers! Sha Jiang The way I look at it, the pom has a schema file and if the editor is good should know how to pick it up, my objection is that it objectively cannot know all the parameters of external plugins so the schema is useless. If maven takes the spring 2.0 approach in using namespaces it could allow tag validation (and thus code completion) for plugins as well. Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add pom tags into Eclipse?
About Maven docs, the mail list has discussed. It's said that some plugin docs are being improved, but not hosted by main site currently. Now, I think the biggest problem is that docs don't show all parameters or elements on POM model or plugin configurations. For example, parameter warSourceExcludes exist in maven-war-plugin configuration really, but I don't find it at the plugin's site http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, Jiang Sha, What kind of information do you think are missing? Right now, I think there are two Getting Started Guide in the maven site, [1] and [2]. Care to comment on those so that we can improve it? :-) Thanks, Franz [1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html [2] http://maven.apache.org/guides/getting-started/index.html jiangshachina wrote: Hello franz, Thanks for your warm heart. IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. I have search any directory the file potentially located. But nothing is interesting. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. In fact, it is. [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html Really, I must read the two docs when I write pom.xml. And I have to cumulate some experience for building pom file. Some general format used for writing pom.xml aren't clearly shown by the docs. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, jiangshachina, IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. But im not sure about this since I am not an eclipse plugin developer. Anyway, specifying the schema location does allow you to use content assist on eclipse for most part. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. When that happens, you may want to refer to [1] for more information about the plugins. Usually, these apche maven plugin documentations will have a goals section. In these goals section you would be able to see the available goals, and the configurations available to those goals. Furthermore, you can refer to [2] for more information about the pom... Maven-model refers to the pom (aka. Project Object Model) :-) Cheers, Franz [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html jiangshachina wrote: Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7210832 Sent from the Maven - Users mailing list archive at Nabble.com. - To
RE: Add pom tags into Eclipse?
Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7191890 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add pom tags into Eclipse?
Good day to you, jiangshachina, IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. But im not sure about this since I am not an eclipse plugin developer. Anyway, specifying the schema location does allow you to use content assist on eclipse for most part. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. When that happens, you may want to refer to [1] for more information about the plugins. Usually, these apche maven plugin documentations will have a goals section. In these goals section you would be able to see the available goals, and the configurations available to those goals. Furthermore, you can refer to [2] for more information about the pom... Maven-model refers to the pom (aka. Project Object Model) :-) Cheers, Franz [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html jiangshachina wrote: Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7192285 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add pom tags into Eclipse?
Hello franz, Thanks for your warm heart. IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. I have search any directory the file potentially located. But nothing is interesting. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. In fact, it is. [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html Really, I must read the two docs when I write pom.xml. And I have to cumulate some experience for building pom file. Some general format used for writing pom.xml aren't clearly shown by the docs. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, jiangshachina, IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. But im not sure about this since I am not an eclipse plugin developer. Anyway, specifying the schema location does allow you to use content assist on eclipse for most part. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. When that happens, you may want to refer to [1] for more information about the plugins. Usually, these apche maven plugin documentations will have a goals section. In these goals section you would be able to see the available goals, and the configurations available to those goals. Furthermore, you can refer to [2] for more information about the pom... Maven-model refers to the pom (aka. Project Object Model) :-) Cheers, Franz [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html jiangshachina wrote: Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7192509 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add pom tags into Eclipse?
Good day to you, Jiang Sha, What kind of information do you think are missing? Right now, I think there are two Getting Started Guide in the maven site, [1] and [2]. Care to comment on those so that we can improve it? :-) Thanks, Franz [1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html [2] http://maven.apache.org/guides/getting-started/index.html jiangshachina wrote: Hello franz, Thanks for your warm heart. IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. I have search any directory the file potentially located. But nothing is interesting. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. In fact, it is. [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html Really, I must read the two docs when I write pom.xml. And I have to cumulate some experience for building pom file. Some general format used for writing pom.xml aren't clearly shown by the docs. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, jiangshachina, IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. But im not sure about this since I am not an eclipse plugin developer. Anyway, specifying the schema location does allow you to use content assist on eclipse for most part. I don't think it can tell you what tags you can use under plugin configuration tags since these changes from pluign to plugin. When that happens, you may want to refer to [1] for more information about the plugins. Usually, these apche maven plugin documentations will have a goals section. In these goals section you would be able to see the available goals, and the configurations available to those goals. Furthermore, you can refer to [2] for more information about the pom... Maven-model refers to the pom (aka. Project Object Model) :-) Cheers, Franz [1] http://maven.apache.org/plugins/index.html [2] http://maven.apache.org/ref/current/maven-model/maven.html jiangshachina wrote: Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7193680 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add pom tags into Eclipse?
Hi Yes, Eclipse does that automatically in order to validate the xml file. It will cache it under the .metadata directory somewhere (Why would you even care :)) Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 2:11 AM To: users@maven.apache.org Subject: RE: Add pom tags into Eclipse? Yes, thinks very much! Eclipse would download the xsd file? Where the file would be located? a cup of Java, cheers! Sha Jiang hermod.opstvedt wrote: Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7191890 Sent from the Maven - Users mailing list archive at Nabble.com. - 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]
RE: Add pom tags into Eclipse?
Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]