Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XML and Maven properties(How do i make Eclipse recognize a XML file as valid which I first edit with Maven)
XML and Maven properties [message #903271] Wed, 22 August 2012 15:16 Go to next message
Rafael W. is currently offline Rafael W.
Messages: 2
Registered: August 2012
Junior Member
Hey everybody,
I am wondering about a cosmetic thing. I have an XML file - a web.xml - which is edited by maven depending on a build-profile. So far, I have this (shortened) invalid xml file:

<web-app>
${webxml.myconfig}
</web-app>

which will be rendered by maven during the build cycle. How can I tell Eclipse to ignore this one property. Besides I really like getting hints about mistakes in my XMLs, even in the web.xml which is actually significantly longer.

Or even better: how can I wrap such a maven-specific command to be valid XML?
Thank you for help, Rafael

PS: This is a repost. I originally asked this question in the XML forum but was referred to rather ask this question here.

[Updated on: Wed, 22 August 2012 15:17]

Report message to a moderator

Re: XML and Maven properties [message #903999 is a reply to message #903271] Mon, 27 August 2012 10:21 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2133
Registered: July 2009
Senior Member
You should be able to exclude the file from XML Validation as shown on http://www.eclipse.org/webtools/releases/3.0.0/newandnoteworthy/common.php . Although it may become valid once Maven is done populating its contents, in this form it is invalid.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:git jsdt connection reset
Next Topic:My validatorV2 extension disables XML source validation
Goto Forum:
  


Current Time: Sun Apr 20 12:29:47 EDT 2014

Powered by FUDForum. Page generated in 0.01546 seconds