Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Since I can't find target anywhere in the project descriptor model http://maven.apache.org/maven-model/maven.html I'm sure this would break it, What is target? Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Does it still work fine when you include a target element? That's when it breaks. I've removed my annoyance by having that configuration in a global parent POM, so my projects' poms don't have the problem... -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Configuration for the compiler plugin: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin /plugins /build On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: Since I can't find target anywhere in the project descriptor model http://maven.apache.org/maven-model/maven.html I'm sure this would break it, What is target? Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Does it still work fine when you include a target element? That's when it breaks. I've removed my annoyance by having that configuration in a global parent POM, so my projects' poms don't have the problem... -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
well, except for that case. :) configuration takes a type of xsd:any, so target won't break it, but WTP doesn't provide code-assist since the schema indicates that *any* element is valid inside content. xs:element name=configuration minOccurs=0 xs:annotation xs:documentation source=version4.0.0/xs:documentation /xs:annotation xs:complexType xs:sequence xs:any minOccurs=0 maxOccurs=unbounded processContents=skip/ /xs:sequence /xs:complexType /xs:element Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Configuration for the compiler plugin: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin /plugins /build On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: Since I can't find target anywhere in the project descriptor model http://maven.apache.org/maven-model/maven.html I'm sure this would break it, What is target? Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Does it still work fine when you include a target element? That's when it breaks. I've removed my annoyance by having that configuration in a global parent POM, so my projects' poms don't have the problem... -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.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: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Yeah, that's all fine. The problem is just that the ant editor takes over so that the WTP editor doesn't work whenever a target element is found in an xml file. -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: well, except for that case. :) configuration takes a type of xsd:any, so target won't break it, but WTP doesn't provide code-assist since the schema indicates that *any* element is valid inside content. xs:element name=configuration minOccurs=0 xs:annotation xs:documentation source=version4.0.0/xs:documentation /xs:annotation xs:complexType xs:sequence xs:any minOccurs=0 maxOccurs=unbounded processContents=skip/ /xs:sequence /xs:complexType /xs:element Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Configuration for the compiler plugin: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin /plugins /build On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: Since I can't find target anywhere in the project descriptor model http://maven.apache.org/maven-model/maven.html I'm sure this would break it, What is target? Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Does it still work fine when you include a target element? That's when it breaks. I've removed my annoyance by having that configuration in a global parent POM, so my projects' poms don't have the problem... -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
I've just filed it as Bug 113986: https://bugs.eclipse.org/bugs/show_bug.cgi?id=113896 -Stephen On 10/26/05, Jamie Bisotti [EMAIL PROTECTED] wrote: On 10/4/05, Jörg Schaible [EMAIL PROTECTED] wrote: Stephen Duncan wrote on Monday, October 03, 2005 3:50 PM: Thanks for the tip. That only seems to apply to reporting of problems by the Ant editor. It still doesn't let me edit the file with WTP properly. It still associates the file with the Ant editor, and when I manually open the file with the WTP editor, it doesn't recognize it as XML properly, and is useless... Well, that's the reason why I also have installed the JBoss core plugin. Nice XML editor and better Xdoclet support ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Anyone filed a bug against Eclipse for this? If not, it's never going to get fixed. -- Jamie Bisotti -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Meaning that it only sees elements that are already defined. Got it. I believe mine is using the XML Editor and not the Ant Editor. Maybe I'm just misunderstanding what you mean. Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Yeah, that's all fine. The problem is just that the ant editor takes over so that the WTP editor doesn't work whenever a target element is found in an xml file. -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: well, except for that case. :) configuration takes a type of xsd:any, so target won't break it, but WTP doesn't provide code-assist since the schema indicates that *any* element is valid inside content. xs:element name=configuration minOccurs=0 xs:annotation xs:documentation source=version4.0.0/xs:documentation /xs:annotation xs:complexType xs:sequence xs:any minOccurs=0 maxOccurs=unbounded processContents=skip/ /xs:sequence /xs:complexType /xs:element Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Configuration for the compiler plugin: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin /plugins /build On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: Since I can't find target anywhere in the project descriptor model http://maven.apache.org/maven-model/maven.html I'm sure this would break it, What is target? Brian On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: Does it still work fine when you include a target element? That's when it breaks. I've removed my annoyance by having that configuration in a global parent POM, so my projects' poms don't have the problem... -Stephen On 10/26/05, Brian Bonner [EMAIL PROTECTED] wrote: I just include: 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; And it works fine in the xml editor. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.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] -- Stephen Duncan Jr www.stephenduncanjr.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: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Which just goes to show my searching skills in Bugzilla suck, becuase it was immediately marked as a duplicate of: https://bugs.eclipse.org/bugs/show_bug.cgi?id=89195 -Stephen On 10/26/05, Stephen Duncan [EMAIL PROTECTED] wrote: I've just filed it as Bug 113986: https://bugs.eclipse.org/bugs/show_bug.cgi?id=113896 -Stephen On 10/26/05, Jamie Bisotti [EMAIL PROTECTED] wrote: On 10/4/05, Jörg Schaible [EMAIL PROTECTED] wrote: Stephen Duncan wrote on Monday, October 03, 2005 3:50 PM: Thanks for the tip. That only seems to apply to reporting of problems by the Ant editor. It still doesn't let me edit the file with WTP properly. It still associates the file with the Ant editor, and when I manually open the file with the WTP editor, it doesn't recognize it as XML properly, and is useless... Well, that's the reason why I also have installed the JBoss core plugin. Nice XML editor and better Xdoclet support ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Anyone filed a bug against Eclipse for this? If not, it's never going to get fixed. -- Jamie Bisotti -- Stephen Duncan Jr www.stephenduncanjr.com -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Andrius Šabanas wrote on Monday, October 03, 2005 7:44 PM: [snip] I have solved the problem somewhat drastically - by removing org.apache.ant_1.6.5 plugin from Eclipse's plugins/ directory, as I don't use Ant (I am using Eclipse 3.1 bundled with WTP 0.7). Then you have also eliminated a lot of the WTP functionality, since all those wizards are based on Xdoclet with tempoarary Ant tasks. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Stephen Duncan wrote on Monday, October 03, 2005 3:50 PM: Thanks for the tip. That only seems to apply to reporting of problems by the Ant editor. It still doesn't let me edit the file with WTP properly. It still associates the file with the Ant editor, and when I manually open the file with the WTP editor, it doesn't recognize it as XML properly, and is useless... Well, that's the reason why I also have installed the JBoss core plugin. Nice XML editor and better Xdoclet support ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Hello Stephen, Stephen Duncan wrote: I know this is an Eclipse problem, but I'm wondering if anybody else using m2 and Eclipse+WTP is seeing this problem, and if they've found a workaround. Normally my pom.xml file is associated with the XML editor from the Web Tools Project (WTP) plugin. However, it seems to get taken over by the Ant Editor when I add a the line: target1.4/target in build/plugins/configuration section. This is a known and annoying bug/feature in the Eclipse Ant editor. Go to the preferences, Ant / Editor / Problems and add pom.xml to the names field. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Thanks for the tip. That only seems to apply to reporting of problems by the Ant editor. It still doesn't let me edit the file with WTP properly. It still associates the file with the Ant editor, and when I manually open the file with the WTP editor, it doesn't recognize it as XML properly, and is useless... -Stephen On 10/3/05, Jörg Schaible [EMAIL PROTECTED] wrote: Hello Stephen, Stephen Duncan wrote: I know this is an Eclipse problem, but I'm wondering if anybody else using m2 and Eclipse+WTP is seeing this problem, and if they've found a workaround. Normally my pom.xml file is associated with the XML editor from the Web Tools Project (WTP) plugin. However, it seems to get taken over by the Ant Editor when I add a the line: target1.4/target in build/plugins/configuration section. This is a known and annoying bug/feature in the Eclipse Ant editor. Go to the preferences, Ant / Editor / Problems and add pom.xml to the names field. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problems with pom.xml and Eclipse + WTP XML Editor vs. Ant Editor
Stephen Duncan wrote: Thanks for the tip. That only seems to apply to reporting of problems by the Ant editor. It still doesn't let me edit the file with WTP properly. It still associates the file with the Ant editor, and when I manually open the file with the WTP editor, it doesn't recognize it as XML properly, and is useless... -Stephen I have solved the problem somewhat drastically - by removing org.apache.ant_1.6.5 plugin from Eclipse's plugins/ directory, as I don't use Ant (I am using Eclipse 3.1 bundled with WTP 0.7). Hope this helps, -- Andrius Šabanas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]